71#ifndef HDMI_CEC_DRIVER_H_
72#define HDMI_CEC_DRIVER_H_
401int HdmiCecTx(
int handle,
const unsigned char *buf,
int len,
int *result);
void HdmiCecGetPhysicalAddress(int handle, unsigned int *physicalAddress)
Gets the Physical Address obtained by the module.
int HdmiCecTxAsync(int handle, const unsigned char *buf, int len)
Writes CEC packet onto bus asynchronously.
int HdmiCecSetLogicalAddress(int handle, int *logicalAddresses, int num)
This API is DEPRECATED due to possible race conditions competing for a logical address.
void(* HdmiCecTxCallback_t)(int handle, void *callbackData, int result)
Callback function triggered to report the status of the latest transmit message.
Definition hdmi_cec_driver.h:110
int HdmiCecAddLogicalAddress(int handle, int logicalAddresses)
Adds one Logical Addresses to be used by host device.
int HdmiCecClose(int handle)
Closes an instance of HDMI CEC HAL.
int HdmiCecGetLogicalAddress(int handle, int devType, int *logicalAddress)
Gets the Logical Address obtained by the module.
int HdmiCecSetRxCallback(int handle, HdmiCecRxCallback_t cbfunc, void *data)
Sets CEC packet receive callback.
int HdmiCecSetTxCallback(int handle, HdmiCecTxCallback_t cbfunc, void *data)
Sets CEC packet transmit callback.
int HdmiCecOpen(int *handle)
Initializes the HDMI CEC HAL.
int HdmiCecRemoveLogicalAddress(int handle, int logicalAddresses)
Clears the Logical Addresses claimed by the host device.
int HdmiCecTx(int handle, const unsigned char *buf, int len, int *result)
Synchronous transmit call.
void(* HdmiCecRxCallback_t)(int handle, void *callbackData, unsigned char *buf, int len)
Callback function triggered when a complete CEC packet is received.
Definition hdmi_cec_driver.h:101
@ HDMI_CEC_IO_INVALID_STATE
Definition hdmi_cec_driver.h:85
@ HDMI_CEC_IO_SUCCESS
Input output operation is successful.
Definition hdmi_cec_driver.h:81
@ HDMI_CEC_IO_SENT_BUT_NOT_ACKD
Sent but acknowledgement not received.
Definition hdmi_cec_driver.h:83
@ HDMI_CEC_IO_LOGICALADDRESS_UNAVAILABLE
Logical address is not available.
Definition hdmi_cec_driver.h:87
@ HDMI_CEC_IO_INVALID_ARGUMENT
Invalid argument is passed to the module.
Definition hdmi_cec_driver.h:86
@ HDMI_CEC_IO_SENT_FAILED
Operation failed.
Definition hdmi_cec_driver.h:84
@ HDMI_CEC_IO_SENT_AND_ACKD
Send and acknowledgement received.
Definition hdmi_cec_driver.h:82
@ HDMI_CEC_IO_GENERAL_ERROR
Operation general error.
Definition hdmi_cec_driver.h:88