LPCOpen Platform for LPC112X microcontrollers  112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
Functions
uart_112x.c File Reference
#include "chip.h"

Go to the source code of this file.

Functions

void Chip_UART_Init (LPC_UART_T *pUART)
 Initializes the pUART peripheral. More...
 
void Chip_UART_DeInit (LPC_UART_T *pUART)
 De-initializes the pUART peripheral. More...
 
int Chip_UART_Send (LPC_UART_T *pUART, const void *data, int numBytes)
 Transmit a byte array through the UART peripheral (non-blocking) More...
 
int Chip_UART_SendBlocking (LPC_UART_T *pUART, const void *data, int numBytes)
 Transmit a byte array through the UART peripheral (blocking) More...
 
int Chip_UART_Read (LPC_UART_T *pUART, void *data, int numBytes)
 Read data through the UART peripheral (non-blocking) More...
 
int Chip_UART_ReadBlocking (LPC_UART_T *pUART, void *data, int numBytes)
 Read data through the UART peripheral (blocking) More...
 
uint32_t Chip_UART_SetBaud (LPC_UART_T *pUART, uint32_t baudrate)
 Sets best dividers to get a target bit rate (without fractional divider) More...
 
void Chip_UART_RXIntHandlerRB (LPC_UART_T *pUART, RINGBUFF_T *pRB)
 UART receive-only interrupt handler for ring buffers. More...
 
void Chip_UART_TXIntHandlerRB (LPC_UART_T *pUART, RINGBUFF_T *pRB)
 UART transmit-only interrupt handler for ring buffers. More...
 
uint32_t Chip_UART_SendRB (LPC_UART_T *pUART, RINGBUFF_T *pRB, const void *data, int bytes)
 Populate a transmit ring buffer and start UART transmit. More...
 
int Chip_UART_ReadRB (LPC_UART_T *pUART, RINGBUFF_T *pRB, void *data, int bytes)
 Copy data from a receive ring buffer. More...
 
void Chip_UART_IRQRBHandler (LPC_UART_T *pUART, RINGBUFF_T *pRXRB, RINGBUFF_T *pTXRB)
 UART receive/transmit interrupt handler for ring buffers. More...
 
uint32_t Chip_UART_SetBaudFDR (LPC_UART_T *pUART, uint32_t baud)
 Sets best dividers to get a target bit rate (with fractional divider) More...