wuart.c File Reference
Detailed Description
Implementation of the
Wireless UART Application.
This Application implements a wireless UART bridge.
Definition in file wuart.c.
Go to the source code of this file.
Define Documentation
#define CRC_SIZE (sizeof(crc_t)) |
Number of bytes for CRC16
Definition at line 51 of file wuart.c.
escape state : none / normal data mode
Definition at line 63 of file wuart.c.
escape state : the +++ pattern was detected
Definition at line 69 of file wuart.c.
escape state : the first timeout had occured
Definition at line 66 of file wuart.c.
escape state : the second timeout had occured
Definition at line 72 of file wuart.c.
END of line delimitter
Definition at line 60 of file wuart.c.
#define PAYLD_END (UART_FRAME_SIZE - CRC_SIZE) |
Index of last payload byte
Definition at line 58 of file wuart.c.
#define PAYLD_SIZE (PROT_WUART_PAYLD_SIZE) |
- Todo:
- add a radio function for trx_identify()
Max. number of payload bytes per frame
Definition at line 49 of file wuart.c.
#define PAYLD_START (PROT_WUART_HEADER_SIZE) |
Index of first payload byte
Definition at line 56 of file wuart.c.
Value:
Maximum frame size
Definition at line 53 of file wuart.c.
Typedef Documentation
Data type for CRC16 values
Definition at line 78 of file wuart.c.
Enumeration Type Documentation
application states
- Enumerator:
-
CMD_MODE |
application is in command mode |
DATA_MODE |
application is in data mode |
Definition at line 90 of file wuart.c.
Function Documentation
Main function of WUART application.
Definition at line 165 of file wuart.c.
check for the sequence for escape from the data mode
[ no data on HIF ]+++[ no data on HIF ]
| | |
| | `- ESC_TMO_2
| `- ESC_PATTERN
`- ESC_TMO_1
Definition at line 394 of file wuart.c.
Initialize MCU ressources.
Definition at line 119 of file wuart.c.
Process AT command
Definition at line 460 of file wuart.c.
uint8_t* wuart_usr_radio_receive_frame |
( |
|
) |
|
uint8_t* wuart_usr_radio_tx_done |
( |
|
) |
|