|
RDK Documentation (Open Sourced RDK Components)
|
30 #ifndef _HDMI_CCEC_BUS_HPP_
31 #define _HDMI_CCEC_BUS_HPP_
36 #include "osal/Runnable.hpp"
37 #include "osal/Stoppable.hpp"
41 #include "ccec/CCEC.hpp"
71 void stop(
bool block =
true);
80 void stop(
bool block =
true);
87 Bus & operator = (
const Bus &);
91 std::list<FrameListener *> listeners;
95 volatile bool started;
void stop(void)
This function stops the reader & writer threads and removes the instance for Bus.
This file defines interface of EventQueue class.
void removeFrameListener(FrameListener *listener)
This function is used to remove the listener.
static Bus & getInstance(void)
This function is used to create the instance of Bus class.
This file defines interface of Thread class.
void stop(bool block=true)
This function is used to stop the reader to read frames from the bus.
void poll(const LogicalAddress &from, const LogicalAddress &to)
This function is used to poll the logical address and returns the ACK or NACK received from other dev...
void stop(bool block=true)
This function is used to stop the writer for polling the bus and writing to the driver.
void sendAsync(const CECFrame &frame)
This function is used to keep asynchronously sending the frame by keeping copy of cec frame in the qu...
void run(void)
This function is used to poll the bus for frame availability and it writes the CEC frame to the drive...
Bus(void)
This function is a constructor for the class Bus. It is used to starts the read and write thread whic...
void run(void)
This function is used to read CECFrame from the driver. This gets notified to the frameListener which...
void start(void)
This function starts the threads and gets the instance for Bus.
~Bus(void)
This is a destructor for class BUS. This function initiates the closing of threads and the instance f...
void addFrameListener(FrameListener *listener)
This function is used to add new listener for reading frames.
This file defines interface of Mutex class.
void send(const CECFrame &frame, int timeout=0)
This function is used to write the frame to the driver. If it fails, as it is a synchronous function,...
void ping(const LogicalAddress &from, const LogicalAddress &to)
This function is used to ping devices, to know whether it present and returns the ACK or NACK receive...