6.1-roCecInterface

ON THIS PAGE


This object provides access to the HDMI CEC channel.

Object Creation: The roCecInterface object is created with no parameters.

CreateObject("roCecInterface")

 IfCecInterface

SendRawMessage(packet As Object) As Void

Sends a message on the CEC bus. The frame data should be provided as an roByteArray, with the destination address in the low 4 bits of the first octet. The high 4 bits of the first octet should be supplied as zero because they will be replaced with the source address (unless source bit replacement is disabled using the UseInitiatorAddressFromPacket() method).

UseInitiatorAddressFromPacket(enable As Boolean) As Boolean

Removes the source address included by system software if passed True. This method allows you to transmit unmodified bytes via CEC.

GetLogicalAddress() As Integer
 
EnableCecDebug(a As String)

ifUserData

SetUserData(user_data As Object)

Sets the user data that will be returned when events are raised.

GetUserData() As Object

Returns the user data that has previously been set via SetUserData(). It will return Invalid if no data has been set.

 

ifMessagePort

SetPort(port As roMessagePort)

Posts messages of type roCecRxFrameEvent and roCecTxCompleteEvent to the attached message port.

Â