![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
#include "usart_001.h"Go to the source code of this file.
Functions | |
| void | IP_UART_Init (IP_USART_001_T *pUART, IP_UART_ID_T UARTPort) |
| Initializes the UARTx peripheral according to the specified parameters in the UART_ConfigStruct. | |
| void | IP_UART_DeInit (IP_USART_001_T *pUART, IP_UART_ID_T UARTPort) |
| De-initializes the UARTx peripheral registers to their default reset values. | |
| Status | IP_UART_SetBaud (IP_USART_001_T *pUART, uint32_t baudrate, uint32_t uClk) |
| Determines best dividers to get a target clock rate. | |
| void | IP_UART_ConfigData (IP_USART_001_T *pUART, IP_UART_DATABIT_T Databits, IP_UART_PARITY_T Parity, IP_UART_STOPBIT_T Stopbits) |
| Configure data width, parity mode and stop bits. | |
| Status | IP_UART_SendByte (IP_USART_001_T *pUART, uint8_t data) |
| Transmit a single data through UART peripheral. | |
| Status | IP_UART_ReceiveByte (IP_USART_001_T *pUART, uint8_t *Data) |
| Receive a single data from UART peripheral. | |
| uint32_t | IP_UART_Send (IP_USART_001_T *pUART, uint8_t *txbuf, uint32_t buflen, TRANSFER_BLOCK_T flag) |
| Send a block of data via UART peripheral. | |
| uint32_t | IP_UART_Receive (IP_USART_001_T *pUART, uint8_t *rxbuf, uint32_t buflen, TRANSFER_BLOCK_T flag) |
| Receive a block of data via UART peripheral. | |
| void | IP_UART_IntConfig (IP_USART_001_T *pUART, IP_UART_INT_T UARTIntCfg, FunctionalState NewState) |
| Enable or disable specified UART interrupt. | |
| uint32_t | IP_UART_IntGetStatus (IP_USART_001_T *pUART) |
| Get Source Interrupt. | |
| void | IP_UART_ForceBreak (IP_USART_001_T *pUART) |
| Force BREAK character on UART line, output pin UARTx TXD is forced to logic 0. | |
| uint8_t | IP_UART_GetLineStatus (IP_USART_001_T *pUART) |
| Get current value of Line Status register in UART peripheral. | |
| FlagStatus | IP_UART_CheckBusy (IP_USART_001_T *pUART) |
| Check whether if UART is busy or not. | |
| void | IP_UART_TxCmd (IP_USART_001_T *pUART, IP_UART_ID_T UARTPort, FunctionalState NewState) |
| Enable/Disable transmission on UART TxD pin. | |
| void | IP_UART_FIFOConfig (IP_USART_001_T *pUART, UART_FIFO_CFG_T *FIFOCfg) |
| Configure FIFO function on selected UART peripheral. | |
| void | IP_UART_FIFOConfigStructInit (UART_FIFO_CFG_T *UART_FIFOInitStruct) |
| Fills each UART_FIFOInitStruct member with its default value: | |
| void | IP_UART_ABCmd (IP_USART_001_T *pUART, UART_AB_CFG_T *ABConfigStruct, FunctionalState NewState) |
| Start/Stop Auto Baudrate activity. | |
| void | IP_UART_ABClearIntPending (IP_USART_001_T *pUART, IP_UART_INT_STATUS_T ABIntType) |
| Clear Autobaud Interrupt. | |