Project

General

Profile

Statistics
| Revision:

root / proj / src / libs / utils / include / errors.h @ 377

History | View | Annotate | Download (1.38 KB)

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