RDK Documentation (Open Sourced RDK Components)
CecIARMBusMgr.hpp
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 
21 /**
22 * @defgroup hdmicec
23 * @{
24 * @defgroup daemon
25 * @{
26 **/
27 
28 /**
29 * @addtogroup HDMI_DAEMON
30 * @{
31 **/
32 
33 
34 #include "libIARM.h"
35 
36 #include "ccec/CCEC.hpp"
37 
38 CCEC_BEGIN_NAMESPACE
39 
40 class Connection;
41 class FrameListener;
42 class MessageProcessor;
43 
44 class CECIARMMgr {
45 public:
46  static CECIARMMgr & getInstance(void);
47 public:
48  IARM_Result_t init(void);
49  IARM_Result_t start(void);
50  IARM_Result_t stop(void);
51  IARM_Result_t loop(void);
52  IARM_Result_t term(void);
53 private:
54  bool started;
55  Connection *connection;
56  FrameListener *frameListener;
57  MessageProcessor *processor;
58 };
59 
60 CCEC_END_NAMESPACE
61 
62 
63 /** @} */
64 /** @} */
65 /** @} */
MessageProcessor
The MessageProcessor class implements a set of overloaded process() methods, with each handling a spe...
Definition: MessageProcessor.hpp:58
CECIARMMgr::start
IARM_Result_t start(void)
This function is used to start the connection for cec manager by creating and adding the frame listen...
Definition: CecIARMBusMgr.cpp:295
FrameListener
Definition: FrameListener.hpp:39
Connection
The connection class provides APIs that allows the application to access CEC Bus. A connection is a t...
Definition: Connection.hpp:57
CECIARMMgr::getInstance
static CECIARMMgr & getInstance(void)
This function is used to create instance for CECIARMMgr class.
Definition: CecIARMBusMgr.cpp:236
CECIARMMgr::init
IARM_Result_t init(void)
This function is used to initialize the CEC IARM manager by registering event handlers and function c...
Definition: CecIARMBusMgr.cpp:248
CECIARMMgr::stop
IARM_Result_t stop(void)
This function is used to stop the cec IARM manager connection. It closes the connection,...
Definition: CecIARMBusMgr.cpp:341
CECIARMMgr
Definition: CecIARMBusMgr.hpp:44
CECIARMMgr::loop
IARM_Result_t loop(void)
This function is used to check time the HeartBeat occurs. A HeartBeat protocol is generally used to n...
Definition: CecIARMBusMgr.cpp:322
CECIARMMgr::term
IARM_Result_t term(void)
This function is used to terminate the CEC IARM connection.
Definition: CecIARMBusMgr.cpp:281