CCAux
2.20.0.0
CCAux API reference
|
Functions | |
EXTERN_C CCAUXDLL_API BATTERYHANDLE CCAUXDLL_CALLING_CONV | GetBattery (void) |
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV | Battery_release (BATTERYHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_isBatteryPresent (BATTERYHANDLE, bool *batteryIsPresent) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_getBatteryVoltageStatus (BATTERYHANDLE, uint8_t *batteryVoltagePercent) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_getBatteryChargingStatus (BATTERYHANDLE, ChargingStatus *status) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_getPowerSource (BATTERYHANDLE, PowerSource *status) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_getBatteryTemp (BATTERYHANDLE, int16_t *temperature) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_getHwErrorStatus (BATTERYHANDLE, ErrorStatus *errorCode) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_getTimer (BATTERYHANDLE, BatteryTimerType *times) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_getMinMaxTemp (BATTERYHANDLE, int16_t *minTemp, int16_t *maxTemp) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_getBatteryHWversion (BATTERYHANDLE, char_t *buff, int32_t len) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_getBatterySwVersion (BATTERYHANDLE, uint16_t *major, uint16_t *minor, uint16_t *release, uint16_t *build) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Battery_getBatterySerial (BATTERYHANDLE, char_t *buff, int32_t len) |
Functions in the Battery class
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_getBatteryChargingStatus | ( | BATTERYHANDLE | , |
ChargingStatus * | status | ||
) |
Get battery charging status.
Supported Platform(s): XM
status | the current charging mode of the battery. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_getBatteryHWversion | ( | BATTERYHANDLE | , |
char_t * | buff, | ||
int32_t | len | ||
) |
Get battery hardware version (PCB revision).
Supported Platform(s): XM
buff | Text output buffer. |
len | Maximum length of the output buffer. If the actual length of the data is greater, an error will be returned. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_getBatterySerial | ( | BATTERYHANDLE | , |
char_t * | buff, | ||
int32_t | len | ||
) |
Get battery serial number.
Supported Platform(s): XM
buff | Text output buffer. |
len | Maximum length of the output buffer. If the actual length of the data is greater, an error will be returned. The serial number is 10 characters plus terminating zero, in total 11 bytes in size. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_getBatterySwVersion | ( | BATTERYHANDLE | , |
uint16_t * | major, | ||
uint16_t * | minor, | ||
uint16_t * | release, | ||
uint16_t * | build | ||
) |
Get the battery software version
Supported Platform(s): XM
major | Major version number |
minor | Minor version number |
release | Release version number |
build | Build version number |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_getBatteryTemp | ( | BATTERYHANDLE | , |
int16_t * | temperature | ||
) |
Get battery temperature.
Supported Platform(s): XM
temperature | PCB Temperature in degrees Celsius. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_getBatteryVoltageStatus | ( | BATTERYHANDLE | , |
uint8_t * | batteryVoltagePercent | ||
) |
Get battery voltage status.
Supported Platform(s): XM
batteryVoltagePercent | the current voltage level of the battery, in percent [0..100]. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_getHwErrorStatus | ( | BATTERYHANDLE | , |
ErrorStatus * | errorCode | ||
) |
Get hardware error code. If hardware errors are found or other problems are discovered by the battery pack, they are reported here.
Supported Platform(s): XM
errorCode | Error code. Zero means no error. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_getMinMaxTemp | ( | BATTERYHANDLE | , |
int16_t * | minTemp, | ||
int16_t * | maxTemp | ||
) |
Get temperature interval of the battery.
Supported Platform(s): XM
minTemp | Minimum measured temperature. |
maxTemp | Maximum measured temperature. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_getPowerSource | ( | BATTERYHANDLE | , |
PowerSource * | status | ||
) |
Get the currently used power source.
Supported Platform(s): XM
status | the current power source, external power or battery. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_getTimer | ( | BATTERYHANDLE | , |
BatteryTimerType * | times | ||
) |
Get battery diagnostic timer.
Supported Platform(s): XM
times | Get a struct with the current diagnostic times. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Battery_isBatteryPresent | ( | BATTERYHANDLE | , |
bool * | batteryIsPresent | ||
) |
Is an external battery connected?
Supported Platform(s): XM
batteryIsPresent | true if a battery is connected, otherwise false. |
Example Usage:
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV CrossControl::Battery_release | ( | BATTERYHANDLE | ) |
Delete the Battery object
Supported Platform(s): XM.
Example Usage:
EXTERN_C CCAUXDLL_API BATTERYHANDLE CCAUXDLL_CALLING_CONV CrossControl::GetBattery | ( | void | ) |
Factory function that creates instances of the Battery object.
Supported Platform(s): XM
Example Usage: