ARMEBS4  revision-26.06.2015
error.h
Go to the documentation of this file.
1 /************************************************************************//**
2  * \file heivs/error.h
3  * \brief Errors definitions
4  * \author marc dot pignat at hevs dot ch
5  ***************************************************************************/
6 #ifndef HEIVS_ERROR_H
7 #define HEIVS_ERROR_H
8 
9 #include "heivs/utils.h"
10 
11 /************************************************************************//**
12  * \defgroup error Status (or errors)
13  * @{
14  * \ingroup utils
15  * \brief Error codes
16  ***************************************************************************/
17 
18 /**
19  * \brief Known errors
20  */
21 typedef enum
22 {
23  /**
24  * \brief No error
25  *
26  * This function was successful.
27  */
28  NO_ERROR = 0x00000000,
29 
30  /**
31  * \brief Unspecified error.
32  *
33  * There is no more details about what has failed.
34  */
35  ERROR_FAILED = 0x80000001,
36 
37  /**
38  * \brief NULL parameter
39  *
40  * A parameter with a NULL value was passed, and this is not supported.
41  */
42  ERROR_NULL_PARAM = 0x80000002,
43 
44  /**
45  * \brief Retry later
46  *
47  * This function (device) is currently busy, retry later.
48  */
49  ERROR_AGAIN = 0x80000003,
50 
51  /**
52  * \brief Parameter unsupported
53  *
54  * A parameter was not supported by the function.
55  */
56  ERROR_BAD_PARAM = 0x80000004,
57 
58  /**
59  * \brief Impossible switch value
60  *
61  * According to the code, the
62  */
63  ERROR_BAD_SWITCH = 0x80000005, ///< Impossible switch value
64  ERROR_TIMEOUT = 0x80000006, ///< No comment
65  ERROR_NOT_SUPPORTED = 0x80000007, ///< Function is not available
66  ERROR_HW_FAILED = 0x80000008, ///< You should check your solder/cables
67  ERROR_BAD_STATE = 0x80000009, ///< Function called at bad time
68  ERROR_STACK_OVERFLOW = 0x8000000a, ///< No comment
69  ERROR_OUT_OF_MEMORY = 0x8000000b, ///< (or friend) failed
70  ERROR_MAIN_FINISHED = 0x8000000c, ///< main has finished (shouldn't happen in embedded software)
71  ERROR_IRQ_NOT_HANDLED = 0x8000000d, ///< Default interrupt handler fired
72  ERROR_CONFIG = 0x8000000e, ///< Compile time configuration error
73  ERROR_TOO_BIG = 0x8000000f, ///< Parameter too big
74  ERROR_DMA_UNDERRUN = 0x80000010, ///< No comment
75  ERROR_BAD_ALIGN = 0x80000011, ///< Pointer with wrong alignment
76  ERROR_FREERTOS_CONFIG_ASSERT = 0x80000012, ///< FreeRTOS configASSERT
77 
78  ERROR_BUS_NOINIT = 0x80000020, ///< Have you called bus_init ?
79  ERROR_BUS_INACTIVE = 0x80000021, ///< Have you called bus_get ?
80  ERROR_BUS_SUSPENDED = 0x80000022, ///< Bus not operable while in power down
81  ERROR_BUS_BAD_STATE = 0x80000023, ///< see bus_get/bus_release and errors
82  ERROR_BUS_BUSY_TIMEOUT = 0x80000030, ///<
83  ERROR_BUS_NACK = 0x80000031,
84  ERROR_BUS_NO_START = 0x80000032,
85  ERROR_BUS_NO_ADDR_TX = 0x80000033,
86  ERROR_BUS_BUSY = 0x80000034,
87 
88  ERROR_SD_NOT_PRESENT = 0x80000050, ///< SD card not detected
89  ERROR_SD_ACCESS_FAILED = 0x80000052, ///< No comment
90 
91  ERROR_TRACE_FAILED = 0x80000060, ///< No comment
92 
93  ERROR_EEPROM_BAD_MAGIC = 0x80000070, ///< EEPROM is empty or has failed
94  ERROR_EEPROM_BAD_CALIB = 0x80000071, ///< EEPROM has no touchscreen calibration data
95 
96  _ERROR_APP_START = 0x81000000, ///< Application specific range start
97  _ERROR_APP_END = 0x8fffffff, ///< Application specific range end
98 
99  ERROR_0_TBD = 0xdeadbeef, ///< Should not happen, this is a placeholder
100 
101  ERROR_NOT_YET_IMPLEMENTED = 0xffffffff,
102 } status_e;
103 
104 #define ERROR_APP(__X__) (_ERROR_APP_START | (__X__))
105 /************************************************************************//**
106  * @}
107  ***************************************************************************/
108 #endif /* HEIVS_ERROR_H */
Bus not operable while in power down.
Definition: error.h:80
No comment.
Definition: error.h:64
Have you called bus_get ?
Definition: error.h:79
EEPROM has no touchscreen calibration data.
Definition: error.h:94
Unspecified error.
Definition: error.h:35
Have you called bus_init ?
Definition: error.h:78
No comment.
Definition: error.h:74
SD card not detected.
Definition: error.h:88
EEPROM is empty or has failed.
Definition: error.h:93
Pointer with wrong alignment.
Definition: error.h:75
Application specific range start.
Definition: error.h:96
Function called at bad time.
Definition: error.h:67
Various utilities.
see bus_get/bus_release and errors
Definition: error.h:81
No comment.
Definition: error.h:91
Default interrupt handler fired.
Definition: error.h:71
Function is not available.
Definition: error.h:65
Parameter unsupported.
Definition: error.h:56
Impossible switch value.
Definition: error.h:63
Retry later.
Definition: error.h:49
Application specific range end.
Definition: error.h:97
You should check your solder/cables.
Definition: error.h:66
Should not happen, this is a placeholder.
Definition: error.h:99
No comment.
Definition: error.h:89
No comment.
Definition: error.h:68
Compile time configuration error.
Definition: error.h:72
status_e
Known errors.
Definition: error.h:21
(or friend) failed
Definition: error.h:69
FreeRTOS configASSERT.
Definition: error.h:76
Parameter too big.
Definition: error.h:73
No error.
Definition: error.h:28
main has finished (shouldn't happen in embedded software)
Definition: error.h:70
NULL parameter.
Definition: error.h:42