|
LibTiePie
0.9.16
Library for interfacing TiePie engineering instruments
|
Functions to retrieve information from the listed devices.
Before opening a device, device specific information can be retrieved. This information can help opening the required device, when multiple devices are available in the list.
Three different methods to identify a device are available:
Modules | |
| Combined devices | |
| Functions to retrieve information from the individual devices in combined devices. | |
Functions | |
| bool8_t | LstDevCanOpen (uint32_t dwIdKind, uint32_t dwId, uint32_t dwDeviceType) |
| Check whether the listed device can be opened. More... | |
| uint32_t | LstDevGetProductId (uint32_t dwIdKind, uint32_t dwId) |
| Get the product id of the listed device. More... | |
| uint32_t | LstDevGetName (uint32_t dwIdKind, uint32_t dwId, char *pBuffer, uint32_t dwBufferLength) |
| Get the full name of the listed device. More... | |
| uint32_t | LstDevGetNameShort (uint32_t dwIdKind, uint32_t dwId, char *pBuffer, uint32_t dwBufferLength) |
| Get the short name of the listed device. More... | |
| uint32_t | LstDevGetNameShortest (uint32_t dwIdKind, uint32_t dwId, char *pBuffer, uint32_t dwBufferLength) |
| Get the short name of the listed device wihout model postfix. More... | |
| TpVersion_t | LstDevGetDriverVersion (uint32_t dwIdKind, uint32_t dwId) |
| Get the version number of the driver currently used by the listed device. More... | |
| TpVersion_t | LstDevGetRecommendedDriverVersion (uint32_t dwIdKind, uint32_t dwId) |
| Get the version number of the recommended driver for the listed device. More... | |
| TpVersion_t | LstDevGetFirmwareVersion (uint32_t dwIdKind, uint32_t dwId) |
| Get the version number of the firmware currently used by the listed device. More... | |
| TpDate_t | LstDevGetCalibrationDate (uint32_t dwIdKind, uint32_t dwId) |
| Get the calibration date of the listed device. More... | |
| uint32_t | LstDevGetSerialNumber (uint32_t dwIdKind, uint32_t dwId) |
| Get the serial number of the listed device. More... | |
| uint32_t | LstDevGetIPv4Address (uint32_t dwIdKind, uint32_t dwId) |
| Get the IPv4 address of the listed device. More... | |
| uint16_t | LstDevGetIPPort (uint32_t dwIdKind, uint32_t dwId) |
| Get the IP port number of the listed device. More... | |
| bool8_t | LstDevHasServer (uint32_t dwIdKind, uint32_t dwId) |
| Check whether the listed device is connected to a server. More... | |
| LibTiePieHandle_t | LstDevGetServer (uint32_t dwIdKind, uint32_t dwId) |
| Get the server handle of the server the listed device is connected to. More... | |
| uint32_t | LstDevGetTypes (uint32_t dwIdKind, uint32_t dwId) |
| Get the device types of the listed device. More... | |
| bool8_t LstDevCanOpen | ( | uint32_t | dwIdKind, |
| uint32_t | dwId, | ||
| uint32_t | dwDeviceType | ||
| ) |
Check whether the listed device can be opened.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| [in] | dwDeviceType | A device type. |
| INITIALIZATION_FAILED | The instrument's initialization failed, please contact TiePie engineering support. |
| INVALID_EEPROM | The instrument's EEPROM content is damaged, please contact TiePie engineering support. |
| INVALID_FIRMWARE | The currently used firmware is not supported . |
| INVALID_DRIVER | The currently installed driver is not supported, see LstDevGetRecommendedDriverVersion(). (Windows only) |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| INVALID_DEVICE_TYPE | The device type is invalid. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| uint32_t LstDevGetProductId | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Get the product id of the listed device.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device does not support reading a product id. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| uint32_t LstDevGetName | ( | uint32_t | dwIdKind, |
| uint32_t | dwId, | ||
| char * | pBuffer, | ||
| uint32_t | dwBufferLength | ||
| ) |
Get the full name of the listed device.
E.g. Handyscope HS5-530XMS
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| [out] | pBuffer | A pointer to a buffer for the name. |
| [in] | dwBufferLength | The length of the buffer, in bytes. |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device does not support reading a name. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| uint32_t LstDevGetNameShort | ( | uint32_t | dwIdKind, |
| uint32_t | dwId, | ||
| char * | pBuffer, | ||
| uint32_t | dwBufferLength | ||
| ) |
Get the short name of the listed device.
E.g. HS5-530XMS
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| [out] | pBuffer | A pointer to a buffer for the name. |
| [in] | dwBufferLength | The length of the buffer, in bytes. |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device does not support reading a name. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| uint32_t LstDevGetNameShortest | ( | uint32_t | dwIdKind, |
| uint32_t | dwId, | ||
| char * | pBuffer, | ||
| uint32_t | dwBufferLength | ||
| ) |
Get the short name of the listed device wihout model postfix.
E.g. HS5
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| [out] | pBuffer | A pointer to a buffer for the name. |
| [in] | dwBufferLength | The length of the buffer, in bytes. |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device does not support reading a name. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| TpVersion_t LstDevGetDriverVersion | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Get the version number of the driver currently used by the listed device.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device does not support reading a driver version or does not require a driver. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| TpVersion_t LstDevGetRecommendedDriverVersion | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Get the version number of the recommended driver for the listed device.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device does not support reading a recommended driver version or does not require a driver. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| TpVersion_t LstDevGetFirmwareVersion | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Get the version number of the firmware currently used by the listed device.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device does not support reading a firmware version or does not require firmware. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| TpDate_t LstDevGetCalibrationDate | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Get the calibration date of the listed device.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device does not have a calibration date. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| uint32_t LstDevGetSerialNumber | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Get the serial number of the listed device.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| INITIALIZATION_FAILED | The instrument's initialization failed, please contact TiePie engineering support. |
| INVALID_EEPROM | The instrument's EEPROM content is damaged, please contact TiePie engineering support. |
| INVALID_FIRMWARE | The currently used firmware is not supported . |
| INVALID_DRIVER | The currently installed driver is not supported, see LstDevGetRecommendedDriverVersion(). (Windows only) |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device does not support reading a serial number. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| uint32_t LstDevGetIPv4Address | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Get the IPv4 address of the listed device.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device is not a network device. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| uint16_t LstDevGetIPPort | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Get the IP port number of the listed device.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| NOT_SUPPORTED | The indicated device is not a network device. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |
| bool8_t LstDevHasServer | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Check whether the listed device is connected to a server.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| LibTiePieHandle_t LstDevGetServer | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Get the server handle of the server the listed device is connected to.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| uint32_t LstDevGetTypes | ( | uint32_t | dwIdKind, |
| uint32_t | dwId | ||
| ) |
Get the device types of the listed device.
| [in] | dwIdKind | An id kind. |
| [in] | dwId | A device index, Product ID or serial number identifying the device to check, as specified by dwIdKind. |
| INITIALIZATION_FAILED | The instrument's initialization failed, please contact TiePie engineering support. |
| INVALID_EEPROM | The instrument's EEPROM content is damaged, please contact TiePie engineering support. |
| INVALID_FIRMWARE | The currently used firmware is not supported . |
| INVALID_DRIVER | The currently installed driver is not supported, see LstDevGetRecommendedDriverVersion(). (Windows only) |
| INVALID_DEVICE_INDEX | The device index is invalid, must be < LstGetCount(). |
| INVALID_DEVICE_SERIALNUMBER | There is no device with the requested serial number. |
| INVALID_PRODUCT_ID | There is no device with the requested product ID. |
| INVALID_VALUE | The value of dwIdKind is invalid. |
| INVALID_DRIVER | The currently installed driver is not supported, see LstDevGetRecommendedDriverVersion(). (Windows only) |
| LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
| SUCCESS | The function executed successfully. |