Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# uart.c File Reference

## Detailed Description

Definition in file uart.c.

`#include <avr/io.h>`
`#include <avr/interrupt.h>`
`#include "buffer.h"`
`#include "uart.h"`

Go to the source code of this file.

## Typedefs
typedef void(* | voidFuncPtru08 )(unsigned char)
## Functions
void | uartInit (void)
void | uartInitBuffers (void)
void | uartSetRxHandler (void(*rx_func)(unsigned char c))
void | uartSetBaudRate (u32 baudrate)
cBuffer * | uartGetRxBuffer (void)
cBuffer * | uartGetTxBuffer (void)
void | uartSendByte (u08 txData)
int | uartGetByte (void)
u08 | uartReceiveByte (u08 *rxData)
void | uartFlushReceiveBuffer (void)
u08 | uartReceiveBufferIsEmpty (void)
u08 | uartAddToTxBuffer (u08 data)
void | uartSendTxBuffer (void)
| UART_INTERRUPT_HANDLER (SIG_UART_TRANS)
| UART_INTERRUPT_HANDLER (SIG_UART_RECV)
## Variables
volatile u08 | uartReadyTx
| uartReadyTx flag
volatile u08 | uartBufferedTx
| uartBufferedTx flag
cBuffer | uartRxBuffer
| uart receive buffer
cBuffer | uartTxBuffer
| uart transmit buffer
unsigned short | uartRxOverflow
| receive overflow counter