HDMI CEC HAL 0.2.0
 
Loading...
Searching...
No Matches
hdmi_cec_driver.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* HdmiCecRxCallback_t) (int handle, void *callbackData, unsigned char *buf, int len)
 Callback function triggered when a complete CEC packet is received.
 
typedef void(* HdmiCecTxCallback_t) (int handle, void *callbackData, int result)
 Callback function triggered to report the status of the latest transmit message.
 

Enumerations

enum  {
  HDMI_CEC_IO_SUCCESS = 0 , HDMI_CEC_IO_SENT_AND_ACKD = 1 , HDMI_CEC_IO_SENT_BUT_NOT_ACKD , HDMI_CEC_IO_SENT_FAILED ,
  HDMI_CEC_IO_INVALID_STATE , HDMI_CEC_IO_INVALID_ARGUMENT , HDMI_CEC_IO_LOGICALADDRESS_UNAVAILABLE , HDMI_CEC_IO_GENERAL_ERROR
}
 

Functions

int HdmiCecOpen (int *handle)
 Initializes the HDMI CEC HAL.
 
int HdmiCecClose (int handle)
 Closes an instance of HDMI CEC HAL.
 
int HdmiCecSetLogicalAddress (int handle, int *logicalAddresses, int num)
 This API is DEPRECATED due to possible race conditions competing for a logical address.
 
void HdmiCecGetPhysicalAddress (int handle, unsigned int *physicalAddress)
 Gets the Physical Address obtained by the module.
 
int HdmiCecAddLogicalAddress (int handle, int logicalAddresses)
 Adds one Logical Addresses to be used by host device.
 
int HdmiCecRemoveLogicalAddress (int handle, int logicalAddresses)
 Clears the Logical Addresses claimed by the host device.
 
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 HdmiCecTx (int handle, const unsigned char *buf, int len, int *result)
 Synchronous transmit call.
 
int HdmiCecTxAsync (int handle, const unsigned char *buf, int len)
 Writes CEC packet onto bus asynchronously.