libtiepie
 All Files Functions Typedefs Groups
Device list

Modules

 Events

Functions

uint32_t LstGetCount (uint32_t dwDeviceType)
bool8_t LstGetDeviceCanOpen (uint32_t dwDeviceType, uint32_t dwId)
uint32_t LstGetDeviceProductId (uint32_t dwDeviceType, uint32_t dwId)
uint32_t LstGetDeviceVendorId (uint32_t dwDeviceType, uint32_t dwId)
uint32_t LstGetDeviceName (uint32_t dwDeviceType, uint32_t dwId, char *pBuffer, uint32_t dwBufferLength)
uint32_t LstGetDeviceNameShort (uint32_t dwDeviceType, uint32_t dwId, char *pBuffer, uint32_t dwBufferLength)
uint32_t LstGetDeviceSerialNumber (uint32_t dwDeviceType, uint32_t dwId)
TpDeviceHandle_t LstOpenDevice (uint32_t dwDeviceType, uint32_t dwId)
void LstRemoveDevice (uint32_t dwSerialNumber)
void LstUpdate (uint32_t dwDeviceIdMask)

Detailed Description


Function Documentation

uint32_t LstGetCount ( uint32_t  dwDeviceType)

Get number of devices available in list

Parameters:
dwDeviceTypea device type
Returns:
number of devices available in list
bool8_t LstGetDeviceCanOpen ( uint32_t  dwDeviceType,
uint32_t  dwId 
)

Check whether the instrument can be opened.

Parameters:
dwDeviceTypea device type
dwIddevice index or a Device ID or a serial number
Returns:
1 if true or 0 if false
uint32_t LstGetDeviceName ( uint32_t  dwDeviceType,
uint32_t  dwId,
char *  pBuffer,
uint32_t  dwBufferLength 
)
Parameters:
dwDeviceTypea device type
dwIddevice index or a Device ID or a serial number
pBuffer
dwBufferLength
Returns:
uint32_t LstGetDeviceNameShort ( uint32_t  dwDeviceType,
uint32_t  dwId,
char *  pBuffer,
uint32_t  dwBufferLength 
)
Parameters:
dwDeviceTypea device type
dwIddevice index or a Device ID or a serial number
pBuffer
dwBufferLength
Returns:
uint32_t LstGetDeviceProductId ( uint32_t  dwDeviceType,
uint32_t  dwId 
)
Parameters:
dwDeviceTypea device type
dwIddevice index or a Device ID or a serial number
Returns:
uint32_t LstGetDeviceSerialNumber ( uint32_t  dwDeviceType,
uint32_t  dwId 
)
Parameters:
dwDeviceTypea device type
dwIddevice index or a Device ID or a serial number
Returns:
uint32_t LstGetDeviceVendorId ( uint32_t  dwDeviceType,
uint32_t  dwId 
)
Parameters:
dwDeviceTypea device type
dwIddevice index or a Device ID or a serial number
Returns:
TpDeviceHandle_t LstOpenDevice ( uint32_t  dwDeviceType,
uint32_t  dwId 
)

Get handle to device, for each device the handle is only assigned once.

Parameters:
dwDeviceTypea device type
dwIddevice index or a Device ID or a serial number
Returns:
a device handle, or TPDEVICEHANDLE_INVALID on error
void LstRemoveDevice ( uint32_t  dwSerialNumber)

Remove a instrument from the device lists so it can be used by other applications.

Parameters:
dwSerialNumberinstruments serial number
void LstUpdate ( uint32_t  dwDeviceIdMask)

Search for new instruments.

Example 1:

LstUpdate( IDM_ALL ); // Search for all instruments

Example 2:

LstUpdate( ID_HS5 ); // Search for Handyscope HS5's
Parameters:
dwDeviceIdMaska ORed mask of Device ID's