|
RDK Documentation (Open Sourced RDK Components)
|
130 #ifndef HDMI_CEC_DRIVER_H_
131 #define HDMI_CEC_DRIVER_H_
139 HDMI_CEC_IO_SUCCESS = 0,
140 HDMI_CEC_IO_SENT_AND_ACKD = 1,
141 HDMI_CEC_IO_SENT_BUT_NOT_ACKD,
142 HDMI_CEC_IO_SENT_FAILED,
143 HDMI_CEC_IO_INVALID_STATE,
144 HDMI_CEC_IO_INVALID_ARGUMENT,
145 HDMI_CEC_IO_LOGICALADDRESS_UNAVAILABLE,
146 HDMI_CEC_IO_GENERAL_ERROR,
381 int HdmiCecTx(
int handle,
const unsigned char *buf,
int len,
int *result);
396 int HdmiCecTxAsync(
int handle,
const unsigned char *buf,
int len);
void(* HdmiCecTxCallback_t)(int handle, void *callbackData, int result)
int HdmiCecTxAsync(int handle, const unsigned char *buf, int len)
Writes CEC packet onto bus asynchronously.
void(* HdmiCecRxCallback_t)(int handle, void *callbackData, unsigned char *buf, int len)
int HdmiCecClose(int handle)
close an instance of CEC driver. This function should close the currently opened driver instance.
void HdmiCecGetPhysicalAddress(int handle, unsigned int *physicalAddress)
Get the Physical Address obtained by the driver.
int HdmiCecTx(int handle, const unsigned char *buf, int len, int *result)
Writes CEC packet onto bus.
int HdmiCecSetRxCallback(int handle, HdmiCecRxCallback_t cbfunc, void *data)
Sets CEC packet Receive callback.
int HdmiCecSetLogicalAddress(int handle, int *logicalAddresses, int num)
This API is DEPRECATED due to possible race conditions competing for a logical address.
int HdmiCecRemoveLogicalAddress(int handle, int logicalAddresses)
Clear the Logical Addresses claimed by host device.
int HdmiCecSetTxCallback(int handle, HdmiCecTxCallback_t cbfunc, void *data)
Sets CEC packet Transmit callback.
int HdmiCecOpen(int *handle)
opens an instance of CEC driver. This function should be call once before the functions in this API...
int HdmiCecGetLogicalAddress(int handle, int devType, int *logicalAddress)
Get the Logical Addresses claimed by host device.
int HdmiCecAddLogicalAddress(int handle, int logicalAddresses)
Add one Logical Addresses to be used by host device.