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