RDK Documentation (Open Sourced RDK Components)
|
Modules | |
IARM-Bus IR Manager internal API. | |
Data Structures | |
struct | _IRMgr_EventData_t |
union | _IRMgr_EventData_t.data |
struct | _IRKEY_DATA.data.fpkey |
struct | _IRKEY_DATA.data.irkey |
struct | _IARM_Bus_IRMgr_SetRepeatInterval_Param_t |
struct | _IARM_Bus_IRMgr_GetRepeatInterval_Param_t |
Macros | |
#define | IARM_BUS_IRMGR_NAME "IRMgr" |
#define | IARM_BUS_IRMGR_API_SetRepeatInterval "SetRepeatInterval" |
#define | IARM_BUS_IRMGR_API_GetRepeatInterval "GetRepeatInterval" |
#define | MAX_KEY_REPEATS 6 |
#define | LAST_KEY_NUM_SECONDS 2 |
#define | MICRO_SECS_PER_SEC 1000000L |
#define | MICROSECS_PER_MILLISEC 1000L |
#define | LOG_TRANSLATE_EVENT(OLD_KEY, NEW_KEY) |
#define | LOG(...) printf(__VA_ARGS__) |
#define | RFC_BUFFER_SIZE 100 |
Typedefs | |
typedef enum _IRMgr_EventId_t | IARM_Bus_IRMgr_EventId_t |
typedef enum _IRMgr_KeySrc_t | IARM_Bus_IRMgr_KeySrc_t |
typedef struct _IRMgr_EventData_t | IARM_Bus_IRMgr_EventData_t |
typedef struct _IARM_Bus_IRMgr_SetRepeatInterval_Param_t | IARM_Bus_IRMgr_SetRepeatInterval_Param_t |
typedef struct _IARM_Bus_IRMgr_GetRepeatInterval_Param_t | IARM_Bus_IRMgr_GetRepeatInterval_Param_t |
typedef void(* | uinput_dispatcher_t) (int keyCode, int keyType, int source) |
Enumerations | |
enum | _IRMgr_EventId_t |
enum | _IRMgr_KeySrc_t |
Functions | |
static void * | _LASTKeyTimerThreadFunc (void *arg) |
static void * | _KeyRepeatThreadFunc (void *arg) |
Thread entry fuction to post Repeat Keys. More... | |
static void | _IrKeyCallback (int keyType, int keyCode) |
static void | _IrKeyCallbackFrom (int keyType, int keyCode, int keySrc, unsigned int keySrcId) |
static void | _IrInputKeyEventHandler (int keyType, int keyCode, int keySrc, unsigned int keySrcId) |
Calback funtion to that is registered with MAF to get notified for the key press. More... | |
static void | _logEventHandler (const char *owner, IARM_EventId_t eventId, void *data, size_t len) |
Event Handler for RF Key Events. More... | |
static IARM_Result_t | _SetRepeatInterval (void *arg) |
Sets key repeat interval. More... | |
static IARM_Result_t | _GetRepeatInterval (void *arg) |
Gets key repeat interval. More... | |
IARM_Result_t | IRMgr_Register_uinput (uinput_dispatcher_t f) |
register a uinput dispatcher. More... | |
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... | |
static bool | isKeyReleased (unsigned int uTimeoutValue) |
Calback funtion to that is registered with MAF to get notified for the key press. More... | |
int | get_irmgr_RFC_config () |
static bool | drop_root () |
int | main (int argc, char *argv[]) |
Variables | |
int | _IRMgr_EventData_t::_IRKEY_DATA::keyType |
int | _IRMgr_EventData_t::_IRKEY_DATA::keyCode |
int | _IRMgr_EventData_t::_IRKEY_DATA::keyTag |
int | _IRMgr_EventData_t::_IRKEY_DATA::keyOwner |
int | _IRMgr_EventData_t::_IRKEY_DATA::isFP |
IARM_Bus_IRMgr_KeySrc_t | _IRMgr_EventData_t::_IRKEY_DATA::keySrc |
unsigned int | _IRMgr_EventData_t::_IRKEY_DATA::keySourceId |
struct _IRKEY_DATA { | |
int | keyType |
int | keyCode |
int | keyTag |
int | keyOwner |
int | isFP |
IARM_Bus_IRMgr_KeySrc_t | keySrc |
unsigned int | keySourceId |
} | _IRMgr_EventData_t::irkey |
struct _IRKEY_DATA { | |
int | keyType |
int | keyCode |
int | keyTag |
int | keyOwner |
int | isFP |
IARM_Bus_IRMgr_KeySrc_t | keySrc |
unsigned int | keySourceId |
} | _IRMgr_EventData_t::fpkey |
union { | |
struct _IRKEY_DATA { | |
int | keyType |
int | keyCode |
int | keyTag |
int | keyOwner |
int | isFP |
IARM_Bus_IRMgr_KeySrc_t | keySrc |
unsigned int | keySourceId |
} | irkey |
struct _IRKEY_DATA { | |
int | keyType |
int | keyCode |
int | keyTag |
int | keyOwner |
int | isFP |
IARM_Bus_IRMgr_KeySrc_t | keySrc |
unsigned int | keySourceId |
} | fpkey |
} | _IRMgr_EventData_t::data |
unsigned int | _IARM_Bus_IRMgr_SetRepeatInterval_Param_t::timeout |
unsigned int | _IARM_Bus_IRMgr_GetRepeatInterval_Param_t::timeout |
static pthread_t | eRepeatThreadID |
static pthread_mutex_t | tLastKeyMutex |
static pthread_mutex_t | tKeySeqMutex |
static pthread_mutex_t | tMutexLock |
static pthread_cond_t | tMutexCond |
static int | gCurrentKeyCode = KED_UNDEFINEDKEY |
static int | gCurrentKeySrcId = 0 |
static const unsigned int | gInitialWaitTimeout = 500 |
static unsigned int | gRepeatKeyInterval = 50 |
static int | numKeyRepeats = 0 |
static int | keyLogStatus = 1 |
static pthread_t | eLASTKeyTimerThreadID |
bool | bLastKeyUpReceived = false |
bool | bLastTimerRunning = false |
bool | bIgnoreLastKeyup = false |
int | LASTkeySrc = IARM_BUS_IRMGR_KEYSRC_IR |
int | lastKeyNumMSecs = 1500 |
static bool | isCecLocalLogicEnabled = false |
static bool | bNeedRFKeyUp = false |
static uinput_dispatcher_t | udispatcher = NULL |
struct _IRMgr_EventData_t |
union _IRMgr_EventData_t.data |
struct _IRMgr_EventData_t::_IRKEY_DATA.data.fpkey |
Data Fields | ||
---|---|---|
int | keyType |
Key type (UP/DOWN/REPEAT) |
int | keyCode |
Key code |
int | keyTag |
key tag (identifies which remote) |
int | keyOwner |
key owner (normal or pairing op) |
int | isFP |
Key Source – Remote/FP - TBD - Need to be removed after changing MPEOS |
IARM_Bus_IRMgr_KeySrc_t | keySrc |
Key Source – FP,IR,Remote |
unsigned int | keySourceId |
struct _IRMgr_EventData_t::_IRKEY_DATA.data.irkey |
Data Fields | ||
---|---|---|
int | keyType |
Key type (UP/DOWN/REPEAT) |
int | keyCode |
Key code |
int | keyTag |
key tag (identifies which remote) |
int | keyOwner |
key owner (normal or pairing op) |
int | isFP |
Key Source – Remote/FP - TBD - Need to be removed after changing MPEOS |
IARM_Bus_IRMgr_KeySrc_t | keySrc |
Key Source – FP,IR,Remote |
unsigned int | keySourceId |
struct _IARM_Bus_IRMgr_SetRepeatInterval_Param_t |
struct _IARM_Bus_IRMgr_GetRepeatInterval_Param_t |
#define IARM_BUS_IRMGR_NAME "IRMgr" |
#define IARM_BUS_IRMGR_API_SetRepeatInterval "SetRepeatInterval" |
#define IARM_BUS_IRMGR_API_GetRepeatInterval "GetRepeatInterval" |
#define LOG_TRANSLATE_EVENT | ( | OLD_KEY, | |
NEW_KEY | |||
) |
typedef enum _IRMgr_EventId_t IARM_Bus_IRMgr_EventId_t |
Events published from IR Mananger
typedef enum _IRMgr_KeySrc_t IARM_Bus_IRMgr_KeySrc_t |
Possible IR Manager Key Source
typedef struct _IRMgr_EventData_t IARM_Bus_IRMgr_EventData_t |
Key Event Data
Declare Argument Data structure for SetRepeatInterval
Declare Argument Data structure for GetRepeatInterval
enum _IRMgr_EventId_t |
enum _IRMgr_KeySrc_t |
|
static |
|
static |
Calback funtion to that is registered with MAF to get notified for the key press.
This functions receives KET_KEYDOWN, KET_KEYREPEAT and KET_KEYUP and signals the thread.
keyType | Type of event (KEYDOWN or KEYREPEAT or KEYUP) |
keyCode | Contains the key code that is trigger by the user |
keySrc | Contains the key source that is trigger by the user |
|
static |
|
static |
|
static |
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()
IARM_Result_t IRMgr_Start | ( | int | argc, |
char * | argv[] | ||
) |
IARM_Result_t IRMgr_Loop | ( | ) |
IARM_Result_t IRMgr_Stop | ( | void | ) |
|
static |
int { ... } ::_IRKEY_DATA::keyType |
int { ... } ::_IRKEY_DATA::keyTag |
int { ... } ::_IRKEY_DATA::keyOwner |
int { ... } ::_IRKEY_DATA::isFP |
IARM_Bus_IRMgr_KeySrc_t { ... } ::_IRKEY_DATA::keySrc |
struct { ... } ::irkey |
struct { ... } ::fpkey |
union { ... } _IRMgr_EventData_t::data |
unsigned int _IARM_Bus_IRMgr_SetRepeatInterval_Param_t::timeout |