Files | |
| file | deepSleepMgr.h |
| Deep Sleep Manager HAL Public API. | |
Data Structures | |
| struct | _IARM_Bus_DeepSleepMgr_SetDeepSleepTimer_Param_t |
| Structure which holds the HAL timeout in seconds. More... | |
| struct | _IARM_Bus_DeepSleepMgr_WakeupKeyCode_Param_t |
| Struct for handling the wake up key code. More... | |
Macros | |
| #define | IARM_BUS_DEEPSLEEPMGR_NAME "DEEPSLEEPMgr" |
| #define | IARM_BUS_DEEPSLEEPMGR_API_SetDeepSleepTimer "SetDeepSleepTimer" |
| #define | IARM_BUS_DEEPSLEEPMGR_API_GetLastWakeupReason "GetLastWakeupReason" |
| #define | IARM_BUS_DEEPSLEEPMGR_API_GetLastWakeupKeyCode "GetLastWakeupKeycode" |
Typedefs | |
| typedef enum _DeepSleepStatus_t | DeepSleepStatus_t |
| typedef struct _IARM_Bus_DeepSleepMgr_SetDeepSleepTimer_Param_t | IARM_Bus_DeepSleepMgr_SetDeepSleepTimer_Param_t |
| Structure which holds the HAL timeout in seconds. | |
| typedef enum _DeepSleep_WakeupReason_t | DeepSleep_WakeupReason_t |
| Enum for all possible Wakeup Reasons from DeepSleep State. | |
| typedef struct _IARM_Bus_DeepSleepMgr_WakeupKeyCode_Param_t | IARM_Bus_DeepSleepMgr_WakeupKeyCode_Param_t |
| Struct for handling the wake up key code. | |
Functions | |
| int | PLAT_DS_INIT (void) |
| Initializes the underlying Deep Sleep Management module. | |
| int | PLAT_DS_SetDeepSleep (uint32_t deep_sleep_timeout, bool *isGPIOWakeup) |
| Sets the CPE's Power State to Deep Sleep. | |
| void | PLAT_DS_DeepSleepWakeup (void) |
| Sets or configures the platform status after deepsleep wake-up. | |
| void | PLAT_DS_TERM (void) |
| Terminates the CPE Deep Sleep Management module. | |
| int | PLAT_DS_GetLastWakeupReason (DeepSleep_WakeupReason_t *wakeupReason) |
| Gets the CPE's Last wakeup reason. | |
| int | PLAT_DS_GetLastWakeupKeyCode (IARM_Bus_DeepSleepMgr_WakeupKeyCode_Param_t *wakeupKeyCode) |
| Gets the CPE's Last wakeup key code. | |
| #define IARM_BUS_DEEPSLEEPMGR_API_GetLastWakeupKeyCode "GetLastWakeupKeycode" |
| #define IARM_BUS_DEEPSLEEPMGR_API_GetLastWakeupReason "GetLastWakeupReason" |
| #define IARM_BUS_DEEPSLEEPMGR_API_SetDeepSleepTimer "SetDeepSleepTimer" |
Sets the timer for deep sleep ,timer is set explicitly by client of deep sleep manager, then the STB will accept the timer value, and go to sleep when sleep timer is expired.
| #define IARM_BUS_DEEPSLEEPMGR_NAME "DEEPSLEEPMgr" |
Power manager IARM bus name
| typedef enum _DeepSleep_WakeupReason_t DeepSleep_WakeupReason_t |
Enum for all possible Wakeup Reasons from DeepSleep State.
| typedef enum _DeepSleepStatus_t DeepSleepStatus_t |
| typedef struct _IARM_Bus_DeepSleepMgr_SetDeepSleepTimer_Param_t IARM_Bus_DeepSleepMgr_SetDeepSleepTimer_Param_t |
Structure which holds the HAL timeout in seconds.
| typedef struct _IARM_Bus_DeepSleepMgr_WakeupKeyCode_Param_t IARM_Bus_DeepSleepMgr_WakeupKeyCode_Param_t |
Struct for handling the wake up key code.
The wake up key code is used to identify the wakeup reason.
Enum for all possible Wakeup Reasons from DeepSleep State.
| enum _DeepSleepStatus_t |
| void PLAT_DS_DeepSleepWakeup | ( | void | ) |
Sets or configures the platform status after deepsleep wake-up.
| int PLAT_DS_GetLastWakeupKeyCode | ( | IARM_Bus_DeepSleepMgr_WakeupKeyCode_Param_t * | wakeupKeyCode | ) |
Gets the CPE's Last wakeup key code.
| [out] | wakeupKeyCode | - The user wakeup code |
| 0 | if successful, -1 if failure. |
| int PLAT_DS_GetLastWakeupReason | ( | DeepSleep_WakeupReason_t * | wakeupReason | ) |
Gets the CPE's Last wakeup reason.
| [out] | wakeupReason | - Reason for CPE's last wake up |
| 0 | if successful, -1 if failure. |
| int PLAT_DS_INIT | ( | void | ) |
Initializes the underlying Deep Sleep Management module.
| 0 | if successful, -1 if failure. |
| int PLAT_DS_SetDeepSleep | ( | uint32_t | deep_sleep_timeout, |
| bool * | isGPIOWakeup ) |
Sets the CPE's Power State to Deep Sleep.
| [in] | deep_sleep_timeout | - The deep sleep wakeup timeout. Min value 0 |
| [out] | isGPIOWakeup | - Wakeup reason. TRUE for user related wake up, false for not |
| 0 | if successful, -1 if failure. |
| void PLAT_DS_TERM | ( | void | ) |
Terminates the CPE Deep Sleep Management module.
All data structures used within Deep Sleep Management module must be reset and any Deep Sleep Management specific handles and resources must be released