-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror_codes.h
More file actions
38 lines (24 loc) · 1.24 KB
/
error_codes.h
File metadata and controls
38 lines (24 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* error_codes.h
*
* Created: 30/08/2015 17:07:35
* Author: Tyler
*/
#ifndef ERROR_CODES_H_
#define ERROR_CODES_H_
#define SUCCESS 0 //!< no error has occurred
#define INF_BOOT 1 //!< the board has booted
/* USB UART ********************************************************/
#define ERR_USB_UART_TRANSMIT_BUFFER_FULL 10 //!< USB transmit buffer full
#define ERR_USB_UART_RECIEVE_BUFFER_FULL 11 //!< USB receive buffer overflow
/* FT8900 UART *****************************************************/
#define ERR_STREAM_BODY_STREAM_TOO_LONG 20 //!< body data message is too long
#define ERR_STREAM_HEAD_STREAM_TOO_LONG 21 //!< head data message is too long
#define ERR_STREAM_SEGMENT_BYTE_OUT_OF_RANGE 22 //!< byte of the LCD segment is out of range
#define ERR_STREAM_SEGMENT_BIT_OUT_OF_RANGE 23 //!< bit of the LCD segment is out of range
/* USB Console *****************************************************/
#define ERR_COMMAND_NOT_FOUND 30 //!< no command found
/* Autotuner *******************************************************/
#define ERR_AUTOTUNE_FREQUENCY_INVALID 100 //!< frequency string provided is invalid
#define ERR_AUTOTUNE_FREQUENCY_NULL_POINTER 101 //!< frequency string starts with a null pointer
#endif /* ERROR_CODES_H_ */