LibTiePie
0.9.8
Library for interfacing TiePie engineering instruments
|
Device battery related functions.
Functions | |
bool8_t | DevHasBattery (LibTiePieHandle_t hDevice) |
Check whether the device has a battery. More... | |
int8_t | DevGetBatteryCharge (LibTiePieHandle_t hDevice) |
Get battery charge in percent. More... | |
int32_t | DevGetBatteryTimeToEmpty (LibTiePieHandle_t hDevice) |
Get battery time to empty in minutes. More... | |
int32_t | DevGetBatteryTimeToFull (LibTiePieHandle_t hDevice) |
Get battery time to full in minutes. More... | |
bool8_t | DevIsBatteryChargerConnected (LibTiePieHandle_t hDevice) |
Check whether the battery charger is connected. More... | |
bool8_t | DevIsBatteryCharging (LibTiePieHandle_t hDevice) |
Check whether the battery is charging. More... | |
bool8_t | DevIsBatteryBroken (LibTiePieHandle_t hDevice) |
Check whether the battery is broken. More... | |
bool8_t DevHasBattery | ( | LibTiePieHandle_t | hDevice | ) |
Check whether the device has a battery.
[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. |
LIBRARY_NOT_INITIALIZED | The library is not initialized, see LibInit(). |
SUCCESS | The function executed successfully. |
int8_t DevGetBatteryCharge | ( | LibTiePieHandle_t | hDevice | ) |
Get battery charge in percent.
[in] | hDevice | A device handle identifying the device. |
-1
otherwise. NOT_SUPPORTED | The indicated device does not support reading the battery charge or doesn't have a battery. |
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. |
int32_t DevGetBatteryTimeToEmpty | ( | LibTiePieHandle_t | hDevice | ) |
Get battery time to empty in minutes.
[in] | hDevice | A device handle identifying the device. |
-1
otherwise. NOT_SUPPORTED | The indicated device does not support reading the battery time to empty or doesn't have a battery. |
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. |
int32_t DevGetBatteryTimeToFull | ( | LibTiePieHandle_t | hDevice | ) |
Get battery time to full in minutes.
[in] | hDevice | A device handle identifying the device. |
-1
otherwise. NOT_SUPPORTED | The indicated device does not support reading the battery time to full or doesn't have a battery. |
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. |
bool8_t DevIsBatteryChargerConnected | ( | LibTiePieHandle_t | hDevice | ) |
Check whether the battery charger is connected.
[in] | hDevice | A device handle identifying the device. |
NOT_SUPPORTED | The indicated device does not have a battery. |
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. |
bool8_t DevIsBatteryCharging | ( | LibTiePieHandle_t | hDevice | ) |
Check whether the battery is charging.
[in] | hDevice | A device handle identifying the device. |
NOT_SUPPORTED | The indicated device does not have a battery. |
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. |
bool8_t DevIsBatteryBroken | ( | LibTiePieHandle_t | hDevice | ) |
Check whether the battery is broken.
[in] | hDevice | A device handle identifying the device. |
NOT_SUPPORTED | The indicated device does not have a battery. |
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. |