RDK Documentation (Open Sourced RDK Components)
|
Data Structures | |
class | CecIARMMgrFrameListener |
Macros | |
#define | HEADER_OFFSET 0 |
#define | OPCODE_OFFSET 1 |
Functions | |
int | main (int argc, char *argv[]) |
static IARM_Result_t | _Send (void *arg) |
This function is used to send the CECFrame if the connection is ready. More... | |
static IARM_Result_t | _GetLogicalAddress (void *arg) |
This function is used to get the logical address of CEC devices. More... | |
static IARM_Result_t | _AddLogicalAddress (void *arg) |
This function is used to add the logical address of own devices, so driver can ACK while receving direct messages. More... | |
static IARM_Result_t | _GetPhysicalAddress (void *arg) |
static IARM_Result_t | _Enable (void *arg) |
This function is used to start or stop the CEC connections. More... | |
static IARM_Result_t | _IsAvailable (void *arg) |
static void | _iarmMgrHdmiEventHandler (const char *owner, IARM_EventId_t eventId, void *data, size_t len) |
This funtion is used as hdmi event handler to check the status of HDMI whether it is inserted or ejected during hotplugging. More... | |
static void | cecSendEventHandler (const char *owner, IARM_EventId_t eventId, void *data, size_t len) |
This function is used to append the received cec event data to CECFrame structure and sends it out. More... | |
static void | cecMgrEventHandler (const char *owner, IARM_EventId_t eventId, void *data, size_t len) |
This function is used to starts the CECIARMMgr instance by calling _Enable function after receiving IARM_BUS_CECMGR_EVENT_ENABLE event. More... | |
static CECIARMMgr & | CECIARMMgr::getInstance (void) |
This function is used to create instance for CECIARMMgr class. More... | |
IARM_Result_t | CECIARMMgr::init (void) |
This function is used to initialize the CEC IARM manager by registering event handlers and function calls through IARM api. More... | |
IARM_Result_t | CECIARMMgr::term (void) |
This function is used to terminate the CEC IARM connection. More... | |
IARM_Result_t | CECIARMMgr::start (void) |
This function is used to start the connection for cec manager by creating and adding the frame listener and establishing the connection. More... | |
IARM_Result_t | CECIARMMgr::loop (void) |
This function is used to check time the HeartBeat occurs. A HeartBeat protocol is generally used to negotiate and monitor the availability of a resource. More... | |
IARM_Result_t | CECIARMMgr::stop (void) |
This function is used to stop the cec IARM manager connection. It closes the connection, deletes framelistener, connection and processor instances. More... | |
Variables | |
static Mutex | mutex |
static bool | enabled |
static volatile Connection * | m_connection = 0 |
class CecIARMMgrFrameListener |
Definition at line 194 of file CecIARMBusMgr.cpp.
Public Member Functions | |
CecIARMMgrFrameListener (MessageProcessor *processor) | |
void | notify (const CECFrame &in) const |
Private Attributes | |
MessageProcessor * | processor |
|
static |
This function is used to send the CECFrame if the connection is ready.
[in] | arg | Address of IARM_Bus_CECMgr_Send_Param_t structure. |
IARM_RESULT_SUCCESS | Returns on success condition. |
IARM_RESULT_INVALID_STATE | Returns on failed connection. |
Definition at line 377 of file CecIARMBusMgr.cpp.
|
static |
This function is used to get the logical address of CEC devices.
[in] | arg | Address of IARM_Bus_CECMgr_Send_Param_t structure, where info about CEC devices are present. |
Definition at line 431 of file CecIARMBusMgr.cpp.
|
static |
This function is used to add the logical address of own devices, so driver can ACK while receving direct messages.
[in] | arg | Address of IARM_Bus_CECMgr_AddLogicalAddress_Param_t structure, the logical address to be added. |
Definition at line 460 of file CecIARMBusMgr.cpp.
|
static |
This function is used to start or stop the CEC connections.
[in] | arg | Address of IARM_Bus_CECMgr_Send_Param_t structure, where info about CEC devices are present. |
Definition at line 510 of file CecIARMBusMgr.cpp.
|
static |
This funtion is used as hdmi event handler to check the status of HDMI whether it is inserted or ejected during hotplugging.
[in] | owner | Owner details of the handler. |
[in] | eventId | Event type, e.g. Hotplug. |
[in] | data | Detail about HDMI event. |
[in] | len | Length of data. |
Definition at line 95 of file CecIARMBusMgr.cpp.
|
static |
This function is used to append the received cec event data to CECFrame structure and sends it out.
[in] | owner | Owner details of the handler. |
[in] | eventId | Event type, e.g. Hotplug. |
[in] | data | Detail about HDMI event. |
[in] | len | Length of data. |
Definition at line 151 of file CecIARMBusMgr.cpp.
|
static |
This function is used to starts the CECIARMMgr instance by calling _Enable function after receiving IARM_BUS_CECMGR_EVENT_ENABLE event.
[in] | owner | Owner details of the handler. |
[in] | eventId | Event type, e.g. Hotplug. |
[in] | data | Detail about HDMI event. |
[in] | len | Length of data. |
Definition at line 174 of file CecIARMBusMgr.cpp.
|
static |
This function is used to create instance for CECIARMMgr class.
Definition at line 236 of file CecIARMBusMgr.cpp.
IARM_Result_t CECIARMMgr::init | ( | void | ) |
This function is used to initialize the CEC IARM manager by registering event handlers and function calls through IARM api.
Definition at line 248 of file CecIARMBusMgr.cpp.
IARM_Result_t CECIARMMgr::term | ( | void | ) |
This function is used to terminate the CEC IARM connection.
Definition at line 281 of file CecIARMBusMgr.cpp.
IARM_Result_t CECIARMMgr::start | ( | void | ) |
This function is used to start the connection for cec manager by creating and adding the frame listener and establishing the connection.
IARM_RESULT_SUCCESS | Returns on success condition. |
IARM_RESULT_INVALID_STATE | Returns on failure condition. |
Definition at line 295 of file CecIARMBusMgr.cpp.
IARM_Result_t CECIARMMgr::loop | ( | void | ) |
This function is used to check time the HeartBeat occurs. A HeartBeat protocol is generally used to negotiate and monitor the availability of a resource.
Definition at line 322 of file CecIARMBusMgr.cpp.
IARM_Result_t CECIARMMgr::stop | ( | void | ) |
This function is used to stop the cec IARM manager connection. It closes the connection, deletes framelistener, connection and processor instances.
Definition at line 341 of file CecIARMBusMgr.cpp.