LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
uart_17xx_40xx.h File Reference

Go to the source code of this file.

Functions

STATIC INLINE void Chip_UART_ConfigData (LPC_USART_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.
 
STATIC INLINE uint32_t Chip_UART_Send (LPC_USART_T *pUART, uint8_t *txbuf, uint32_t buflen, TRANSFER_BLOCK_T flag)
 Send a block of data via UART peripheral.
 
STATIC INLINE uint32_t Chip_UART_Receive (LPC_USART_T *pUART, uint8_t *rxbuf, uint32_t buflen, TRANSFER_BLOCK_T flag)
 Receive a block of data via UART peripheral.
 
STATIC INLINE void Chip_UART_FIFOConfig (LPC_USART_T *pUART, UART_FIFO_CFG_T *FIFOCfg)
 Configure FIFO function on selected UART peripheral.
 
STATIC INLINE void Chip_UART_FIFOConfigStructInit (LPC_USART_T *pUART, UART_FIFO_CFG_T *UART_FIFOInitStruct)
 Fills each UART_FIFOInitStruct member with its default value:
 
STATIC INLINE void Chip_UART_IntConfig (LPC_USART_T *pUART, IP_UART_INT_T UARTIntCfg, FunctionalState NewState)
 Enable or disable specified UART interrupt.
 
STATIC INLINE uint32_t Chip_UART_IntGetStatus (LPC_USART_T *pUART)
 Get Source Interrupt.
 
STATIC INLINE uint8_t Chip_UART_GetLineStatus (LPC_USART_T *pUART)
 Get current value of Line Status register in UART peripheral.
 
STATIC INLINE FlagStatus Chip_UART_CheckBusy (LPC_USART_T *pUART)
 Check whether if UART is busy or not.
 
STATIC INLINE void Chip_UART_ForceBreak (LPC_USART_T *pUART)
 Force BREAK character on UART line, output pin pUART TXD is forced to logic 0.
 
STATIC INLINE Status Chip_UART_SendByte (LPC_USART_T *pUART, uint8_t data)
 Transmit a single data through UART peripheral.
 
STATIC INLINE Status Chip_UART_ReceiveByte (LPC_USART_T *pUART, uint8_t *Data)
 Receive a single data from UART peripheral.
 
STATIC INLINE void Chip_UART_ABCmd (LPC_USART_T *pUART, UART_AB_CFG_T *ABConfigStruct, FunctionalState NewState)
 Start/Stop Auto Baudrate activity.
 
STATIC INLINE void Chip_UART_ABClearIntPending (LPC_USART_T *pUART, IP_UART_INT_STATUS_T ABIntType)
 Clear Autobaud Interrupt.
 
void Chip_UART_Init (LPC_USART_T *pUART)
 Initializes the pUART peripheral.
 
void Chip_UART_DeInit (LPC_USART_T *pUART)
 De-initializes the pUART peripheral.
 
Status Chip_UART_SetBaud (LPC_USART_T *pUART, uint32_t baudrate)
 Determines best dividers to get a target baud rate.
 
void Chip_UART_TxCmd (LPC_USART_T *pUART, FunctionalState NewState)
 Enable/Disable transmission on UART TxD pin.
 
IP_UART_INT_STATUS_T Chip_UART_GetIntStatus (LPC_USART_T *pUART)
 Get Interrupt Stream Status.
 
void Chip_UART_Interrupt_Handler (LPC_USART_T *pUART)
 Uart interrupt service routine (chip layer)
 
uint32_t Chip_UART_Interrupt_Transmit (LPC_USART_T *pUART, uint8_t *txbuf, uint8_t buflen)
 UART transmit function for interrupt mode (using ring buffers)
 
uint32_t Chip_UART_Interrupt_Receive (LPC_USART_T *pUART, uint8_t *rxbuf, uint8_t buflen)
 UART read function for interrupt mode (using ring buffers)
 
void Chip_UART_InitRingBuffer (LPC_USART_T *pUART)
 Reset Tx and Rx ring buffer (head and tail)
 
FlagStatus Chip_UART_GetABEOStatus (LPC_USART_T *pUART)