|
RDK Documentation (Open Sourced RDK Components)
|
30 #ifndef HDMI_CCEC_CONNECTION_HPP_
31 #define HDMI_CCEC_CONNECTION_HPP_
38 #include "ccec/CCEC.hpp"
39 #include "ccec/FrameListener.hpp"
40 #include "ccec/Operands.hpp"
41 #include "ccec/Driver.hpp"
42 #include "ccec/LibCCEC.hpp"
43 #include "ccec/Exception.hpp"
60 Connection(
const LogicalAddress &source = LogicalAddress::UNREGISTERED,
bool opened =
true,
const std::string &name=
"");
113 std::list<FrameListener *> frameListeners;
void send(const CECFrame &frame, int timeout, const Throw_e &doThrow)
This function is used to send CEC frame to CEC Bus.
The connection class provides APIs that allows the application to access CEC Bus. A connection is a t...
void ping(const LogicalAddress &from, const LogicalAddress &to, const Throw_e &doThrow)
This function is used to send ping message to the Bus.
void open(void)
Open a connection to receive CEC packets from the bus.
void poll(const LogicalAddress &from, const Throw_e &doThrow)
This function is used to send poll message to the Bus.
void sendAsync(const CECFrame &frame)
This function is used to send the CEC frame to physical CEC Bus using asynchronous method.
void addFrameListener(FrameListener *listener)
This function is used to listen for CECFrame, which is a byte stream that contains raw bytes received...
void removeFrameListener(FrameListener *listener)
This function is used to remove the listener information from the queue.
void sendToAsync(const LogicalAddress &to, const CECFrame &frame)
sends HDMI-CEC frame to CEC Bus using asynchronized method.
void sendTo(const LogicalAddress &to, const CECFrame &frame, int timeout, const Throw_e &doThrow)
This function is used to send CEC frame to CEC Bus.
bool isFiltered(const CECFrame &frame)
Check the filtered is set for this connection.
void matchSource(const CECFrame &frame)
Match the source address and update the logical address for the Connection.
void notify(const CECFrame &frame) const
Notify to the application if CECFrame is received. The CEC frame contains the raw bytes.
This file defines interface of Mutex class.