avrSerial  1.0
Multi-UART Library for many AVR devices
 All Files Functions Groups
Macros | Functions
serial.h File Reference

UART Library Header File. More...

Go to the source code of this file.

Macros

#define BAUD(baudRate, xtalCpu)   ((xtalCpu)/((baudRate)*16l)-1)
 Calculate Baudrate Register 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 serialGet (uint8_t uart)
 Read a single byte. More...
 
uint8_t serialGetBlocking (uint8_t uart)
 Wait until a character is received. 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...
 

Detailed Description

UART Library Header File.

Definition in file serial.h.