LibTiePie
0.5
Library for interfacing TiePie engineering instruments
|
Functions to retrieve information from a device.
Functions | |
TpVersion_t | DevGetDriverVersion (TpDeviceHandle_t hDevice) |
Get the version number of the driver used by the device. More... | |
TpVersion_t | DevGetFirmwareVersion (TpDeviceHandle_t hDevice) |
Get the version number of the firmware used by the device. More... | |
TpDate_t | DevGetCalibrationDate (TpDeviceHandle_t hDevice) |
Get the calibration date of the device. More... | |
uint32_t | DevGetSerialNumber (TpDeviceHandle_t hDevice) |
Get the serial number of the device. More... | |
uint32_t | DevGetProductId (TpDeviceHandle_t hDevice) |
Get the product id of the device. More... | |
uint32_t | DevGetType (TpDeviceHandle_t hDevice) |
Get the device type. More... | |
uint32_t | DevGetName (TpDeviceHandle_t hDevice, char *pBuffer, uint32_t dwBufferLength) |
Get the full name of the device. More... | |
uint32_t | DevGetNameShort (TpDeviceHandle_t hDevice, char *pBuffer, uint32_t dwBufferLength) |
Get the short name of the device. More... | |
uint32_t | DevGetNameShortest (TpDeviceHandle_t hDevice, char *pBuffer, uint32_t dwBufferLength) |
Get the short name of the device without model postfix. More... | |
TpVersion_t DevGetDriverVersion | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
TpVersion_t DevGetFirmwareVersion | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
TpDate_t DevGetCalibrationDate | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetSerialNumber | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetProductId | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetType | ( | TpDeviceHandle_t | hDevice | ) |
Get the device type.
[in] | hDevice | A device handle identifying the device. |
INVALID_HANDLE | The handle to the device is invalid. |
DEVICE_GONE | The device indicated by the device 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 | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetNameShort | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
uint32_t DevGetNameShortest | ( | TpDeviceHandle_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. |
DEVICE_GONE | The device indicated by the device handle is no longer available. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |