|
RDK Documentation (Open Sourced RDK Components)
|
34 #ifndef _IARM_IRMGR_PLATFORM_
35 #define _IARM_IRMGR_PLATFORM_
44 typedef enum PLAT_xmp_tag {
45 XMP_TAG_COMCAST = 0x00,
46 XMP_TAG_PLATCO = 0x01,
47 XMP_TAG_XR11V2 = 0x02,
48 XMP_TAG_XR15V1 = 0x03,
49 XMP_TAG_XR15V2 = 0x04,
50 XMP_TAG_XR16V1 = 0x05,
52 XMP_TAG_XR20V1 = 0x07,
56 typedef enum PLAT_xmp_owner {
57 XMP_OWNER_NORMAL = 0x00,
58 XMP_OWNER_PAIRING = 0x01,
PLAT_xmp_tag_t tag
Designates which device key belongs.
void PLAT_API_LOOP()
This function executes the key event loop.
int code
Code of the pressed key (left, right, power, etc)
void PLAT_API_TERM(void)
This API is used to terminate the IR device module.
PLAT_xmp_owner_t owner
Designates how key should be handled.
void PLAT_API_RegisterIRKeyCallback(PLAT_IrKeyCallback_t func)
This API must registers a callback function to which IR Key events should be posted.
void PLAT_API_RegisterIRKeyCallbackExtended(PLAT_IrKeyCallback_Extended_t func)
This API must registers a callback function to which IR Key events should be posted.
void(* PLAT_IrKeyCallback_t)(int keyType, int keyCode)
IR Input key event handler callback function type definition.
int PLAT_API_INIT(void)
This API initializes the underlying IR module.
int type
Event type of key press (up, down, repeat, etc)
void(* PLAT_IrKeyCallback_Extended_t)(PLAT_irKey_metadata_t *irKey)
IR Input key event handler callback function type definition.
struct PLAT_irKey_metadata PLAT_irKey_metadata_t
IR Key struct that maintains meta data.