Described herein are the IARM-Bus HAL types and functions that are part of the Power Manager application. This manager monitors Power IR key events and reacts to power state changes based on Comcast RDK Power Management Specification. It dispatches Power Mode Change events to IARM-Bus. All listeners should releases resources when entering POWER OFF/STANDBY state and re-acquire them when entering POWER ON state.
◆ PLAT_INIT()
Initialize the underlying Power Management module.
This function must initialize all aspects of the CPE's Power Management module.
- Returns
- Returns the status of the operation
- Return values
-
0 | if successful, appropiate error code otherwise. |
◆ PLAT_API_SetPowerState()
int PLAT_API_SetPowerState |
( |
IARM_Bus_PWRMgr_PowerState_t |
newState | ) |
|
This API sets the CPE Power State.
This function sets the CPE's current power state to the specified state.
- Parameters
-
[in] | newState | The power state to which to set the CPE. |
- Returns
- Returns the status of the operation.
- Return values
-
0 | if successful, appropiate error code otherwise. |
◆ PLAT_API_GetPowerState()
int PLAT_API_GetPowerState |
( |
IARM_Bus_PWRMgr_PowerState_t * |
curState | ) |
|
This function is used to get the CPE Power State.
This function returns the current power state of the CPE.
- Parameters
-
[in] | curState | The address of a location to hold the current power state of the CPE on return. |
- Returns
- Returns the status of the operation.
- Return values
-
0 | if successful, appropiate error code otherwise. |
◆ PLAT_Reset()
void PLAT_Reset |
( |
IARM_Bus_PWRMgr_PowerState_t |
newState | ) |
|
This API resets the power state of the device.
- Parameters
-
[in] | newState | The state to be set. The input paramter is not in use. |
◆ PLAT_TERM()
This API terminates the power management module.
This function must terminate the CPE Power Management module. It must reset any data structures used within Power Management module and release any Power Management specific handles and resources.