Device Settings HAL
0.2.0
Loading...
Searching...
No Matches
dsUtl.h
Go to the documentation of this file.
1
/*
2
* If not stated otherwise in this file or this component's LICENSE 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
* @file dsUtl.h
22
*
23
* @brief Device Settings HAL utilities
24
*
25
* This API defines some common utilities for the Device Settings HAL.
26
*
27
* @par Document
28
* Document reference.
29
*
30
* @par Open Issues (in no particular order)
31
* -# None
32
*
33
* @par Assumptions
34
* -# None
35
*
36
* @par Abbreviations
37
* - BE: Big-Endian.
38
* - cb: Callback function (suffix).
39
* - DS: Device Settings.
40
* - FPD: Front-Panel Display.
41
* - HAL: Hardware Abstraction Layer.
42
* - LE: Little-Endian.
43
* - LS: Least Significant.
44
* - MBZ: Must be zero.
45
* - MS: Most Significant.
46
* - RDK: Reference Design Kit.
47
* - _t: Type (suffix).
48
*
49
* @par Implementation Notes
50
* -# None
51
*
52
*/
53
54
/**
55
* @addtogroup HPK Hardware Porting Kit
56
* @{
57
* @par The Hardware Porting Kit
58
* HPK is the next evolution of the well-defined Hardware Abstraction Layer
59
* (HAL), but augmented with more comprehensive documentation and test suites
60
* that OEM or SOC vendors can use to self-certify their ports before taking
61
* them to RDKM for validation or to an operator for final integration and
62
* deployment. The Hardware Porting Kit effectively enables an OEM and/or SOC
63
* vendor to self-certify their own Video Accelerator devices, with minimal RDKM
64
* assistance.
65
*
66
*/
67
68
/** @addtogroup Device_Settings Device Settings Module
69
* @{
70
*/
71
72
/** @addtogroup Device_Settings_HAL Device Settings HAL
73
* @par Application API Specification
74
* @{
75
*/
76
77
78
/** @defgroup DSHAL_UTLS_H Device Settings HAL Utils Header
79
* @{
80
*/
81
82
#ifndef _DS_UTILS_H_
83
#define _DS_UTILS_H_
84
85
#include <stdio.h>
86
87
/**
88
* @brief Device Settings general Assert Failure inline definition.
89
*/
90
#define dsUTL_ASSERT(x) do {\
91
if (!(x)) printf("ASSERTFAILURE at %s-%d\r\n", __FUNCTION__, __LINE__);\
92
}\
93
while(0)
94
95
/**
96
* @brief Device Settings general Array dimension calculation inline definition.
97
*/
98
#define dsUTL_DIM(arr) (sizeof((arr))/sizeof((arr)[0]))
99
100
#endif
/* _DS_UTILS_H_ */
101
102
/** @} */
// End of DSHAL_UTLS_H
103
/** @} */
// End of Device Settings HAL
104
/** @} */
// End of Device Settings Module
105
/** @} */
// End of HPK
include
dsUtl.h
Generated by
1.10.0