Definition: This function puts the system to sleep if possible.
Syntax
PMM_Status_t PMM_Sleep(PMM_SleepReq_t *req);
Input Parameter
Parameter Name |
Parameter Type |
Description |
---|---|---|
req |
PMM_SleepReq_t |
Pointer to sleep request structure when being called from application |
PMM_SleepReq_t
–
Definition is available in pmm.h
.Return Type and Values
Parameter Name |
Parameter Type |
Description |
---|---|---|
|
ENUM |
Describes the status of power manager for a sleep request |
PMM_Status_t
– Definition is available in
pmm.h
.
Return Value |
Reason |
---|---|
PMM_SLEEP_REQ_DENIED |
PMM denies the request because system is not ready to sleep at the instance of sleep call |
PMM_SLEEP_REQ_PROCESSED |
Power manager accepted and have already processed the request |
API Type – Synchronous