PWRM_setDependency
2-332
C Interface
Syntax
status = PWRM_setDependency(resourceID);
Parameters
Uns
resourceID;
/* resource ID */
Return Value
PWRM_Status status;
/* returned status */
Reentrant
yes
Description
This function sets a dependency on a resource. It is the companion to
PWRM_releaseDependency.
Resource IDs are device-specific. They are defined in a
PWRM_Resource enumeration in a device-specific header file. For
example, see pwrm5509a.h for the ’C5509A.
PWRM_setDependency returns one of the following constants as a
status value of type PWRM_Status:
Example
/* Declare an application dependency upon McBSP0 */
PWRM_setDependency(PWRM_5509A_MCBSP0);
/* Declare application dependency upon DMA domain */
PWRM_setDependency(PWRM_5509A_DMA_DOMAIN);
PWRM_setDependency
Declare a dependency upon a resource
Name
Usage
PWRM_SOK
The operation succeeded, and depen-
dency has been set.
PWRM_ENOTIMPLEMENTED
The operation failed because resource
tracking is not supported.