#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Macros | |
#define | UART_INT_DMATX 0x20000 |
#define | UART_INT_DMARX 0x10000 |
#define | UART_INT_9BIT 0x1000 |
#define | UART_INT_OE 0x400 |
#define | UART_INT_BE 0x200 |
#define | UART_INT_PE 0x100 |
#define | UART_INT_FE 0x080 |
#define | UART_INT_RT 0x040 |
#define | UART_INT_TX 0x020 |
#define | UART_INT_RX 0x010 |
#define | UART_INT_DSR 0x008 |
#define | UART_INT_DCD 0x004 |
#define | UART_INT_CTS 0x002 |
#define | UART_INT_RI 0x001 |
#define | UART_CONFIG_WLEN_MASK 0x00000060 |
#define | UART_CONFIG_WLEN_8 0x00000060 |
#define | UART_CONFIG_WLEN_7 0x00000040 |
#define | UART_CONFIG_WLEN_6 0x00000020 |
#define | UART_CONFIG_WLEN_5 0x00000000 |
#define | UART_CONFIG_STOP_MASK 0x00000008 |
#define | UART_CONFIG_STOP_ONE 0x00000000 |
#define | UART_CONFIG_STOP_TWO 0x00000008 |
#define | UART_CONFIG_PAR_MASK 0x00000086 |
#define | UART_CONFIG_PAR_NONE 0x00000000 |
#define | UART_CONFIG_PAR_EVEN 0x00000006 |
#define | UART_CONFIG_PAR_ODD 0x00000002 |
#define | UART_CONFIG_PAR_ONE 0x00000082 |
#define | UART_CONFIG_PAR_ZERO 0x00000086 |
#define | UART_FIFO_TX1_8 0x00000000 |
#define | UART_FIFO_TX2_8 0x00000001 |
#define | UART_FIFO_TX4_8 0x00000002 |
#define | UART_FIFO_TX6_8 0x00000003 |
#define | UART_FIFO_TX7_8 0x00000004 |
#define | UART_FIFO_RX1_8 0x00000000 |
#define | UART_FIFO_RX2_8 0x00000008 |
#define | UART_FIFO_RX4_8 0x00000010 |
#define | UART_FIFO_RX6_8 0x00000018 |
#define | UART_FIFO_RX7_8 0x00000020 |
#define | UART_DMA_ERR_RXSTOP 0x00000004 |
#define | UART_DMA_TX 0x00000002 |
#define | UART_DMA_RX 0x00000001 |
#define | UART_RXERROR_OVERRUN 0x00000008 |
#define | UART_RXERROR_BREAK 0x00000004 |
#define | UART_RXERROR_PARITY 0x00000002 |
#define | UART_RXERROR_FRAMING 0x00000001 |
#define | UART_OUTPUT_RTS 0x00000800 |
#define | UART_OUTPUT_DTR 0x00000400 |
#define | UART_INPUT_RI 0x00000100 |
#define | UART_INPUT_DCD 0x00000004 |
#define | UART_INPUT_DSR 0x00000002 |
#define | UART_INPUT_CTS 0x00000001 |
#define | UART_FLOWCONTROL_TX 0x00008000 |
#define | UART_FLOWCONTROL_RX 0x00004000 |
#define | UART_FLOWCONTROL_NONE 0x00000000 |
#define | UART_TXINT_MODE_FIFO 0x00000000 |
#define | UART_TXINT_MODE_EOT 0x00000010 |
#define | UART_CLOCK_SYSTEM 0x00000000 |
#define | UART_CLOCK_ALTCLK 0x00000005 |
Functions | |
void | UARTParityModeSet (uint32_t ui32Base, uint32_t ui32Parity) |
uint32_t | UARTParityModeGet (uint32_t ui32Base) |
void | UARTFIFOLevelSet (uint32_t ui32Base, uint32_t ui32TxLevel, uint32_t ui32RxLevel) |
void | UARTFIFOLevelGet (uint32_t ui32Base, uint32_t *pui32TxLevel, uint32_t *pui32RxLevel) |
void | UARTConfigSetExpClk (uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t ui32Baud, uint32_t ui32Config) |
void | UARTConfigGetExpClk (uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t *pui32Baud, uint32_t *pui32Config) |
void | UARTEnable (uint32_t ui32Base) |
void | UARTDisable (uint32_t ui32Base) |
void | UARTFIFOEnable (uint32_t ui32Base) |
void | UARTFIFODisable (uint32_t ui32Base) |
void | UARTEnableSIR (uint32_t ui32Base, bool bLowPower) |
void | UARTDisableSIR (uint32_t ui32Base) |
bool | UARTCharsAvail (uint32_t ui32Base) |
bool | UARTSpaceAvail (uint32_t ui32Base) |
int32_t | UARTCharGetNonBlocking (uint32_t ui32Base) |
int32_t | UARTCharGet (uint32_t ui32Base) |
bool | UARTCharPutNonBlocking (uint32_t ui32Base, unsigned char ucData) |
void | UARTCharPut (uint32_t ui32Base, unsigned char ucData) |
void | UARTBreakCtl (uint32_t ui32Base, bool bBreakState) |
bool | UARTBusy (uint32_t ui32Base) |
void | UARTIntRegister (uint32_t ui32Base, void(*pfnHandler)(void)) |
void | UARTIntUnregister (uint32_t ui32Base) |
void | UARTIntEnable (uint32_t ui32Base, uint32_t ui32IntFlags) |
void | UARTIntDisable (uint32_t ui32Base, uint32_t ui32IntFlags) |
uint32_t | UARTIntStatus (uint32_t ui32Base, bool bMasked) |
void | UARTIntClear (uint32_t ui32Base, uint32_t ui32IntFlags) |
void | UARTDMAEnable (uint32_t ui32Base, uint32_t ui32DMAFlags) |
void | UARTDMADisable (uint32_t ui32Base, uint32_t ui32DMAFlags) |
uint32_t | UARTRxErrorGet (uint32_t ui32Base) |
void | UARTRxErrorClear (uint32_t ui32Base) |
void | UARTSmartCardEnable (uint32_t ui32Base) |
void | UARTSmartCardDisable (uint32_t ui32Base) |
void | UARTModemControlSet (uint32_t ui32Base, uint32_t ui32Control) |
void | UARTModemControlClear (uint32_t ui32Base, uint32_t ui32Control) |
uint32_t | UARTModemControlGet (uint32_t ui32Base) |
uint32_t | UARTModemStatusGet (uint32_t ui32Base) |
void | UARTFlowControlSet (uint32_t ui32Base, uint32_t ui32Mode) |
uint32_t | UARTFlowControlGet (uint32_t ui32Base) |
void | UARTTxIntModeSet (uint32_t ui32Base, uint32_t ui32Mode) |
uint32_t | UARTTxIntModeGet (uint32_t ui32Base) |
void | UARTClockSourceSet (uint32_t ui32Base, uint32_t ui32Source) |
uint32_t | UARTClockSourceGet (uint32_t ui32Base) |
void | UART9BitEnable (uint32_t ui32Base) |
void | UART9BitDisable (uint32_t ui32Base) |
void | UART9BitAddrSet (uint32_t ui32Base, uint8_t ui8Addr, uint8_t ui8Mask) |
void | UART9BitAddrSend (uint32_t ui32Base, uint8_t ui8Addr) |
void | UARTLoopbackEnable (uint32_t ui32Base) |
#define UART_INT_DMATX 0x20000 |
#define UART_INT_DMARX 0x10000 |
#define UART_INT_9BIT 0x1000 |
#define UART_INT_OE 0x400 |
#define UART_INT_BE 0x200 |
#define UART_INT_PE 0x100 |
#define UART_INT_FE 0x080 |
#define UART_INT_RT 0x040 |
#define UART_INT_TX 0x020 |
#define UART_INT_RX 0x010 |
#define UART_INT_DSR 0x008 |
#define UART_INT_DCD 0x004 |
#define UART_INT_CTS 0x002 |
#define UART_INT_RI 0x001 |
#define UART_CONFIG_WLEN_MASK 0x00000060 |
#define UART_CONFIG_WLEN_8 0x00000060 |
#define UART_CONFIG_WLEN_7 0x00000040 |
#define UART_CONFIG_WLEN_6 0x00000020 |
#define UART_CONFIG_WLEN_5 0x00000000 |
#define UART_CONFIG_STOP_MASK 0x00000008 |
#define UART_CONFIG_STOP_ONE 0x00000000 |
#define UART_CONFIG_STOP_TWO 0x00000008 |
#define UART_CONFIG_PAR_MASK 0x00000086 |
#define UART_CONFIG_PAR_NONE 0x00000000 |
Referenced by UARTParityModeSet().
#define UART_CONFIG_PAR_EVEN 0x00000006 |
Referenced by UARTParityModeSet().
#define UART_CONFIG_PAR_ODD 0x00000002 |
Referenced by UARTParityModeSet().
#define UART_CONFIG_PAR_ONE 0x00000082 |
Referenced by UARTParityModeSet().
#define UART_CONFIG_PAR_ZERO 0x00000086 |
Referenced by UARTParityModeSet().
#define UART_FIFO_TX1_8 0x00000000 |
Referenced by UARTFIFOLevelSet().
#define UART_FIFO_TX2_8 0x00000001 |
Referenced by UARTFIFOLevelSet().
#define UART_FIFO_TX4_8 0x00000002 |
Referenced by UARTFIFOLevelSet().
#define UART_FIFO_TX6_8 0x00000003 |
Referenced by UARTFIFOLevelSet().
#define UART_FIFO_TX7_8 0x00000004 |
Referenced by UARTFIFOLevelSet().
#define UART_FIFO_RX1_8 0x00000000 |
Referenced by UARTFIFOLevelSet().
#define UART_FIFO_RX2_8 0x00000008 |
Referenced by UARTFIFOLevelSet().
#define UART_FIFO_RX4_8 0x00000010 |
Referenced by UARTFIFOLevelSet().
#define UART_FIFO_RX6_8 0x00000018 |
Referenced by UARTFIFOLevelSet().
#define UART_FIFO_RX7_8 0x00000020 |
Referenced by UARTFIFOLevelSet().
#define UART_DMA_ERR_RXSTOP 0x00000004 |
#define UART_DMA_TX 0x00000002 |
#define UART_DMA_RX 0x00000001 |
#define UART_RXERROR_OVERRUN 0x00000008 |
#define UART_RXERROR_BREAK 0x00000004 |
#define UART_RXERROR_PARITY 0x00000002 |
#define UART_RXERROR_FRAMING 0x00000001 |
#define UART_OUTPUT_RTS 0x00000800 |
Referenced by UARTModemControlClear(), UARTModemControlGet(), and UARTModemControlSet().
#define UART_OUTPUT_DTR 0x00000400 |
Referenced by UARTModemControlClear(), UARTModemControlGet(), and UARTModemControlSet().
#define UART_INPUT_RI 0x00000100 |
Referenced by UARTModemStatusGet().
#define UART_INPUT_DCD 0x00000004 |
Referenced by UARTModemStatusGet().
#define UART_INPUT_DSR 0x00000002 |
Referenced by UARTModemStatusGet().
#define UART_INPUT_CTS 0x00000001 |
Referenced by UARTModemStatusGet().
#define UART_FLOWCONTROL_TX 0x00008000 |
Referenced by UARTFlowControlGet(), and UARTFlowControlSet().
#define UART_FLOWCONTROL_RX 0x00004000 |
Referenced by UARTFlowControlGet(), and UARTFlowControlSet().
#define UART_FLOWCONTROL_NONE 0x00000000 |
#define UART_TXINT_MODE_FIFO 0x00000000 |
Referenced by UARTTxIntModeGet(), and UARTTxIntModeSet().
#define UART_TXINT_MODE_EOT 0x00000010 |
Referenced by UARTTxIntModeGet(), and UARTTxIntModeSet().
#define UART_CLOCK_SYSTEM 0x00000000 |
Referenced by UARTClockSourceSet().
#define UART_CLOCK_ALTCLK 0x00000005 |
Referenced by UARTClockSourceSet().