| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
uart_11xx.h File Reference

Go to the source code of this file.

## Functions
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.
STATIC INLINE void | Chip_UART_TXEnable (LPC_USART_T *pUART)
| Enable transmission on UART TxD pin.
STATIC INLINE void | Chip_UART_TXDisable (LPC_USART_T *pUART)
| Disable transmission on UART TxD pin.
STATIC INLINE void | Chip_UART_SendByte (LPC_USART_T *pUART, uint8_t data)
| Transmit a single byte through the UART peripheral.
STATIC INLINE uint8_t | Chip_UART_ReadByte (LPC_USART_T *pUART)
| Get a single data from UART peripheral.
int | Chip_UART_Send (LPC_USART_T *pUART, const void *data, int numBytes)
| Transmit a byte array through the UART peripheral (non-blocking)
int | Chip_UART_Read (LPC_USART_T *pUART, void *data, int numBytes)
| Read data through the UART peripheral (non-blocking)
STATIC INLINE void | Chip_UART_IntEnable (LPC_USART_T *pUART, uint32_t intMask)
| Enable UART interrupts.
STATIC INLINE void | Chip_UART_IntDisable (LPC_USART_T *pUART, uint32_t intMask)
| Disable UART interrupts.
STATIC INLINE uint32_t | Chip_UART_ReadIntIDReg (LPC_USART_T *pUART)
| Read the Interrupt Identification Register (IIR)
STATIC INLINE void | Chip_UART_SetupFIFOS (LPC_USART_T *pUART, uint32_t fcr)
| Setup the UART FIFOs.
STATIC INLINE void | Chip_UART_ConfigData (LPC_USART_T *pUART, uint32_t config)
| Configure data width, parity mode and stop bits.
STATIC INLINE void | Chip_UART_EnableDivisorAccess (LPC_USART_T *pUART)
| Enable access to Divisor Latches.
STATIC INLINE void | Chip_UART_DisableDivisorAccess (LPC_USART_T *pUART)
| Disable access to Divisor Latches.
STATIC INLINE void | Chip_UART_SetDivisorLatches (LPC_USART_T *pUART, uint8_t dll, uint8_t dlm)
| Set LSB and MSB divisor latch registers.
STATIC INLINE uint32_t | Chip_UART_ReadModemControl (LPC_USART_T *pUART)
| Return modem control register/status.
STATIC INLINE void | Chip_UART_SetModemControl (LPC_USART_T *pUART, uint32_t mcr)
| Set modem control register/status.
STATIC INLINE void | Chip_UART_ClearModemControl (LPC_USART_T *pUART, uint32_t mcr)
| Clear modem control register/status.
STATIC INLINE uint32_t | Chip_UART_ReadLineStatus (LPC_USART_T *pUART)
| Return Line Status register/status (LSR)
STATIC INLINE uint32_t | Chip_UART_ReadModemStatus (LPC_USART_T *pUART)
| Return Modem Status register/status (MSR)
STATIC INLINE void | Chip_UART_SetScratch (LPC_USART_T *pUART, uint8_t data)
| Write a byte to the scratchpad register.
STATIC INLINE uint8_t | Chip_UART_ReadScratch (LPC_USART_T *pUART)
| Returns current byte value in the scratchpad register.
STATIC INLINE void | Chip_UART_SetAutoBaudReg (LPC_USART_T *pUART, uint32_t acr)
| Set autobaud register options.
STATIC INLINE void | Chip_UART_ClearAutoBaudReg (LPC_USART_T *pUART, uint32_t acr)
| Clear autobaud register options.
STATIC INLINE void | Chip_UART_SetRS485Flags (LPC_USART_T *pUART, uint32_t ctrl)
| Set RS485 control register options.
STATIC INLINE void | Chip_UART_ClearRS485Flags (LPC_USART_T *pUART, uint32_t ctrl)
| Clear RS485 control register options.
STATIC INLINE void | Chip_UART_SetRS485Addr (LPC_USART_T *pUART, uint8_t addr)
| Set RS485 address match value.
STATIC INLINE uint8_t | Chip_UART_GetRS485Addr (LPC_USART_T *pUART)
| Read RS485 address match value.
STATIC INLINE void | Chip_UART_SetRS485Delay (LPC_USART_T *pUART, uint8_t dly)
| Set RS485 direction control (RTS or DTR) delay value.
STATIC INLINE uint8_t | Chip_UART_GetRS485Delay (LPC_USART_T *pUART)
| Read RS485 direction control (RTS or DTR) delay value.
uint32_t | Chip_UART_SetBaud (LPC_USART_T *pUART, uint32_t baudrate)
| Sets best dividers to get a target bit rate (without fractional divider)
STATIC INLINE uint32_t | Chip_UART_SetBaudFDR (LPC_USART_T *pUART, uint32_t baudrate)
| Sets best dividers to get a target bit rate (with fractional divider)
int | Chip_UART_SendBlocking (LPC_USART_T *pUART, const void *data, int numBytes)
| Transmit a byte array through the UART peripheral (blocking)
int | Chip_UART_ReadBlocking (LPC_USART_T *pUART, void *data, int numBytes)
| Read data through the UART peripheral (blocking)
void | Chip_UART_RXIntHandlerRB (LPC_USART_T *pUART, RINGBUFF_T *pRB)
| UART receive-only interrupt handler for ring buffers.
void | Chip_UART_TXIntHandlerRB (LPC_USART_T *pUART, RINGBUFF_T *pRB)
| UART transmit-only interrupt handler for ring buffers.
uint32_t | Chip_UART_SendRB (LPC_USART_T *pUART, RINGBUFF_T *pRB, const void *data, int bytes)
| Populate a transmit ring buffer and start UART transmit.
int | Chip_UART_ReadRB (LPC_USART_T *pUART, RINGBUFF_T *pRB, void *data, int bytes)
| Copy data from a receive ring buffer.
void | Chip_UART_IRQRBHandler (LPC_USART_T *pUART, RINGBUFF_T *pRXRB, RINGBUFF_T *pTXRB)
| UART receive/transmit interrupt handler for ring buffers.