PWRM_sleepDSP
Application Program Interface
2-333
C Interface
Syntax
status = PWRM_sleepDSP(sleepCode, sleepArg, notifyTimeout);
Parameters
Uns
sleepCode;
/* new sleep state */
LgUns
sleepArg;
/* sleepCode-specific argument */
Uns
notifyTimeout; /* maximum time to wait for notification */
Return Value
PWRM_Status status;
/* returned status */
Reentrant
yes
Description
PWRM_sleepDSP transitions the DSP to a new sleep state.
The sleepCode parameter indicates the new sleep state for the DSP. The
following constants may be used:
A call to PWRM_sleepDSP with PWRM_DEEPSLEEP or
PWRM_SNOOZE returns when the DSP awakes from deep sleep or
snoozing (respectively). The interrupts that can wake the DSP from deep
sleep are specified by the following PWRM Manager Properties: Wakeup
interrupt mask, IER0 and Wakeup interrupt mask, IER1.
A call to PWRM_sleepDSP with PWRM_SLEEPUNTILRESTART never
returns. The use of PWRM_SLEEPUNTILRESTART indicates that the
only way to wake up is a DSP reset.
Note:
Snooze mode is currently not implemented.
The sleepArg parameter is a sleepCode-specific argument. Currently, it
is used only for PWRM_SNOOZE mode to indicate the duration (in
milliseconds) for snoozing the DSP.
PWRM_sleepDSP
Transition the DSP to a new sleep state
Name
Usage
PWRM_DEEPSLEEP
Put the DSP in deep sleep until a con-
figured interrupt occurs to wake the
DSP.
PWRM_SLEEPUNTILRESTART
Idle all DSP clock domains. The only
way to wake up is a DSP reset.
PWRM_SNOOZE
Sleep the DSP for the number of milli-
seconds specified by sleepArg.