Chapter 4 Libcec; Libcec-Aaeon Adapter - Asus Aaeon UP Xtreme UPX-WHL01 User Manual

Table of Contents

Advertisement

Chapter 4 libCEC

CEC (Consumer Electronics Control) allows for control of devices through the HDMI
port. With the right hardware, libCEC allows control of the device with a TV remote.
libCEC is an enabling platform for the CEC bus in HDMI. It allows developers to
interact with other HDMI devices without having to worry about communication
overhead, handshaking, and various ways of sending a message for each vendor.
libCEC communicates with all CEC Bridge branded hardware. libCEC supports Linux
and Windows platforms.
4.1

libCEC-AAEON Adapter

libCEC-AAEON Adapter was developed for use with the GitHub download of libCEC
(3.1.3 libCEC library) ...\libcec\src\libcec\adapter
To add a new adapter, it is important to implement the IAdapterCommunication
interface to communicate with the rest of the CEC library using the
IAdapterCommunicationCallback interface. This is also necessary for detecting the
device for which the new adapter is written. Four new classes will be added to the
existing implementation of the libCEC library.
CAAEONAdapterCommunication class is the implementation of the
IAdapterCommunication interface. It is a central communication class with an
adapter.
CAAEONAdapterDetection class is a class that serves to find the port on which
the device is located. It finds COM port based on the VID and PID in Windows
through a registry, while on Linux it uses the UDEV library. In the name of the
port, the prefix AAEON: will be added to differentiate the detection of a new type
of device.
CAAEONAdapterMessageQueue is a class that collects CEC messages that need
to be sent to the device. It also processes the results that the device returns and
manages messages based on it.
CAAEONAdapterMessage is a class that represents a CEC message that contains
message data and state, depending on the type of message.
CEC Client Installation
25

Advertisement

Table of Contents
loading

Table of Contents