error.h
Go to the documentation of this file.
1 /**
2  * @file error.h
3  * @brief Error codes description
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2019 Oryx Embedded SARL. All rights reserved.
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software Foundation,
23  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24  *
25  * @author Oryx Embedded SARL (www.oryx-embedded.com)
26  * @version 1.9.6
27  **/
28 
29 #ifndef _ERROR_H
30 #define _ERROR_H
31 
32 //C++ guard
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 
38 /**
39  * @brief Error codes
40  **/
41 
42 typedef enum
43 {
44  NO_ERROR = 0, ///<Success
45  ERROR_FAILURE = 1, ///<Generic error code
46 
47  ERROR_INVALID_PARAMETER, ///<Invalid parameter
48  ERROR_PARAMETER_OUT_OF_RANGE, ///<Specified parameter is out of range
49 
52  ERROR_INVALID_RECIPIENT, ///<Invalid recipient
53  ERROR_INVALID_INTERFACE, ///<Invalid interface
54  ERROR_INVALID_ENDPOINT, ///<Invalid endpoint
55  ERROR_INVALID_ALT_SETTING, ///<Alternate setting does not exist
56  ERROR_UNSUPPORTED_REQUEST, ///<Unsupported request
57  ERROR_UNSUPPORTED_CONFIGURATION, ///<Unsupported configuration
58  ERROR_UNSUPPORTED_FEATURE, ///<Unsupported feature
59  ERROR_ENDPOINT_BUSY, ///<Endpoint already in use
62 
73 
137 
142 
149 
152 
160 
163 
191 
193 
196 
203 
205 
212 
218 
222 
225 
242 
249 
253 
262 
265 
267 
272 
275 
278 } error_t;
279 
280 //C++ guard
281 #ifdef __cplusplus
282 }
283 #endif
284 
285 #endif
Unsupported request.
Definition: error.h:56
Invalid interface.
Definition: error.h:53
Invalid recipient.
Definition: error.h:52
Invalid parameter.
Definition: error.h:47
Invalid endpoint.
Definition: error.h:54
error_t
Error codes.
Definition: error.h:42
Generic error code.
Definition: error.h:45
Specified parameter is out of range.
Definition: error.h:48
Endpoint already in use.
Definition: error.h:59
Alternate setting does not exist.
Definition: error.h:55
Unsupported feature.
Definition: error.h:58
Unsupported configuration.
Definition: error.h:57
Success.
Definition: error.h:44