Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

    • Power Manager monitors Power IR key events and reacts to power state changes.
    • It dispatches Power Mode Change events to IARM-Bus.
    • All listeners should release resources when entering POWER OFF/STANDBY state and re-acquire them when entering POWER ON state.
    • Power manager sends these events to other applications

      Panelcode
      IARM_BUS_PWRMGR_EVENT_MODECHANGED
      
      IARM_BUS_PWRMGR_EVENT_DEEPSLEEP_TIMEOUT
    • The Event Data contains

      Panelcode
      current power state - IARM_Bus_PWRMgr_PowerState_t curState;
      
      new power state and - IARM_Bus_PWRMgr_PowerState_t newState;
      
      Timeout - unsigned int timeout;
    • Power manager publishes four RPC Methods:

      Panelcode
      SetPowerState
      
      GetPowerState
      
      WareHouseReset
      
      SetDeepSleepTimeOut

Events

IARM_BUS_PWRMGR_EVENT_DEEPSLEEP_TIMEOUT

...

IARM_BUS_PWRMgr_DeepSleepTimeout_EventData_t param;
param.timeout = deep_sleep_delay_in_seconds;
IARM_Bus_BroadcastEvent( IARM_BUS_PWRMGR_NAME,
        IARM_BUS_PWRMGR_EVENT_DEEPSLEEP_TIMEOUT,
        (void*)&param, sizeof(param));

 

IARM_BUS_PWRMGR_EVENT_MODECHANGED

...

IARM_Bus_PWRMgr_SetPowerState_Param_t param;
param.newState = IARM_BUS_PWRMGR_POWERSTATE_ON
IARM_Bus_Call(IARM_BUS_PWRMGR_NAME,
        IARM_BUS_PWRMGR_API_SetPowerState,
        (void *)&param, sizeof(param));

 

IARM_BUS_PWRMGR_API_GetPowerState

...

IARM_Bus_Call(IARM_BUS_PWRMGR_NAME,
        IARM_BUS_PWRMGR_API_WareHouseReset, NULL, 0);

 

IARM_BUS_PWRMGR_API_SetDeepSleepTimeOut

...