LibTiePie
0.4.3
Library for interfacing TiePie engineering instruments
|
Modules | |
Combined instrument | |
Events | |
Functions | |
uint32_t | LstGetCount (void) |
Get number of devices in list. | |
bool8_t | LstGetDeviceCanOpen (uint32_t dwIdKind, uint32_t dwId, uint32_t dwDeviceType) |
Check whether the instrument can be opened. | |
uint32_t | LstGetDeviceProductId (uint32_t dwIdKind, uint32_t dwId) |
Get the instrument's product id. | |
uint32_t | LstGetDeviceVendorId (uint32_t dwIdKind, uint32_t dwId) |
Get the instrument's vendor id. | |
uint32_t | LstGetDeviceName (uint32_t dwIdKind, uint32_t dwId, char *pBuffer, uint32_t dwBufferLength) |
Get the instrument's name. | |
uint32_t | LstGetDeviceNameShort (uint32_t dwIdKind, uint32_t dwId, char *pBuffer, uint32_t dwBufferLength) |
Get the instrument's short name. | |
TpVersion_t | LstDevGetDriverVersion (uint32_t dwIdKind, uint32_t dwId) |
Get version number of the driver. | |
TpVersion_t | LstDevGetRecommendedDriverVersion (uint32_t dwIdKind, uint32_t dwId) |
Get recommended version number of the driver. | |
TpVersion_t | LstDevGetFirmwareVersion (uint32_t dwIdKind, uint32_t dwId) |
Get version number of the firmware. | |
TpDate_t | LstDevGetCalibrationDate (uint32_t dwIdKind, uint32_t dwId) |
Get the calibration date of the instrument. | |
uint32_t | LstGetDeviceSerialNumber (uint32_t dwIdKind, uint32_t dwId) |
Get the instruments serial number. | |
uint32_t | LstGetDeviceTypes (uint32_t dwIdKind, uint32_t dwId) |
Get the instrument's device types. | |
TpDeviceHandle_t | LstOpenDevice (uint32_t dwIdKind, uint32_t dwId, uint32_t dwDeviceType) |
Get handle to device, for each device the handle is only assigned once. | |
TpDeviceHandle_t | LstOpenOscilloscope (uint32_t dwIdKind, uint32_t dwId) |
Get handle to oscilloscope, for each oscilloscope the handle is only assigned once. | |
TpDeviceHandle_t | LstOpenGenerator (uint32_t dwIdKind, uint32_t dwId) |
Get handle to generator, for each generator the handle is only assigned once. | |
TpDeviceHandle_t | LstOpenI2CHost (uint32_t dwIdKind, uint32_t dwId) |
Get handle to I2C host, for each I2C host the handle is only assigned once. | |
void | LstRemoveDevice (uint32_t dwSerialNumber) |
Remove a instrument from the device list so it can be used by other applications. | |
void | LstUpdate (uint32_t dwDeviceIdMask) |
Search for new instruments. | |
uint32_t LstGetCount | ( | void | ) |
Get number of devices in list.
bool8_t LstGetDeviceCanOpen | ( | uint32_t | dwIdKind, |
uint32_t | dwId, | ||
uint32_t | dwDeviceType | ||
) |
Check whether the instrument can be opened.
dwIdKind | An id kind. |
dwId | Device index, Device ID or serial number as specified by dwIdKind . |
dwDeviceType | A device type. |
uint32_t LstGetDeviceProductId | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
Get the instrument's product id.
dwIdKind | An id kind. |
dwId | Device index, Device ID or serial number as specified by dwIdKind . |
uint32_t LstGetDeviceVendorId | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
uint32_t LstGetDeviceName | ( | uint32_t | dwIdKind, |
uint32_t | dwId, | ||
char * | pBuffer, | ||
uint32_t | dwBufferLength | ||
) |
Get the instrument's name.
Example:
dwIdKind | An id kind. |
dwId | Device index, Device ID or serial number as specified by dwIdKind . |
pBuffer | Pointer to buffer to write to. |
dwBufferLength | Length of the buffer. |
uint32_t LstGetDeviceNameShort | ( | uint32_t | dwIdKind, |
uint32_t | dwId, | ||
char * | pBuffer, | ||
uint32_t | dwBufferLength | ||
) |
Get the instrument's short name.
Example:
dwIdKind | An id kind. |
dwId | Device index, Device ID or serial number as specified by dwIdKind . |
pBuffer | Pointer to buffer to write to. |
dwBufferLength | Length of the buffer. |
TpVersion_t LstDevGetDriverVersion | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
TpVersion_t LstDevGetRecommendedDriverVersion | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
TpVersion_t LstDevGetFirmwareVersion | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
TpDate_t LstDevGetCalibrationDate | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
uint32_t LstGetDeviceSerialNumber | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
uint32_t LstGetDeviceTypes | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
Get the instrument's device types.
Example:
dwIdKind | An id kind. |
dwId | Device index, Device ID or serial number as specified by dwIdKind . |
TpDeviceHandle_t LstOpenDevice | ( | uint32_t | dwIdKind, |
uint32_t | dwId, | ||
uint32_t | dwDeviceType | ||
) |
Get handle to device, for each device the handle is only assigned once.
dwIdKind | An id kind. |
dwId | Device index, Device ID or serial number as specified by dwIdKind . |
dwDeviceType | A device type. |
TpDeviceHandle_t LstOpenOscilloscope | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
Get handle to oscilloscope, for each oscilloscope the handle is only assigned once.
dwIdKind | An id kind. |
dwId | Device index, Device ID or serial number as specified by dwIdKind . |
TpDeviceHandle_t LstOpenGenerator | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
Get handle to generator, for each generator the handle is only assigned once.
dwIdKind | An id kind. |
dwId | Device index, Device ID or serial number as specified by dwIdKind . |
TpDeviceHandle_t LstOpenI2CHost | ( | uint32_t | dwIdKind, |
uint32_t | dwId | ||
) |
Get handle to I2C host, for each I2C host the handle is only assigned once.
dwIdKind | An id kind. |
dwId | Device index, Device ID or serial number as specified by dwIdKind . |
void LstRemoveDevice | ( | uint32_t | dwSerialNumber | ) |
Remove a instrument from the device list so it can be used by other applications.
dwSerialNumber | Instruments serial number. |
void LstUpdate | ( | uint32_t | dwDeviceIdMask | ) |
Search for new instruments.
Example 1:
Example 2:
dwDeviceIdMask | A OR-ed mask of Device ID's. |