PWRM_releaseDependency
Application Program Interface
2-331
C Interface
Syntax
status = PWRM_releaseDependency(resourceID);
Parameters
Uns
resourceID;
/* resource ID */
Return Value
PWRM_Status status;
/* returned status */
Reentrant
yes
Description
This function is the companion to PWRM_setDependency. It releases a
resource dependency that was previously set.
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_ETOOMANYCALLS is returned if you call
PWRM_releaseDependency when there are no dependencies currently
declared for the specified resource (either because all have been
released or because none were set).
PWRM_releaseDependency returns one of the following constants as a
status value of type PWRM_Status:
Example
/* Release default dependency on CLKOUT to save power*/
PWRM_releaseDependency(PWRM_5509A_CLKOUT);
PWRM_releaseDependency
Release a dependency that was previously declared
Name
Usage
PWRM_SOK
The operation succeeded, and depen-
dency has been released.
PWRM_ETOOMANYCALLS
A dependency was not previously set and
was therefore not released.
PWRM_ENOTIMPLEMENTED
The operation failed because resource
tracking is not supported.