Described here in are functions to manage the lifecycle of IR manager.
|
typedef enum _IRMgr_UINPUTSrc | IRMg_UINPUT_Src_t |
|
◆ 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()
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()
uinput module term.
release uinput module.
- Returns
- Error code if fails.
Definition at line 339 of file uinput.c.