RDK Documentation (Open Sourced RDK Components)
CecDaemonMain.cpp
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
/**
23
* @defgroup hdmicec
24
* @{
25
* @defgroup daemon
26
* @{
27
**/
28
29
30
#include <stdio.h>
31
#include <stdint.h>
32
#include <unistd.h>
33
34
#include "ccec/CCEC.hpp"
35
#include "ccec/LibCCEC.hpp"
36
#include "CecIARMBusMgr.hpp"
37
#include "ccec/Util.hpp"
38
39
40
using namespace
std;
41
42
int
main(
int
argc,
char
*argv[])
43
{
44
setvbuf(stdout, NULL, _IOLBF, 0);
45
check_cec_log_status
();
46
CCEC_LOG
( LOG_WARN,
"Calling IARMMgr Init\r\n"
);
47
/* Initialize IARM Bus before Accessing the Device settings APIS */
48
CECIARMMgr::getInstance
().
init
();
49
CECIARMMgr::getInstance
().
loop
();
50
CECIARMMgr::getInstance
().
term
();
51
}
52
53
54
/** @} */
55
/** @} */
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
check_cec_log_status
void check_cec_log_status(void)
This function is used to get the cec log from the log file and checks the level of log received.
Definition:
Util.cpp:75
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
CCEC_LOG
void CCEC_LOG(int level, const char *format ...)
This function is used to gets the logs depending on the level of log and print these to standard outp...
Definition:
Util.cpp:120
components
generic
hdmicec
daemon
src
CecDaemonMain.cpp
Generated on Thu Feb 9 2023 06:32:30 for RDK Documentation (Open Sourced RDK Components) by
1.8.17