Project

General

Profile

Statistics
| Revision:

root / proj / libs / utils / include / errors.h @ 338

History | View | Annotate | Download (1.36 KB)

1 144 up20180655
#ifndef ERRORS_H_INCLUDED
2
#define ERRORS_H_INCLUDED
3
4 334 up20180642
/**
5
 * @defgroup    errors  errors
6
 * @brief Error codes.
7
 *
8
 * @{
9
 */
10
11 145 up20180655
/** @brief Error Codes */
12 144 up20180655
enum errors {
13 188 up20180642
    SUCCESS = 0,        /** @brief Sucessful */
14 234 up20180655
    NULL_PTR = 250,     /** @brief Null Pointer Error */
15 188 up20180642
    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 235 up20180642
    INVALID_ARG,        /** @brief Invalid argument */
28 261 up20180642
    NOK,                /** @brief Not OK */
29
    TRANS_REFUSED,      /** @brief Transmission refused */
30
    TRANS_FAILED,       /** @brief Transmission failed */
31 188 up20180642
    OTHER_ERROR         /** @brief Unspecified error */
32 144 up20180655
};
33
34 334 up20180642
/**
35
 * @}
36
 */
37
38 144 up20180655
#endif //ERRORS_H_INCLUDED