usart.h File Reference
Common USART interface, This file is derived from the Gomspace USART driver, the main difference is the assumption that only one USART will be present on a PC. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct usart_conf | |
Usart configuration, to be used with the usart_init call. More... | |
Typedefs | |
typedef void(* usart_callback_t) (uint8_t *buf, int len, void *pxTaskWoken) | |
In order to catch incoming chars use the callback. More... | |
Functions | |
void usart_init (struct usart_conf *conf) | |
Initialise UART with the usart_conf data structure. More... | |
void usart_set_callback (usart_callback_t callback) | |
void usart_insert (char c, void *pxTaskWoken) | |
Insert a character to the RX buffer of a usart. More... | |
void usart_putc (char c) | |
Polling putchar. More... | |
void usart_putstr (char *buf, int len) | |
Send char buffer on UART. More... | |
char usart_getc (void) | |
Buffered getchar. More... | |
int usart_messages_waiting (int handle) | |
Detailed Description
Common USART interface, This file is derived from the Gomspace USART driver, the main difference is the assumption that only one USART will be present on a PC.