LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
usart_001.c File Reference
#include "usart_001.h"

Go to the source code of this file.

Functions

void IP_UART_Init (IP_USART_001_Type *LPC_UART, UART_ID_Type UARTPort)
 Initializes the UARTx peripheral according to the specified parameters in the UART_ConfigStruct.
 
void IP_UART_DeInit (IP_USART_001_Type *LPC_UART, UART_ID_Type UARTPort)
 De-initializes the UARTx peripheral registers to their default reset values.
 
Status IP_UART_SetBaud (IP_USART_001_Type *LPC_UART, uint32_t baudrate, uint32_t uClk)
 Determines best dividers to get a target clock rate.
 
void IP_UART_ConfigData (IP_USART_001_Type *LPC_UART, UART_DATABIT_Type Databits, UART_PARITY_Type Parity, UART_STOPBIT_Type Stopbits)
 Configure data width, parity mode and stop bits.
 
Status IP_UART_SendByte (IP_USART_001_Type *LPC_UART, uint8_t Data)
 Transmit a single data through UART peripheral.
 
Status IP_UART_ReceiveByte (IP_USART_001_Type *LPC_UART, uint8_t *Data)
 Receive a single data from UART peripheral.
 
uint32_t IP_UART_Send (IP_USART_001_Type *LPC_UART, uint8_t *txbuf, uint32_t buflen, TRANSFER_BLOCK_Type flag)
 Send a block of data via UART peripheral.
 
uint32_t IP_UART_Receive (IP_USART_001_Type *LPC_UART, uint8_t *rxbuf, uint32_t buflen, TRANSFER_BLOCK_Type flag)
 Receive a block of data via UART peripheral.
 
void IP_UART_IntConfig (IP_USART_001_Type *LPC_UART, UART_INT_Type UARTIntCfg, FunctionalState NewState)
 Enable or disable specified UART interrupt.
 
uint32_t IP_UART_IntGetStatus (IP_USART_001_Type *LPC_UART)
 Get Source Interrupt.
 
void IP_UART_ForceBreak (IP_USART_001_Type *LPC_UART)
 Force BREAK character on UART line, output pin UARTx TXD is forced to logic 0.
 
uint8_t IP_UART_GetLineStatus (IP_USART_001_Type *LPC_UART)
 Get current value of Line Status register in UART peripheral.
 
FlagStatus IP_UART_CheckBusy (IP_USART_001_Type *LPC_UART)
 Check whether if UART is busy or not.
 
void IP_UART_TxCmd (IP_USART_001_Type *LPC_UART, UART_ID_Type UARTPort, FunctionalState NewState)
 Enable/Disable transmission on UART TxD pin.
 
void IP_UART_FIFOConfig (IP_USART_001_Type *LPC_UART, UART_FIFO_CFG_Type *FIFOCfg)
 Configure FIFO function on selected UART peripheral.
 
void IP_UART_FIFOConfigStructInit (UART_FIFO_CFG_Type *UART_FIFOInitStruct)
 Fills each UART_FIFOInitStruct member with its default value: