RDK Documentation (Open Sourced RDK Components)

Description

Functions

static LibCCECLibCCEC::getInstance (void)
 This function is used to create the instance for CEC. More...
 
 LibCCEC::LibCCEC (void)
 This is Constructor for LibCEC class. It initializes variables with default values.
 
void LibCCEC::init (const char *name=0)
 This function is used to initialize CEC by starting the driver and doing host-specific initialization. More...
 
void LibCCEC::term (void)
 This function is used to stop CEC by terminating the connection and stoping the driver. More...
 
int LibCCEC::addLogicalAddress (const LogicalAddress &source)
 This function is used to add logical address to the driver, so that it can ACK if there a direct messages received. More...
 
int LibCCEC::getLogicalAddress (int devType)
 This function is used to get CEC device logical address starting the connection. More...
 
void LibCCEC::getPhysicalAddress (unsigned int *physicalAddress)
 

Variables

CCEC_BEGIN_NAMESPACE char _CEC_LOG_PREFIX [64]
 

Function Documentation

◆ getInstance()

LibCCEC & LibCCEC::getInstance ( void  )
static

This function is used to create the instance for CEC.

Returns
libCCEC Instance of CEC.

Definition at line 61 of file LibCCEC.cpp.

◆ init()

void LibCCEC::init ( const char *  name = 0)

This function is used to initialize CEC by starting the driver and doing host-specific initialization.

Parameters
[in]nameName of CEC log prefix.
Returns
None

Definition at line 84 of file LibCCEC.cpp.

◆ term()

void LibCCEC::term ( void  )

This function is used to stop CEC by terminating the connection and stoping the driver.

Returns
None

Definition at line 111 of file LibCCEC.cpp.

◆ addLogicalAddress()

int LibCCEC::addLogicalAddress ( const LogicalAddress source)

This function is used to add logical address to the driver, so that it can ACK if there a direct messages received.

Parameters
[in]logicaladdress of device.
Returns
success or throw exceptions if there is error.

Definition at line 131 of file LibCCEC.cpp.

◆ getLogicalAddress()

int LibCCEC::getLogicalAddress ( int  devType)

This function is used to get CEC device logical address starting the connection.

Parameters
[in]devTypeDevice whose logical address has to be found.
Returns
logicalAddress Logical address of the device.

Definition at line 152 of file LibCCEC.cpp.