Out-of-office display, GFX
 All Classes Files Functions Variables Enumerations Enumerator Groups
Classes | Macros | Functions
uartDriver.h File Reference
#include <stddef.h>
#include <stdbool.h>

Go to the source code of this file.

Classes

struct  command
 Command that will execute a callback function when recongised. More...

Macros

#define UART_RX_RINGBUFFER_SIZE   20
 Size of UART receive ring buffer.
#define UART_ENABLE_INPUT_PARSER
 Enable the input parser.
#define UART_CMD_ARG_LEN   10
 Maximum argument length, including whitespace.

Functions

void uart_init (struct command *commands, size_t numCommands)
 Initialise the UART module and redirect stdout to it.
void uart_runCmdCallbacks ()
 Run command callbaks.
size_t uart_copyBuffer (char *buffer, size_t len)
 Copy contents of receive buffer into supplied array.

Detailed Description