LibTiePie
0.9.0
Library for interfacing TiePie engineering instruments
|
Functions to retrieve information from a device.
Functions | |
TpVersion_t | DevGetDriverVersion (LibTiePieHandle_t hDevice) |
Get the version number of the driver used by the device. More... | |
TpVersion_t | DevGetFirmwareVersion (LibTiePieHandle_t hDevice) |
Get the version number of the firmware used by the device. More... | |
TpDate_t | DevGetCalibrationDate (LibTiePieHandle_t hDevice) |
Get the calibration date of the device. More... | |
uint32_t | DevGetSerialNumber (LibTiePieHandle_t hDevice) |
Get the serial number of the device. More... | |
uint32_t | DevGetIPv4Address (LibTiePieHandle_t hDevice) |
Get the IPv4 address of the device. More... | |
uint16_t | DevGetIPPort (LibTiePieHandle_t hDevice) |
Get the IP port number of the device. More... | |
uint32_t | DevGetProductId (LibTiePieHandle_t hDevice) |
Get the product id of the device. More... | |
uint32_t | DevGetType (LibTiePieHandle_t hDevice) |
Get the device type. More... | |
uint32_t | DevGetName (LibTiePieHandle_t hDevice, char *pBuffer, uint32_t dwBufferLength) |
Get the full name of the device. More... | |
uint32_t | DevGetNameShort (LibTiePieHandle_t hDevice, char *pBuffer, uint32_t dwBufferLength) |
Get the short name of the device. More... | |
uint32_t | DevGetNameShortest (LibTiePieHandle_t hDevice, char *pBuffer, uint32_t dwBufferLength) |
Get the short name of the device without model postfix. More... | |
TpVersion_t DevGetDriverVersion | ( | LibTiePieHandle_t | hDevice | ) |
Get the version number of the driver used by the device.
[in] | hDevice | A device handle identifying the device. |
NOT_SUPPORTED | The indicated device does not support reading a driver version or does not require a driver. |
INVALID_HANDLE | The handle to the device is invalid. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
TpVersion_t DevGetFirmwareVersion | ( | LibTiePieHandle_t | hDevice | ) |
Get the version number of the firmware used by the device.
[in] | hDevice | A device handle identifying the device. |
NOT_SUPPORTED | The indicated device does not support reading a firmware version or does not require firmware. |
INVALID_HANDLE | The handle to the device is invalid. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
TpDate_t DevGetCalibrationDate | ( | LibTiePieHandle_t | hDevice | ) |
Get the calibration date of the device.
[in] | hDevice | A device handle identifying the device. |
NOT_SUPPORTED | The indicated device does not have a calibration date. |
INVALID_HANDLE | The handle to the device is invalid. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetSerialNumber | ( | LibTiePieHandle_t | hDevice | ) |
Get the serial number of the device.
[in] | hDevice | A device handle identifying the device. |
NOT_SUPPORTED | The indicated device does not have a serial number. |
INVALID_HANDLE | The handle to the device is invalid. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetIPv4Address | ( | LibTiePieHandle_t | hDevice | ) |
Get the IPv4 address of the device.
[in] | hDevice | A device handle identifying the device. |
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 DevGetIPPort | ( | LibTiePieHandle_t | hDevice | ) |
Get the IP port number of the device.
[in] | hDevice | A device handle identifying the device. |
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. |
uint32_t DevGetProductId | ( | LibTiePieHandle_t | hDevice | ) |
Get the product id of the device.
[in] | hDevice | A device handle identifying the device. |
NOT_SUPPORTED | The indicated device does not support reading a product id. |
INVALID_HANDLE | The handle to the device is invalid. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetType | ( | LibTiePieHandle_t | hDevice | ) |
Get the device type.
[in] | hDevice | A device handle identifying the device. |
INVALID_HANDLE | The handle to the device is invalid. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
UNSUCCESSFUL | An error occurred during execution of the last called function. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetName | ( | LibTiePieHandle_t | hDevice, |
char * | pBuffer, | ||
uint32_t | dwBufferLength | ||
) |
Get the full name of the device.
E.g. Handyscope HS5-530XMS
[in] | hDevice | A device handle identifying the device. |
[out] | pBuffer | A pointer to a buffer for the name. |
[in] | dwBufferLength | The length of the buffer, in bytes. |
NOT_SUPPORTED | The indicated device does not support reading a name. |
INVALID_HANDLE | The handle to the device is invalid. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetNameShort | ( | LibTiePieHandle_t | hDevice, |
char * | pBuffer, | ||
uint32_t | dwBufferLength | ||
) |
Get the short name of the device.
E.g. HS5-530XMS
[in] | hDevice | A device handle identifying the device. |
[out] | pBuffer | A pointer to a buffer for the name. |
[in] | dwBufferLength | The length of the buffer, in bytes. |
NOT_SUPPORTED | The indicated device does not support reading a name. |
INVALID_HANDLE | The handle to the device is invalid. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetNameShortest | ( | LibTiePieHandle_t | hDevice, |
char * | pBuffer, | ||
uint32_t | dwBufferLength | ||
) |
Get the short name of the device without model postfix.
E.g. HS5
[in] | hDevice | A device handle identifying the device. |
[out] | pBuffer | A pointer to a buffer for the name. |
[in] | dwBufferLength | The length of the buffer, in bytes. |
NOT_SUPPORTED | The indicated device does not support reading a name. |
INVALID_HANDLE | The handle to the device is invalid. |
OBJECT_GONE | The object indicated by the handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |