Sys Manager is a IARM Manager application which maintains the state of different subsystem/components of RDK such as HDMI, Network, RF, Date & Time, Tuner, CA, Mfr information etc.
- It collects the State change and error codes through a common event handler.
- It publishes RPC methods for getting the system state data.
Events
IARM_BUS_SYSMGR_EVENT_SYSTEMSTATE
- IARM_Bus_SYSMgr_EventData_t *sysEventData; // The event data contains stateId, state and error.
Code Block |
---|
HDCPeventData.data.systemStates.stateId = IARM_BUS_SYSMGR_SYSSTATE_HDCP_ENABLED;
HDCPeventData.data.systemStates.state = 1;
IARM_Bus_BroadcastEvent(IARM_BUS_SYSMGR_NAME,
(IARM_EventId_t) IARM_BUS_SYSMGR_EVENT_SYSTEMSTATE,
(void *)&HDCPeventData, sizeof(HDCPeventData)); |
IARM_BUS_SYSMGR_EVENT_HDCP_PROFILE_UPDATE
- Event to notify HDCP Profile change
Code Block |
---|
IARM_Bus_SYSMgr_EventData_t eventData;
eventData.data.hdcpProfileData.hdcpProfile = param->HdcpProfile;
IARM_Bus_BroadcastEvent(IARM_BUS_SYSMGR_NAME,
(IARM_EventId_t)IARM_BUS_SYSMGR_EVENT_HDCP_PROFILE_UPDATE,
(void *)&eventData,sizeof(eventData)); |
RPC Methods
IARM_BUS_SYSMGR_API_GetSystemStates
- This returns the System State data structure.
Code Block |
---|
IARM_Bus_RegisterCall(IARM_BUS_SYSMGR_API_GetSystemStates, _GetSystemStates); |
IARM_BUS_SYSMGR_API_SetHDCPProfile
- This Method is called to set the new HDCP Profile.
Code Block |
---|
IARM_Bus_RegisterCall(IARM_BUS_SYSMGR_API_SetHDCPProfile,_SetHDCPProfile); |
IARM_BUS_SYSMGR_API_GetHDCPProfile
- This Method is called to get the current HDCP Profile.
Code Block |
---|
IARM_Bus_RegisterCall(IARM_BUS_SYSMGR_API_GetHDCPProfile,_GetHDCPProfile); |
IARM_BUS_SYSMGR_API_RunScript
- This Method is called to run a script through Sys Manager.
Code Block |
---|
IARM_Bus_RegisterCall(IARM_BUS_SYSMGR_API_RunScript, _RunScript); |