![]() |
xyControl
0.1
Quadrotor Flight Controller on AVR Basis
|
UART Library Implementation. More...
#include <avr/io.h>#include <avr/interrupt.h>#include <stdint.h>#include "serial.h"#include "serial_device.h"#include "config.h"Go to the source code of this file.
Macros | |
| #define | RX_BUFFER_SIZE 32 |
| If you define this, a '\r' (CR) will be put in front of a '\n' (LF) when sending a byte. More... | |
| #define | TX_BUFFER_SIZE 16 |
| TX Buffer Size in Bytes (Power of 2) More... | |
| #define | FLOWCONTROL |
| Defining this enables incoming XON XOFF (sends XOFF if rx buff is full) More... | |
| #define | FLOWMARK 5 |
| Space remaining to trigger xoff/xon. More... | |
| #define | XON 0x11 |
| XON Value. More... | |
| #define | XOFF 0x13 |
| XOFF Value. More... | |
Functions | |
| uint8_t | serialAvailable (void) |
| Get number of available UART modules. More... | |
| void | serialInit (uint8_t uart, uint16_t baud) |
| Initialize the UART Hardware. More... | |
| void | serialClose (uint8_t uart) |
| Stop the UART Hardware. More... | |
| void | setFlow (uint8_t uart, uint8_t on) |
| Manually change the flow control. More... | |
| uint8_t | serialHasChar (uint8_t uart) |
| Check if a byte was received. More... | |
| uint8_t | serialGetBlocking (uint8_t uart) |
| Wait until a character is received. More... | |
| uint8_t | serialGet (uint8_t uart) |
| Read a single byte. More... | |
| uint8_t | serialRxBufferFull (uint8_t uart) |
| Check if the receive buffer is full. More... | |
| uint8_t | serialRxBufferEmpty (uint8_t uart) |
| Check if the receive buffer is empty. More... | |
| void | serialWrite (uint8_t uart, uint8_t data) |
| Send a byte. More... | |
| void | serialWriteString (uint8_t uart, const char *data) |
| Send a string. More... | |
| uint8_t | serialTxBufferFull (uint8_t uart) |
| Check if the transmit buffer is full. More... | |
| uint8_t | serialTxBufferEmpty (uint8_t uart) |
| Check if the transmit buffer is empty. More... | |
UART Library Implementation.
Definition in file serial.c.
1.8.3.1