UART_Private_Functions
[UART]
Functions | |
uint8_t | getUartNum (LPC_UART_TypeDef *UARTx) |
Get UART number due to UART peripheral pointer. | |
Status | uart_set_divisors (LPC_UART_TypeDef *UARTx, uint32_t baudrate) |
Determines best dividers to get a target clock rate. | |
void | UART_GenIntHandler (LPC_UART_TypeDef *UARTx) |
General UART interrupt handler and router. |
Function Documentation
uint8_t getUartNum | ( | LPC_UART_TypeDef * | UARTx | ) |
Get UART number due to UART peripheral pointer.
- Parameters:
-
[in] UARTx UART pointer
- Returns:
- UART number
Definition at line 94 of file lpc17xx_uart.c.
void UART_GenIntHandler | ( | LPC_UART_TypeDef * | UARTx | ) |
General UART interrupt handler and router.
- Parameters:
-
[in] UARTx Selected UART peripheral, should be UART0..3
- Returns:
- None
- Handles transmit, receive, and status interrupts for the UART. Based on the interrupt status, routes the interrupt to the respective call-back to be handled by the user application using this driver.
- If callback is not installed, corresponding interrupt will be disabled
- All these interrupt source below will be checked:
- Transmit Holding Register Empty.
- Received Data Available and Character Time Out.
- Receive Line Status (not implemented)
- End of auto-baud interrupt (not implemented)
- Auto-Baudrate Time-Out interrupt (not implemented)
- Modem Status interrupt (UART0 Modem functionality)
- CTS signal transition interrupt (UART0 Modem functionality)
- Transmit Holding Register Empty.
Definition at line 235 of file lpc17xx_uart.c.
Status uart_set_divisors | ( | LPC_UART_TypeDef * | UARTx, | |
uint32_t | baudrate | |||
) |
Determines best dividers to get a target clock rate.
- Parameters:
-
[in] UARTx Pointer to selected UART peripheral, should be UART0, UART1, UART2 or UART3. [in] baudrate Desired UART baud rate.
- Returns:
- Error status.
Definition at line 109 of file lpc17xx_uart.c.
Generated on Mon Feb 8 10:01:49 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9