RDK Documentation (Open Sourced RDK Components)
|
Data Structures | |
struct | _DeviceStatus_t |
Macros | |
#define | MAX_LENGTH_OF_OSD_NAME 15 |
Typedefs | |
typedef struct _DeviceStatus_t | DeviceStatus_t |
Functions | |
static IARM_Result_t | _PowerPreChange (void *arg) |
static IARM_Result_t | _SetDevMgrStatus (void *arg) |
static IARM_Result_t | _SetOSDName (void *arg) |
static IARM_Result_t | _GetOSDName (void *arg) |
static IARM_Result_t | _GetDevStatus (void *arg) |
static void | _hdmiEventHandler (const char *owner, IARM_EventId_t eventId, void *data, size_t len) |
static void | _powerEventHandler (const char *owner, IARM_EventId_t eventId, void *data, size_t len) |
CECHost_Err_t | CECHost_Init (const char *name) |
This function is used to initialize CEC host device by registering event handlers and calls like status, name etc. More... | |
CECHost_Err_t | CECHost_Term (void) |
This function is used to de-initialize CEC host device, disconnects and terminates the CEC connection. More... | |
CECHost_Err_t | CECHost_SetCallback (CECHost_Callback_t cb) |
This function is used to set the callback function. It is called by Device Manager application to set Dev manager status, OSD name, hot plug event handler, power state event handler etc. More... | |
CECHost_Err_t | CECHost_GetHdmiOuputPhysicalAddress (uint8_t *byte0, uint8_t *byte1, uint8_t *byte2, uint8_t *byte3) |
This function is used to get the physical address of the HDMI output port byte by byte. More... | |
CECHost_Err_t | CECHost_IsHdmiOutputConnected (int32_t *connect) |
This function is used to check whether the HDMI output is connected or not. More... | |
CECHost_Err_t | CECHost_GetPowerState (int32_t *state) |
This function is used to get the state of power whether it is ON or in STANDBY state. More... | |
CECHost_Err_t | CECHost_SetDeviceStatus (int logicalAddress, CECHost_DeviceStatus_t *devices) |
This function is used to set and update the device status like power status, logical address, osd name etc based on status type. More... | |
CECHost_Err_t | CECHost_SetPowerState (int32_t state) |
This function is used to set the device power state to be ON or STANDBY. More... | |
CECHost_Err_t | CECHost_GetOSDName (uint8_t *buf, size_t *len) |
This function is used to get OSD name of Host module. Here 'buf' need not to be null terminated. If it is, the 'len' does not include the 'null' termintator. More... | |
CECHost_Err_t | CECHost_IsActive (int32_t *active) |
This function is used to check whether host device is active or not. More... | |
Variables | |
static int | powerState |
static CECHost_Callback_t | hostCb = {0} |
static pthread_mutex_t | devStatMutex = PTHREAD_MUTEX_INITIALIZER |
static DeviceStatus_t | _deviceStatus [14] = {0} |
static char | osdName [14+1] = "SettopBox" |
struct _DeviceStatus_t |
CECHost_Err_t CECHost_Init | ( | const char * | name | ) |
CECHost_Err_t CECHost_Term | ( | void | ) |
CECHost_Err_t CECHost_SetCallback | ( | CECHost_Callback_t | cb | ) |
This function is used to set the callback function. It is called by Device Manager application to set Dev manager status, OSD name, hot plug event handler, power state event handler etc.
[in] | cb | CECHost_Callback_t type structure. |
CECHost_ERR_NONE | Returns for successful condition. |
CECHost_Err_t CECHost_GetHdmiOuputPhysicalAddress | ( | uint8_t * | byte0, |
uint8_t * | byte1, | ||
uint8_t * | byte2, | ||
uint8_t * | byte3 | ||
) |
This function is used to get the physical address of the HDMI output port byte by byte.
[out] | byte0 | First byte of physical address. |
[out] | byte1 | Second byte of physical address. |
[out] | byte2 | Third byte of physical address. |
[out] | byte3 | Fourth byte of physical address. |
CECHost_ERR_NONE | Returns for successful condition. |
CECHost_ERR_STATE | Returns on error condition. |
CECHost_Err_t CECHost_IsHdmiOutputConnected | ( | int32_t * | connect | ) |
This function is used to check whether the HDMI output is connected or not.
[out] | connect | State of connection, 1 for connected and 0 for not connected.. |
CECHost_ERR_NONE | Returns for successful condition. |
CECHost_ERR_HOST | Returns on fail condition. |
CECHost_Err_t CECHost_GetPowerState | ( | int32_t * | state | ) |
CECHost_Err_t CECHost_SetDeviceStatus | ( | int | logicalAddress, |
CECHost_DeviceStatus_t * | devices | ||
) |
This function is used to set and update the device status like power status, logical address, osd name etc based on status type.
[in] | logicalAddress | Logical address of cec device. |
[in] | devices | CECHost_DeviceStatus_t type pointer containing info about device. |
CECHost_ERR_NONE | Returns for successful condition. |
CECHost_ERR_HOST | Returns on fail condition. |
CECHost_Err_t CECHost_SetPowerState | ( | int32_t | state | ) |
CECHost_Err_t CECHost_GetOSDName | ( | uint8_t * | buf, |
size_t * | len | ||
) |
This function is used to get OSD name of Host module. Here 'buf' need not to be null terminated. If it is, the 'len' does not include the 'null' termintator.
[in] | buf | The ASCII bytes of the OSD name |
[in] | len | The number of ASCII bytes. |
CECHost_ERR_NONE | Returns for success condition. |
CECHost_ERR_INVALID | Returns for failure condition. |