Company X Accessories C1030-5510 manual Information gathering, GetUDKVersionString, GetDeviceUID

Models: C1030-5510

1 71
Download 71 pages 45.45 Kb
Page 43
Image 43

Information gathering

The functions in this chapter return valuable information. All except GetUDKVersionString() are bound to devices and can be used after getting a device pointer or handle from GetDevice() only.

Methods/Functions

GetUDKVersionString

API

Code

C++

static const char *ceDevice::GetUDKVersionString()

Cconst char *GetUDKVersionString()

.NET

static string ceDevice.GetUDKVersionString()

Return string which contains the UDK version in printable format.

GetDeviceUID

API

Code

C++

const char *ceDevice::GetDeviceUID()

CCE_RESULT GetDeviceUID(CE_DEVICE_HANDLE Handle, char *pszDest, unsigned int uiDestSize)

.NET

string ceDevice.GetDeviceUID()

Return string formatted unique device identifier. This identifier is in the form of type@location while type is the type of the device (i.e. EFM01) and location is the position the device is plugged to. For PCI devices, this is a combination of bus, slot and function (PCI bus related values) and for USB devices a path from device to root hub, containing the port of all used hubs. So after re-enumeration or reboot, devices on the same machine can be identified exactly.

Notice C API: pszDest is the buffer were the value is stored to, it must be at least of size uiDestSize.

GetDeviceName

API

Code

C++

const char *ceDevice::GetDeviceName()

CCE_RESULT GetDeviceName(CE_DEVICE_HANDLE Handle, char *pszDest, unsigned int uiDestSize)

.NET

string ceDevice.GetDeviceName()

USBS6 / C1030-5510

 

http://www.cesys.com/

User Doc V0.3

-43-

preliminary

Page 43
Image 43
Company X Accessories C1030-5510 manual Information gathering, GetUDKVersionString, GetDeviceUID, GetDeviceName