RDK Documentation (Open Sourced RDK Components)
RDK.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 host
25 * @{
26 **/
27 
28 
29 #ifndef HDMI_CCEC_HOST_RDK_HPP_
30 #define HDMI_CCEC_HOST_RDK_HPP_
31 
32 #ifdef __cplusplus
33 extern "C"
34 {
35 #endif
36 #define IARM_BUS_CECHOST_NAME "CECHost"
37 #define IARM_BUS_CEC_HOST_EnableDevMgr "SetDevMgrStatus"
38 #define IARM_BUS_CEC_HOST_SetOSDName "SetOSDName"
39 #define IARM_BUS_CEC_HOST_GetOSDName "GetOSDName"
40 #define IARM_BUS_CEC_HOST_GetDevStatus "GetDevStatus"
41 
42 
44  uint8_t name[14+1]; /*!< [in] OSDName max len + null terminator */
46 
48  uint8_t name[14+1]; /*!< [in] OSDName max len + null terminator */
50 
52  bool status;
54 
56  bool status;
58 
60 {
61  int logicalAddress;
62  int powerState;
63  int isConnected;
64  char osdName[14+1];
66 
70 
71 typedef enum _IARM_Bus_CECHost_EventId_t
72 {
73  IARM_BUS_CECHost_EVENT_DEVICESTATUSCHANGE = 0,
74  IARM_BUS_CECHost_EVENT_DEVMANAGERSTATUS,
75  IARM_BUS_CECHost_EVENT_MAX
76 } IARM_Bus_CECHost_EventId_t;
77 
78 typedef enum _IARM_Bus_CECHost_StatusType_t{
79  IARM_BUS_CECHost_POWER_STATUS = 1,
80  IARM_BUS_CECHost_OSD_NAME = 2,
81  IARM_BUS_CECHost_CONNECT_STATUS = 3
82 }IARM_Bus_CECHost_StatusType_t;
83 
85  int logicalAddress;
86  IARM_Bus_CECHost_StatusType_t changedStatus;
87  union{
88  int isConnected;
89  int powerState;
90  char osdName[14+1];
91  }data;
93 
94 #ifdef __cplusplus
95 }
96 #endif
97 #endif
98 
99 
100 /** @} */
101 /** @} */
_IARM_Bus_CECHost_DeviceStatusChanged_EventData_t
Definition: RDK.hpp:84
_IARM_Bus_CECHost_DevMgrStatus_Param_t
Definition: RDK.hpp:55
_IARM_Bus_CECHost_DeviceStatus_t
Definition: RDK.hpp:59
_IARM_Bus_CECHost_GetOSDName_Param_t::name
uint8_t name[14+1]
Definition: RDK.hpp:48
_IARM_Bus_CECHost_EnableDevMgr_Param_t
Definition: RDK.hpp:51
_IARM_Bus_CECHost_SetOSDName_Param_t
Definition: RDK.hpp:43
_IARM_Bus_CECHost_SetOSDName_Param_t::name
uint8_t name[14+1]
Definition: RDK.hpp:44
_IARM_Bus_CECHost_GetOSDName_Param_t
Definition: RDK.hpp:47
_IARM_Bus_CECHost_GetDeviceStatus_Param_t
Definition: RDK.hpp:67