GPIB_AVR
|
Go to the source code of this file.
Defines | |
#define | UART_BAUD_SELECT(baudRate, xtalCpu) ((xtalCpu)/((baudRate)*16l)-1) |
UART Baudrate Expression. | |
#define | UART_BAUD_SELECT_DOUBLE_SPEED(baudRate, xtalCpu) (((xtalCpu)/((baudRate)*8l)-1)|0x8000) |
UART Baudrate Expression for ATmega double speed mode. | |
#define | UART_RX_BUFFER_SIZE 32 |
Size of the circular receive buffer, must be power of 2. | |
#define | UART_TX_BUFFER_SIZE 32 |
Size of the circular transmit buffer, must be power of 2. | |
#define | UART_FRAME_ERROR 0x0800 |
#define | UART_OVERRUN_ERROR 0x0400 |
#define | UART_BUFFER_OVERFLOW 0x0200 |
#define | UART_NO_DATA 0x0100 |
#define | uart_puts_P(__s) uart_puts_p(PSTR(__s)) |
Macro to automatically put a string constant into program memory. | |
#define | uart1_puts_P(__s) uart1_puts_p(PSTR(__s)) |
Macro to automatically put a string constant into program memory. | |
Functions | |
void | uart_init (unsigned int baudrate) |
Initialize UART and set baudrate. | |
unsigned int | uart_getc (void) |
Get received byte from ringbuffer. | |
void | uart_putc (unsigned char data) |
Put byte to ringbuffer for transmitting via UART. | |
void | uart_puts (const char *s) |
Put string to ringbuffer for transmitting via UART. | |
void | uart_puts_p (const char *s) |
Put string from program memory to ringbuffer for transmitting via UART. | |
void | uart1_init (unsigned int baudrate) |
Initialize USART1 (only available on selected ATmegas) | |
unsigned int | uart1_getc (void) |
Get received byte of USART1 from ringbuffer. | |
void | uart1_putc (unsigned char data) |
Put byte to ringbuffer for transmitting via USART1 (only available on selected ATmega) | |
void | uart1_puts (const char *s) |
Put string to ringbuffer for transmitting via USART1 (only available on selected ATmega) | |
void | uart1_puts_p (const char *s) |
Put string from program memory to ringbuffer for transmitting via USART1 (only available on selected ATmega) |