RDK Documentation (Open Sourced RDK Components)

Description

Described here in are functions to manage the lifecycle of IR manager.

Typedefs

typedef enum _IRMgr_UINPUTSrc IRMg_UINPUT_Src_t
 

Enumerations

enum  _IRMgr_UINPUTSrc
 

Functions

IARM_Result_t IRMgr_Start (int argc, char *argv[])
 Starts the IR manager. More...
 
IARM_Result_t IRMgr_Loop ()
 Loop to keep the IR manager alive. More...
 
IARM_Result_t IRMgr_Stop (void)
 Terminates the IR manager. More...
 
IARM_Result_t IRMgr_Register_uinput (uinput_dispatcher_t f)
 register a uinput dispatcher. More...
 
int UINPUT_init (void)
 uinput module init. More...
 
int UINPUT_init_src (IRMg_UINPUT_Src_t eSrc)
 
uinput_dispatcher_t UINPUT_GetDispatcher (void)
 get the dispather that will listen for IARM IR More...
 
int UINPUT_term (void)
 uinput module term. More...
 

Function Documentation

◆ IRMgr_Start()

IARM_Result_t IRMgr_Start ( int  argc,
char *  argv[] 
)

Starts the IR manager.

This function registers and connects IR Manager to the IARM bus.

Returns
Error code if start fails.

Definition at line 151 of file irMgr.c.

◆ IRMgr_Loop()

IARM_Result_t IRMgr_Loop ( )

Loop to keep the IR manager alive.

This function will loop around to keep IR manager alive.

Definition at line 221 of file irMgr.c.

◆ IRMgr_Stop()

IARM_Result_t IRMgr_Stop ( void  )

Terminates the IR manager.

This function disconnects and terminates IR manager from IARM bus.

Returns
Error code if stop fails.

Definition at line 235 of file irMgr.c.

◆ IRMgr_Register_uinput()

IARM_Result_t IRMgr_Register_uinput ( uinput_dispatcher_t  f)

register a uinput dispatcher.

This function is invoked whenever a IR key event is sent out on IARM This should be called before IRMgr_Start()

Returns
Error code if stop fails.

Definition at line 145 of file irMgr.c.

◆ UINPUT_init()

int UINPUT_init ( void  )

uinput module init.

initialize uinput module. If /dev/uinput does not exist, fail;

Returns
Error code if fails.

Definition at line 225 of file uinput.c.

◆ UINPUT_GetDispatcher()

uinput_dispatcher_t UINPUT_GetDispatcher ( void  )

get the dispather that will listen for IARM IR

Returns
NULL if uinput is not available.

Definition at line 325 of file uinput.c.

◆ UINPUT_term()

int UINPUT_term ( void  )

uinput module term.

release uinput module.

Returns
Error code if fails.

Definition at line 339 of file uinput.c.