CCAux
2.20.0.0
CCAux API reference
|
Functions | |
EXTERN_C CCAUXDLL_API POWERMGRHANDLE CCAUXDLL_CALLING_CONV | GetPowerMgr (void) |
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV | PowerMgr_release (POWERMGRHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | PowerMgr_registerControlledSuspendOrShutDown (POWERMGRHANDLE, PowerMgrConf conf) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | PowerMgr_getConfiguration (POWERMGRHANDLE, PowerMgrConf *conf) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | PowerMgr_getPowerMgrStatus (POWERMGRHANDLE, PowerMgrStatus *status) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | PowerMgr_setAppReadyForSuspendOrShutdown (POWERMGRHANDLE) |
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV | PowerMgr_hasResumed (POWERMGRHANDLE, bool *resumed) |
Functions in the PowerMgr class
EXTERN_C CCAUXDLL_API POWERMGRHANDLE CCAUXDLL_CALLING_CONV CrossControl::GetPowerMgr | ( | void | ) |
Factory function that creates instances of the PowerMgr object.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::PowerMgr_getConfiguration | ( | POWERMGRHANDLE | , |
PowerMgrConf * | conf | ||
) |
Get the configuration that is in use.
Supported Platform(s): XL, XL5 ,XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
conf | The configuration in use. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::PowerMgr_getPowerMgrStatus | ( | POWERMGRHANDLE | , |
PowerMgrStatus * | status | ||
) |
Get the current status of the PowerMgr. This functions should be called periodically, to detect when suspend or shutdown requests arrive.
Supported Platform(s): XL, XL5 ,XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
status | The current status. |
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::PowerMgr_hasResumed | ( | POWERMGRHANDLE | , |
bool * | resumed | ||
) |
This function can be used in a suspend-resume scenario. After the application has used setAppReadyForSuspendOrShutdown() to init the suspend, this function may be polled in order to detect when the system is up and running again. Calling this function before calling setAppReadyForSuspendOrShutdown will return resumed = true.
Supported Platform(s): XL, XL5, XM, XM9 (CC Linux), VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::PowerMgr_registerControlledSuspendOrShutDown | ( | POWERMGRHANDLE | , |
PowerMgrConf | conf | ||
) |
Configure the PowerMgr. Call this function once initially to turn on the functionality.
Supported Platform(s): XL, XL5 ,XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
conf | The configuration to use. |
Example Usage:
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV CrossControl::PowerMgr_release | ( | POWERMGRHANDLE | ) |
Delete the PowerMgr object.
Supported Platform(s): XL, XL5, XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage:
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV CrossControl::PowerMgr_setAppReadyForSuspendOrShutdown | ( | POWERMGRHANDLE | ) |
Acknowledge that the application is ready for suspend/shutdown. Should be called after a request has been received in order to execute the request. The application must acknowledge a request within 20s (30s for Yukon, V510, V710, V1000, V1200) from when it arrives.
Supported Platform(s): XL, XL5 ,XM, XM9, XS, XA, VC, VA, VS, VI2, V700, Yukon, V510, V710, V1000, V1200, X1200
Example Usage: