RDK Documentation (Open Sourced RDK Components)
test_power_on.c
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 ccec
25 * @{
26 **/
27 
28 
29 #include <stdio.h>
30 #include "ccec/drivers/hdmi_cec_driver.h"
31 #include "ccec/drivers/iarmbus/CecIARMBusMgr.h"
32 #include "libIBus.h"
33 
34 int main(int argc, char *argv[])
35 {
36  int handle = 0;
39  HdmiCecOpen(&handle);
40  HdmiCecClose(handle);
42  IARM_Bus_Term();
43 }
44 
45 
46 
47 
48 /** @} */
49 /** @} */
IARM_Bus_Term
IARM_Result_t IARM_Bus_Term(void)
This API is used to terminate the IARM-Bus library.
HdmiCecClose
int HdmiCecClose(int handle)
close an instance of CEC driver. This function should close the currently opened driver instance.
Definition: hdmi_cec_driver.c:106
IARM_BUS_CECMGR_NAME
#define IARM_BUS_CECMGR_NAME
Definition: CecIARMBusMgr.h:41
HdmiCecOpen
int HdmiCecOpen(int *handle)
opens an instance of CEC driver. This function should be call once before the functions in this API...
Definition: hdmi_cec_driver.c:68
IARM_Bus_Disconnect
IARM_Result_t IARM_Bus_Disconnect(void)
This API disconnect Application from IARM Bus so the application will not receive any IARM event or R...
libIBus.h
RDK IARM-Bus API Declarations.
IARM_Bus_Connect
IARM_Result_t IARM_Bus_Connect(void)
This API is used to connect application to the IARM bus daemon. After connected, the application can ...
Definition: iarmMgrMocks.cpp:33
IARM_Bus_Init
IARM_Result_t IARM_Bus_Init(const char *name)
This API is used to initialize the IARM-Bus library.
Definition: iarmMgrMocks.cpp:38