IR Manager

Created on June 21, 2022


Overview

  • IR Manager is an application that publishes Remote Key events to other applications
  • IR Manager receives IR signals from driver and dispatches it to all registered listeners on IARM Bus
  • IR manager sends these IR events to other applications
      • IARM_BUS_IRMGR_EVENT_IRKEY

  • The Event Data contains Key Code and Key Type of the pressed IR key
      • int keyCode;
      • int keyType;
  • IR manager publishes two RPC Methods:
      • SetRepeatKeyInterval
      • GetRepeatKeyInterval

Events

IARM_BUS_IRMGR_EVENT_IRKEY

  • This macro is used to notify IR Key events.
IARM_Bus_IRMgr_EventData_t eventData;
eventData.data.irkey.keyType = KET_KEYUP;
eventData.data.irkey.keyCode = prevEventData.data.irkey.keyCode;
IARM_Bus_BroadcastEvent(IARM_BUS_IRMGR_NAME,
		(IARM_EventId_t) IARM_BUS_IRMGR_EVENT_IRKEY, 
		(void*)&eventData, sizeof(eventData));

RPC Methods

IARM_BUS_IRMGR_API_SetRepeatInterval

  • This API is used to set the repeat key event interval.
IARM_Bus_IRMgr_SetRepeatInterval_Param_t param;
param. timeout = 200; //200 milisec
IARM_Bus_Call (IARM_BUS_IRMGR_NAME,
		IARM_BUS_IRMGR_API_SetRepeatInterval, 
		(void *)&param, sizeof(param));

IARM_BUS_IRMGR_API_GetRepeatInterval

  • This is used to retrieve the current key repeat interval
IARM_Bus_IRMgr_SetRepeatInterval_Param_t param;
IARM_Bus_Call (IARM_BUS_IRMGR_NAME,
		IARM_BUS_IRMGR_API_GetRepeatInterval,
		(void *)&param, sizeof(param));

Uses RF4CE Driver

Go To Top