Wouter van Kleunen
/
nrf52_esb
NRF52_esb
uesb_error_codes.h@1:66f95e364222, 2021-02-04 (annotated)
- Committer:
- wkleunen
- Date:
- Thu Feb 04 10:36:44 2021 +0000
- Revision:
- 1:66f95e364222
- Parent:
- 0:a01a54c0dc90
Initial compile;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joshuajnoble | 0:a01a54c0dc90 | 1 | #ifndef __UESB_ERROR_CODES_H__ |
joshuajnoble | 0:a01a54c0dc90 | 2 | #define __UESB_ERROR_CODES_H__ |
joshuajnoble | 0:a01a54c0dc90 | 3 | |
joshuajnoble | 0:a01a54c0dc90 | 4 | #define UESB_SUCCESS 0x0000 |
joshuajnoble | 0:a01a54c0dc90 | 5 | |
joshuajnoble | 0:a01a54c0dc90 | 6 | // State related errors |
joshuajnoble | 0:a01a54c0dc90 | 7 | #define UESB_ERROR_NOT_INITIALIZED 0x0101 |
joshuajnoble | 0:a01a54c0dc90 | 8 | #define UESB_ERROR_ALREADY_INITIALIZED 0x0102 |
joshuajnoble | 0:a01a54c0dc90 | 9 | #define UESB_ERROR_NOT_IDLE 0x0103 |
joshuajnoble | 0:a01a54c0dc90 | 10 | #define UESB_ERROR_NOT_IN_RX_MODE 0x0104 |
joshuajnoble | 0:a01a54c0dc90 | 11 | |
joshuajnoble | 0:a01a54c0dc90 | 12 | // Invalid parameter errors |
joshuajnoble | 0:a01a54c0dc90 | 13 | #define UESB_ERROR_INVALID_PARAMETERS 0x0200 |
joshuajnoble | 0:a01a54c0dc90 | 14 | #define UESB_ERROR_DYN_ACK_NOT_ENABLED 0x0201 |
joshuajnoble | 0:a01a54c0dc90 | 15 | |
joshuajnoble | 0:a01a54c0dc90 | 16 | // FIFO related errors |
joshuajnoble | 0:a01a54c0dc90 | 17 | #define UESB_ERROR_TX_FIFO_FULL 0x0301 |
joshuajnoble | 0:a01a54c0dc90 | 18 | #define UESB_ERROR_TX_FIFO_EMPTY 0x0302 |
joshuajnoble | 0:a01a54c0dc90 | 19 | #define UESB_ERROR_RX_FIFO_EMPTY 0x0303 |
joshuajnoble | 0:a01a54c0dc90 | 20 | |
joshuajnoble | 0:a01a54c0dc90 | 21 | #endif |