Device Settings HAL 0.2.0
 
Loading...
Searching...
No Matches
dsError.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 dsError.h
22 *
23 * @brief Device Settings HAL error codes.
24 *
25 * This API defines common error codes used by 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
79/** @defgroup DSHAL_ERROR_H Device Settings Status Codes
80*
81* Defined hereunder are the error codes that are used in the Device Settings library.
82*
83* @{
84*/
85
86#ifndef _DS_ERROR_H_
87#define _DS_ERROR_H_
88
89#ifdef __cplusplus
90extern "C" {
91#endif
92
93
94/**
95 * @brief Device Settings API Error return codes.
96 *
97 * A non-zero value indicates an error.
98 *
99 */
100typedef enum {
101 dsERR_NONE = 0, ///< Input output operation is successful
102 dsERR_GENERAL = 0x1000, ///< Operation general error
103 dsERR_INVALID_PARAM, ///< Invalid parameter is passed to the module
104 dsERR_INVALID_STATE, ///< Module is in an invalid state
105 dsERR_OPERATION_NOT_SUPPORTED, ///< Operation not supported
106 dsERR_UNKNOWN ///< Unknown error
108
109
110
111#ifdef __cplusplus
112}
113#endif
114#endif /* _DS_ERROR_H_ */
115
116/** @} */ // End of DSHAL_ERROR_H
117/** @} */ // End of Device Settings HAL
118/** @} */ // End of Device Settings Module
119/** @} */ // End of HPK
dsError_t
Device Settings API Error return codes.
Definition dsError.h:100
@ dsERR_OPERATION_NOT_SUPPORTED
Operation not supported.
Definition dsError.h:105
@ dsERR_INVALID_PARAM
Invalid parameter is passed to the module.
Definition dsError.h:103
@ dsERR_GENERAL
Operation general error.
Definition dsError.h:102
@ dsERR_INVALID_STATE
Module is in an invalid state.
Definition dsError.h:104
@ dsERR_NONE
Input output operation is successful.
Definition dsError.h:101
@ dsERR_UNKNOWN
Unknown error.
Definition dsError.h:106