|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
35 #ifndef _IARM_BUS_PWRMGR_H
36 #define _IARM_BUS_PWRMGR_H
39 #include "libIBusDaemon.h"
54 #define IARM_BUS_PWRMGR_NAME "PWRMgr"
75 IARM_BUS_PWRMGR_TEMPERATURE_NORMAL = 0,
76 IARM_BUS_PWRMGR_TEMPERATURE_HIGH,
77 IARM_BUS_PWRMGR_TEMPERATURE_CRITICAL
84 IARM_BUS_PWRMGR_WAREHOUSE_RESET = 0,
85 IARM_BUS_PWRMGR_WAREHOUSE_CLEAR,
92 IARM_BUS_PWRMGR_WAREHOUSE_COMPLETED = 0,
93 IARM_BUS_PWRMGR_WAREHOUSE_INPROGRESS,
94 IARM_BUS_PWRMGR_WAREHOUSE_FAILED,
97 #ifdef ENABLE_SET_WAKEUP_SRC_CONFIG
101 typedef enum _WakeupSrcType_t {
103 WAKEUPSRC_PRESENCE_DETECTION,
121 IARM_Bus_PWRMgr_PowerState_t curState;
122 IARM_Bus_PWRMgr_PowerState_t newState;
123 #ifdef ENABLE_DEEP_SLEEP
124 uint32_t deep_sleep_timeout;
128 #ifdef ENABLE_THERMAL_PROTECTION
132 float curTemperature;
135 bool bNetworkStandbyMode;
136 int32_t reset_sequence_progress;
158 #define IARM_BUS_PWRMGR_API_SetPowerState "SetPowerState"
168 #define IARM_BUS_PWRMGR_API_GetPowerState "GetPowerState"
178 #define IARM_BUS_PWRMGR_API_WareHouseReset "WareHouseReset"
187 #define IARM_BUS_PWRMGR_API_WareHouseClear "WarehouseClear"
189 #define IARM_BUS_PWRMGR_API_ColdFactoryReset "ColdFactoryReset"
190 #define IARM_BUS_PWRMGR_API_FactoryReset "FactoryReset"
191 #define IARM_BUS_PWRMGR_API_UserFactoryReset "UserFactoryReset"
193 #define IARM_BUS_PWRMGR_API_SetDeepSleepTimeOut "SetDeepSleepTimeOut"
202 #define IARM_BUS_PWRMGR_API_SetSleepTimer "SetSleepTimer"
203 #define IARM_BUS_PWRMGR_API_GetSleepTimer "GetSleepTimer"
213 #ifdef ENABLE_THERMAL_PROTECTION
218 typedef struct _IARM_Bus_PWRMgr_GetThermalState_Param_t{
220 float curTemperature;
221 } IARM_Bus_PWRMgr_GetThermalState_Param_t;
223 #define IARM_BUS_PWRMGR_API_GetThermalState "GetThermalState"
228 typedef struct _IARM_Bus_PWRMgr_SetTempThresholds_Param_t{
231 } IARM_Bus_PWRMgr_SetTempThresholds_Param_t;
233 #define IARM_BUS_PWRMGR_API_SetTemperatureThresholds "SetTemperatureThresholds"
239 typedef struct _IARM_Bus_PWRMgr_GetTempThresholds_Param_t{
242 } IARM_Bus_PWRMgr_GetTempThresholds_Param_t;
244 #define IARM_BUS_PWRMGR_API_GetTemperatureThresholds "GetTemperatureThresholds"
249 typedef struct _IARM_Bus_PWRMgr_SetOvertempGraceInterval_Param_t{
251 } IARM_Bus_PWRMgr_SetOvertempGraceInterval_Param_t;
253 #define IARM_BUS_PWRMGR_API_SetOvertempGraceInterval "SetOvertempGraceInterval"
258 typedef struct _IARM_Bus_PWRMgr_GetOvertempGraceInterval_Param_t{
260 } IARM_Bus_PWRMgr_GetOvertempGraceInterval_Param_t;
262 #define IARM_BUS_PWRMGR_API_GetOvertempGraceInterval "GetOvertempGraceInterval"
265 extern void initializeThermalProtection();
266 #endif //ENABLE_THERMAL_PROTECTION
272 #define PWRMGR_MAX_VIDEO_PORT_NAME_LENGTH 16
278 #define IARM_BUS_PWRMGR_API_SetStandbyVideoState "SetStandbyVideoState"
279 #define IARM_BUS_PWRMGR_API_GetStandbyVideoState "GetStandbyVideoState"
281 #define IARM_BUS_PWRMGR_API_SetNetworkStandbyMode "SetNetworkStandbyMode"
282 #define IARM_BUS_PWRMGR_API_GetNetworkStandbyMode "GetNetworkStandbyMode"
287 #define MAX_PWR_STATE_BEF_REBOOR_STR_LEN (32)
288 #define IARM_BUS_PWRMGR_API_GetPowerStateBeforeReboot "GetPowerStateBeforeReboot"
297 #define PWRMGR_MAX_REBOOT_REASON_LENGTH 100
298 #define PWRMGR_REBOOT_REASON_MAINTENANCE "MAINTENANCE_REBOOT"
303 char reboot_reason_custom[PWRMGR_MAX_REBOOT_REASON_LENGTH];
304 char reboot_reason_other[PWRMGR_MAX_REBOOT_REASON_LENGTH];
305 char requestor[PWRMGR_MAX_REBOOT_REASON_LENGTH];
307 #define IARM_BUS_PWRMGR_API_Reboot "performReboot"
309 #ifdef ENABLE_SET_WAKEUP_SRC_CONFIG
313 typedef struct _IARM_Bus_PWRMgr_SetWakeupSrcConfig_Param_t{
314 WakeupSrcType_t srcType;
316 } IARM_Bus_PWRMgr_SetWakeupSrcConfig_Param_t;
317 #define IARM_BUS_PWRMGR_API_SetWakeupSrcConfig "setWakeupSrcConfig"
323 #define IARM_BUS_PWRMGR_API_handleDeepsleepTimeoutWakeup "handleDeepsleepTimeoutWakeup"
_IARM_Bus_PWRMgr_WareHouseOps_t
Enumerator which represents the possible warehouse ops.
enum _PWRMgr_EventId_t IARM_Bus_PWRMgr_EventId_t
Represents the published Events from PWR Manager.
Structure which holds the new powerstate to be set to the device.
Structure to pass reboot reason argument with the reboot call.
struct _PWRMgr_EventData_t IARM_Bus_PWRMgr_EventData_t
Structure which holds the event data.
struct _IARM_Bus_PWRMgr_WareHouseReset_Param_t IARM_Bus_PWRMgr_WareHouseReset_Param_t
Structure which holds the ware house reset time.
struct _IARM_BUS_PWRMgr_DeepSleepTimeout_EventData_t IARM_BUS_PWRMgr_DeepSleepTimeout_EventData_t
Structure which holds the Deep sleep timeout value.
IARM_Bus_PWRMgr_PowerState_t prevState
Structure which holds the current power state of the CPE.
struct _IARM_Bus_PWRMgr_SleepTimer_Param_t IARM_Bus_PWRMgr_SleepTimer_Param_t
Structure which holds the sleep timer information.
Structure which holds the event data.
@ IARM_BUS_PWRMGR_EVENT_REBOOTING
char powerStateBeforeReboot[(32)]
struct _IARM_Bus_PWRMgr_GetPowerState_Param_t IARM_Bus_PWRMgr_GetPowerState_Param_t
Structure which holds the current power state of the CPE.
@ IARM_BUS_PWRMGR_EVENT_WAREHOUSEOPS_STATUSCHANGED
struct _IARM_Bus_PWRMgr_SetDeepSleepTimeOut_Param_t IARM_Bus_PWRMgr_SetDeepSleepTimeOut_Param_t
Structure which holds the timeout value to set for Deep sleep.
struct _IARM_Bus_PWRMgr_SetPowerState_Param_t IARM_Bus_PWRMgr_SetPowerState_Param_t
Structure which holds the new powerstate to be set to the device.
IARM_Bus_PWRMgr_PowerState_t curState
_IARM_Bus_PWRMgr_ThermalState_t
Enumerator which represents the possible temeperature states.
_PWRMgr_EventId_t
Represents the published Events from PWR Manager.
struct _IARM_Bus_PWRMgr_RebootParam_t IARM_Bus_PWRMgr_RebootParam_t
Structure to pass reboot reason argument with the reboot call.
IARM_Bus_PWRMgr_WareHouseOps_t wareHouseOpn
enum _IARM_Bus_PWRMgr_WareHouseOpsStatus_t IARM_Bus_PWRMgr_WareHouseOpsStatus_t
Enumerator which represents the possible warehouse ops.
enum _IARM_Bus_PWRMgr_WareHouseOps_t IARM_Bus_PWRMgr_WareHouseOps_t
Enumerator which represents the possible warehouse ops.
struct _IARM_Bus_PWRMgr_GetPowerStateBeforeReboot_Param_t IARM_Bus_PWRMgr_GetPowerStateBeforeReboot_Param_t
Structure which holds the power state before reboot of the CPE.
enum _IARM_Bus_PWRMgr_ThermalState_t IARM_Bus_PWRMgr_ThermalState_t
Enumerator which represents the possible temeperature states.
@ IARM_BUS_PWRMGR_EVENT_MODECHANGED
@ IARM_BUS_PWRMGR_EVENT_RESET_SEQUENCE
@ IARM_BUS_PWRMGR_EVENT_MAX
#define PWRMGR_MAX_VIDEO_PORT_NAME_LENGTH
Structure which holds the setting for whether video port is enabled in standby.
Structure which holds the power state before reboot of the CPE.
_IARM_Bus_PWRMgr_WareHouseOpsStatus_t
Enumerator which represents the possible warehouse ops.
IARM_Bus_PWRMgr_WareHouseOpsStatus_t status
Structure which holds the sleep timer information.
@ IARM_BUS_PWRMGR_EVENT_DEEPSLEEP_TIMEOUT
Structure which holds the Deep sleep timeout value.
IARM_Bus_PWRMgr_PowerState_t newState
@ IARM_BUS_PWRMGR_EVENT_THERMAL_MODECHANGED
Structure which holds the timeout value to set for Deep sleep.
Structure which holds warehouse opn status value.
struct _IARM_BUS_PWRMgr_WareHouseOpn_EventData_t IARM_BUS_PWRMgr_WareHouseOpn_EventData_t
Structure which holds warehouse opn status value.
Structure which holds the ware house reset time.
@ IARM_BUS_PWRMGR_EVENT_NETWORK_STANDBYMODECHANGED