root / lab4 / errors.h @ 327
History | View | Annotate | Download (783 Bytes)
1 | 68 | up20180642 | #ifndef ERRORS_H_INCLUDED
|
---|---|---|---|
2 | #define ERRORS_H_INCLUDED
|
||
3 | 53 | up20180655 | |
4 | enum errors {
|
||
5 | 70 | up20180655 | SUCCESS = 0, /* @brief Sucessful */ |
6 | NULL_PTR, /* @brief Null Pointer Error */
|
||
7 | LCF_ERROR, /* @brief Error originated on LCF */
|
||
8 | SBCR_ERROR, /* @brief Error on Subscribing Interrupt */
|
||
9 | UNSBCR_ERROR, /* @brief Error on Unsubscring Interrupt*/
|
||
10 | READ_ERROR, /* @brief Error on Reading from Port */
|
||
11 | WRITE_ERROR, /* @brief Error on Writing to Port */
|
||
12 | TIMEOUT_ERROR, /* @brief Timeout error */
|
||
13 | INVALID_COMMAND, /* @brief Invalid Command issued */
|
||
14 | 78 | up20180655 | INVALID_STATE, /* @brief State machine reached an invalid state */
|
15 | 83 | up20180655 | OTHER_ERROR /* @brief Unspecified error */
|
16 | 53 | up20180655 | }; |
17 | |||
18 | 68 | up20180642 | #endif //ERRORS_H_INCLUDED |