rfLPC
A low level library for using NXP's LPC17xx SoC. Config is given for MBED prototyping board
uart.h File Reference

UART0 driver. More...

#include "../nxp/LPC17xx.h"
#include "../interrupt.h"

Go to the source code of this file.

Enumerations

enum  rflpc_uart_t {
  RFLPC_UART0 = 0,
  RFLPC_UART2 = 2,
  RFLPC_UART3 = 3
}
 Constants that represents the UART port you want to use in uart driver functions. More...
 

Functions

int rflpc_uart_init (rflpc_uart_t uart_num)
 Inits the UART e, using 11520 baud, 8 bits data, no parity and 1 stop bit. More...
 
int rflpc_uart_init_ex (rflpc_uart_t uart_num, int dll, int dlm, int divadd, int mulval)
 Inits the UART e, using 8 bits data, no parity and 1 stop bit. More...
 
void rflpc_uart_putchar (rflpc_uart_t uart_num, char c)
 Sends a byte to the uart. More...
 
int rflpc_uart_byte_available (rflpc_uart_t uart_num)
 Test the reception FIFO. More...
 
char rflpc_uart_getchar (rflpc_uart_t uart_num)
 Gets a character from the uart. More...
 
void rflpc_uart_set_rx_callback (rflpc_uart_t uart_num, rflpc_irq_handler_t callback)
 Sets the uart rx callback. More...
 

Detailed Description

UART0 driver.

Definition in file uart.h.