root / proj / libs / utils / include / errors.h @ 368
History | View | Annotate | Download (1.38 KB)
1 |
#ifndef ERRORS_H_INCLUDED
|
---|---|
2 |
#define ERRORS_H_INCLUDED
|
3 |
|
4 |
/**
|
5 |
* @defgroup errors errors
|
6 |
* @ingroup utils
|
7 |
* @brief Error codes.
|
8 |
*
|
9 |
* @{
|
10 |
*/
|
11 |
|
12 |
/** @brief Error Codes */
|
13 |
enum errors {
|
14 |
SUCCESS = 0, /** @brief Sucessful */ |
15 |
NULL_PTR = 250, /** @brief Null Pointer Error */ |
16 |
LCF_ERROR, /** @brief Error originated on LCF */
|
17 |
SBCR_ERROR, /** @brief Error on Subscribing Interrupt */
|
18 |
UNSBCR_ERROR, /** @brief Error on Unsubscring Interrupt*/
|
19 |
READ_ERROR, /** @brief Error on Reading from Port */
|
20 |
WRITE_ERROR, /** @brief Error on Writing to Port */
|
21 |
TIMEOUT_ERROR, /** @brief Timeout error */
|
22 |
INVALID_COMMAND, /** @brief Invalid Command issued */
|
23 |
INVALID_STATE, /** @brief State machine reached an invalid state */
|
24 |
BIOS_CALL_ERROR, /** @brief Error upon BIOS call */
|
25 |
OUT_OF_RANGE, /** @brief Accessing area out of range of memory */
|
26 |
ALLOC_ERROR, /** @brief Memory allocation error */
|
27 |
LOGIC_ERROR, /** @brief Logic error */
|
28 |
INVALID_ARG, /** @brief Invalid argument */
|
29 |
NOK, /** @brief Not OK */
|
30 |
TRANS_REFUSED, /** @brief Transmission refused */
|
31 |
TRANS_FAILED, /** @brief Transmission failed */
|
32 |
OTHER_ERROR /** @brief Unspecified error */
|
33 |
}; |
34 |
|
35 |
/**
|
36 |
* @}
|
37 |
*/
|
38 |
|
39 |
#endif //ERRORS_H_INCLUDED |