Macros | |
#define | CMD_POS 0x03 |
#define | EOT (4) |
The end of transmission delimiter. More... | |
#define | LEN_POS 0x01 |
#define | MAX_BUFFER_LENGTH 160 |
#define | PROTOCOL_ID 0X01 |
#define | PROTOCOL_ID_POS 0x02 |
#define | RX_BUFFER_LENGTH MAX_BUFFER_LENGTH |
#define | SOT (1) |
The start of transmission delimiter. More... | |
#define | SOT_POS 0x00 |
#define | TX_BUFFER_LENGTH MAX_BUFFER_LENGTH |
#define | UART_RX_STATE_DATA (3) |
A UART state that expects the next data character to be received. More... | |
#define | UART_RX_STATE_EOT (4) |
A UART state that expects a EOT to be received as the next character. More... | |
#define | UART_RX_STATE_LENGTH (2) |
A UART state that expects the length to be received as the next character. More... | |
#define | UART_RX_STATE_SOT (1) |
A UART state that expects a SOT to be received as the next character. More... | |
Functions | |
void | handle_rx_frame (void) |
void | process_rf_serial_byte (uint8_t byte) |
Variables | |
uint8_t | rcv_buffer [] |
uint8_t * | rcv_frame_ptr |