PWRM_getCapabilities
Application Program Interface
2-315
C Interface
Syntax
status = PWRM_getCapabilities(capsMask);
Parameters
Uns
*capsMask;
/* pointer to location for capabilities */
Return Value
PWRM_Status status;
/* returned status */
Reentrant
yes
Description
PWRM_getCapabilities returns information about the PWRM module’s
capabilities on the current platform.
The capsMask parameter should point to the location where
PWRM_getCapabilities should write a bitmask that defines the
capabilities. You can use the following constants to check for capabilities
in the bitmask:
PWRM_getCapabilities returns one of the following constants as a status
value of type PWRM_Status:
PWRM_getCapabilities
Get information on PWRM capabilities on the current platform
Name
Usage
PWRM_CDEEPSLEEP
PWRM_sleepDSP supports deep
sleep mode.
PWRM_CRESOURCETRACKING
The PWRM module supports dynamic
resource tracking.
PWRM_CSLEEPUNTILRESTART
PWRM_sleepDSP supports sleep until
restart.
PWRM_CSNOOZE
PWRM_sleepDSP supports snooze
mode.
PWRM_CVFSCALING
The PWRM module supports voltage
and frequency scaling.
Name
Usage
PWRM_SOK
The operation succeeded.
PWRM_EFAIL
A general failure occurred.
PWRM_EINVALIDPOINTER
The operation failed because the capsMask
parameter was NULL.