CCAux
2.20.0.0
CCAux API reference
|
Functions | |
EXTERN_C CCAUXDLL_API SMARTHANDLE CCAUXDLL_CALLING_CONV | GetSmart (void) |
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV | Smart_release (SMARTHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Smart_getRemainingLifeTime (SMARTHANDLE, uint8_t *lifetimepercent) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Smart_getRemainingLifeTime2 (SMARTHANDLE, uint8_t *lifetimepercent) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Smart_getDeviceSerial (SMARTHANDLE, char_t *buff, int32_t len) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Smart_getDeviceSerial2 (SMARTHANDLE, char_t *buff, int32_t len) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Smart_getInitialTime (SMARTHANDLE, time_t *time) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | Smart_getInitialTime2 (SMARTHANDLE, time_t *time) |
Functions in the Smart class
EXTERN_C CCAUXDLL_API SMARTHANDLE CCAUXDLL_CALLING_CONV CrossControl::GetSmart | ( | void | ) |
Factory function that creates instances of the Smart object.
Supported Platform(s): XL, XM, XM9
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Smart_getDeviceSerial | ( | SMARTHANDLE | , |
char_t * | buff, | ||
int32_t | len | ||
) |
Get serial number of the secondary storage device.
Supported Platform(s): XL, XM, XM9
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. At least an 21 bytes buffer size must be used since the serial number can be 20 bytes + trailing zero. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Smart_getDeviceSerial2 | ( | SMARTHANDLE | , |
char_t * | buff, | ||
int32_t | len | ||
) |
Get serial number of the second secondary storage device. Use this function to access the second card if the the device uses two cards.
Supported Platform(s): XL
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. At least an 21 bytes buffer size must be used since the serial number can be 20 bytes + trailing zero. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Smart_getInitialTime | ( | SMARTHANDLE | , |
time_t * | time | ||
) |
Get the date/time when the SMART monitoring began for this storage device. This time is either when the card first was used or when the system software was updated to support S.M.A.R.T. monitoring for the first time. Logging of time is based on the local time of the computer at the time of logging and may therefore not always be accurate.
Supported Platform(s): XL, XM, XM9
time | A 32bit time_t value representing the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Smart_getInitialTime2 | ( | SMARTHANDLE | , |
time_t * | time | ||
) |
Get the date/time when the SMART monitoring began for this storage device. This time is either when the card first was used or when the system software was updated to support S.M.A.R.T. monitoring for the first time. Logging of time is based on the local time of the computer at the time of logging and may therefore not always be accurate.
Use this function to access the second card if the the device uses two cards.
Supported Platform(s): XL
time | A 32bit time_t value representing the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Smart_getRemainingLifeTime | ( | SMARTHANDLE | , |
uint8_t * | lifetimepercent | ||
) |
Get remaining lifetime of the secondary storage device.
Supported Platform(s): XL, XM, XM9
lifetimepercent | The expected remaining lifetime (0..100%). |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::Smart_getRemainingLifeTime2 | ( | SMARTHANDLE | , |
uint8_t * | lifetimepercent | ||
) |
Get remaining lifetime of the second secondary storage device. Use this function to access the second card if the the device uses two cards.
Supported Platform(s): XL
lifetimepercent | The expected remaining lifetime (0..100%). |
Example Usage:
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV CrossControl::Smart_release | ( | SMARTHANDLE | ) |
Delete the Smart object.
Supported Platform(s): XL, XM, XM9
Example Usage: