forked from rdkcentral/rdk-halif-device_settings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dsCompositeInTypes.h
130 lines (118 loc) · 4.32 KB
/
dsCompositeInTypes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2016 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @addtogroup HPK Hardware Porting Kit
* @{
* @par The Hardware Porting Kit
* HPK is the next evolution of the well-defined Hardware Abstraction Layer
* (HAL), but augmented with more comprehensive documentation and test suites
* that OEM or SOC vendors can use to self-certify their ports before taking
* them to RDKM for validation or to an operator for final integration and
* deployment. The Hardware Porting Kit effectively enables an OEM and/or SOC
* vendor to self-certify their own Video Accelerator devices, with minimal RDKM
* assistance.
*
*/
/**
* @addtogroup Device_Settings Device Settings Module
* @{
*/
/**
* @addtogroup Device_Settings_HAL Device Settings HAL
* @par Application API Specification
* Described herein are the DeviceSettings HAL types and functions that are part of
* the CompositeIn subsystem. The CompositeIn subsystem manages system-specific HAL operations.
* @{
*/
/**
* @addtogroup dsCompositeIn_HAL DS CompositeIn HAL
* @{
* @par Application API Specification
* dsCompositeIn HAL provides an interface for managing the CompositeIn settings for the device settings module
*/
/**
* @defgroup DSHAL_COMPOSITE_IN_TYPES DS HAL Composite Input Type Definitions
* @{
*/
/**
* @file dsCompositeInTypes.h
*
* @brief Device Setting CompositeIn HAL types.
*
* This file defines common types used by the above mentioned DS CompositeIn HAL Submodule.
*
* @par Document
* Document reference.
*
* @par Open Issues (in no particular order)
* -# None
*
* @par Assumptions
* -# None
*
* @par Abbreviations
* - HAL: Hardware Abstraction Layer.
*
* @par Implementation Notes
* -# None
*
*/
#ifndef __DS_COMPOSITE_IN_TYPES_H__
#define __DS_COMPOSITE_IN_TYPES_H__
#pragma once
#include <stdint.h>
#include <stdbool.h>
/**
* @brief This enumeration defines the type composite signal status.
*/
typedef enum _dsCompInSignalStatus_t
{
dsCOMP_IN_SIGNAL_STATUS_NONE = -1, ///< Composite input signal status NONE
dsCOMP_IN_SIGNAL_STATUS_NOSIGNAL, ///< Composite input No Signal status
dsCOMP_IN_SIGNAL_STATUS_UNSTABLE, ///< Composite input Unstable signal status
dsCOMP_IN_SIGNAL_STATUS_NOTSUPPORTED, ///< Composite input Not supported signal status
dsCOMP_IN_SIGNAL_STATUS_STABLE, ///< Composite input Stable signal status
dsCOMP_IN_SIGNAL_STATUS_MAX ///< Out of range
} dsCompInSignalStatus_t;
/**
* @brief This enumeration defines the type of composite ports.
*/
typedef enum _dsCompositeInPort_t
{
dsCOMPOSITE_IN_PORT_NONE = -1, ///< No composite port.
dsCOMPOSITE_IN_PORT_0, ///< Composite port index 0.
dsCOMPOSITE_IN_PORT_1, ///< Composite port index 1.
dsCOMPOSITE_IN_PORT_MAX ///< Out of range
} dsCompositeInPort_t;
/**
* @brief Structure type for Composite input status.
*/
typedef struct _dsCompositeInStatus_t
{
bool isPresented; ///< Boolean flag indicating Composite input is enabled for presentation by client
bool isPortConnected[dsCOMPOSITE_IN_PORT_MAX]; ///< Boolean flag indicating Composite source connected to this Composite input port
dsCompositeInPort_t activePort; ///< Composite input Port selected as the currently active port
///< - note that only one COMPOSITE input port can be active at a time
} dsCompositeInStatus_t;
#endif /* __DS_COMPOSITE_IN_TYPES_H__ */
/** @} */ // End of DS HAL Composite Input Public Types
/** @} */ // End of DS CompositeIn HAL
/** @} */ // End of Device Settings HAL
/** @} */ // End of Device Settings Module
/** @} */ // End of HPK