Macros | Functions
uart.h File Reference
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for uart.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

§ UART_INT_DMATX

#define UART_INT_DMATX   0x20000

§ UART_INT_DMARX

#define UART_INT_DMARX   0x10000

§ UART_INT_9BIT

#define UART_INT_9BIT   0x1000

§ UART_INT_OE

#define UART_INT_OE   0x400

§ UART_INT_BE

#define UART_INT_BE   0x200

§ UART_INT_PE

#define UART_INT_PE   0x100

§ UART_INT_FE

#define UART_INT_FE   0x080

§ UART_INT_RT

#define UART_INT_RT   0x040

§ UART_INT_TX

#define UART_INT_TX   0x020

§ UART_INT_RX

#define UART_INT_RX   0x010

§ UART_INT_DSR

#define UART_INT_DSR   0x008

§ UART_INT_DCD

#define UART_INT_DCD   0x004

§ UART_INT_CTS

#define UART_INT_CTS   0x002

§ UART_INT_RI

#define UART_INT_RI   0x001

§ UART_CONFIG_WLEN_MASK

#define UART_CONFIG_WLEN_MASK   0x00000060

§ UART_CONFIG_WLEN_8

#define UART_CONFIG_WLEN_8   0x00000060

§ UART_CONFIG_WLEN_7

#define UART_CONFIG_WLEN_7   0x00000040

§ UART_CONFIG_WLEN_6

#define UART_CONFIG_WLEN_6   0x00000020

§ UART_CONFIG_WLEN_5

#define UART_CONFIG_WLEN_5   0x00000000

§ UART_CONFIG_STOP_MASK

#define UART_CONFIG_STOP_MASK   0x00000008

§ UART_CONFIG_STOP_ONE

#define UART_CONFIG_STOP_ONE   0x00000000

§ UART_CONFIG_STOP_TWO

#define UART_CONFIG_STOP_TWO   0x00000008

§ UART_CONFIG_PAR_MASK

#define UART_CONFIG_PAR_MASK   0x00000086

§ UART_CONFIG_PAR_NONE

#define UART_CONFIG_PAR_NONE   0x00000000

Referenced by UARTParityModeSet().

§ UART_CONFIG_PAR_EVEN

#define UART_CONFIG_PAR_EVEN   0x00000006

Referenced by UARTParityModeSet().

§ UART_CONFIG_PAR_ODD

#define UART_CONFIG_PAR_ODD   0x00000002

Referenced by UARTParityModeSet().

§ UART_CONFIG_PAR_ONE

#define UART_CONFIG_PAR_ONE   0x00000082

Referenced by UARTParityModeSet().

§ UART_CONFIG_PAR_ZERO

#define UART_CONFIG_PAR_ZERO   0x00000086

Referenced by UARTParityModeSet().

§ UART_FIFO_TX1_8

#define UART_FIFO_TX1_8   0x00000000

Referenced by UARTFIFOLevelSet().

§ UART_FIFO_TX2_8

#define UART_FIFO_TX2_8   0x00000001

Referenced by UARTFIFOLevelSet().

§ UART_FIFO_TX4_8

#define UART_FIFO_TX4_8   0x00000002

Referenced by UARTFIFOLevelSet().

§ UART_FIFO_TX6_8

#define UART_FIFO_TX6_8   0x00000003

Referenced by UARTFIFOLevelSet().

§ UART_FIFO_TX7_8

#define UART_FIFO_TX7_8   0x00000004

Referenced by UARTFIFOLevelSet().

§ UART_FIFO_RX1_8

#define UART_FIFO_RX1_8   0x00000000

Referenced by UARTFIFOLevelSet().

§ UART_FIFO_RX2_8

#define UART_FIFO_RX2_8   0x00000008

Referenced by UARTFIFOLevelSet().

§ UART_FIFO_RX4_8

#define UART_FIFO_RX4_8   0x00000010

Referenced by UARTFIFOLevelSet().

§ UART_FIFO_RX6_8

#define UART_FIFO_RX6_8   0x00000018

Referenced by UARTFIFOLevelSet().

§ UART_FIFO_RX7_8

#define UART_FIFO_RX7_8   0x00000020

Referenced by UARTFIFOLevelSet().

§ UART_DMA_ERR_RXSTOP

#define UART_DMA_ERR_RXSTOP   0x00000004

§ UART_DMA_TX

#define UART_DMA_TX   0x00000002

§ UART_DMA_RX

#define UART_DMA_RX   0x00000001

§ UART_RXERROR_OVERRUN

#define UART_RXERROR_OVERRUN   0x00000008

§ UART_RXERROR_BREAK

#define UART_RXERROR_BREAK   0x00000004

§ UART_RXERROR_PARITY

#define UART_RXERROR_PARITY   0x00000002

§ UART_RXERROR_FRAMING

#define UART_RXERROR_FRAMING   0x00000001

§ UART_OUTPUT_RTS

#define UART_OUTPUT_RTS   0x00000800

§ UART_OUTPUT_DTR

#define UART_OUTPUT_DTR   0x00000400

§ UART_INPUT_RI

#define UART_INPUT_RI   0x00000100

Referenced by UARTModemStatusGet().

§ UART_INPUT_DCD

#define UART_INPUT_DCD   0x00000004

Referenced by UARTModemStatusGet().

§ UART_INPUT_DSR

#define UART_INPUT_DSR   0x00000002

Referenced by UARTModemStatusGet().

§ UART_INPUT_CTS

#define UART_INPUT_CTS   0x00000001

Referenced by UARTModemStatusGet().

§ UART_FLOWCONTROL_TX

#define UART_FLOWCONTROL_TX   0x00008000

§ UART_FLOWCONTROL_RX

#define UART_FLOWCONTROL_RX   0x00004000

§ UART_FLOWCONTROL_NONE

#define UART_FLOWCONTROL_NONE   0x00000000

§ UART_TXINT_MODE_FIFO

#define UART_TXINT_MODE_FIFO   0x00000000

§ UART_TXINT_MODE_EOT

#define UART_TXINT_MODE_EOT   0x00000010

§ UART_CLOCK_SYSTEM

#define UART_CLOCK_SYSTEM   0x00000000

Referenced by UARTClockSourceSet().

§ UART_CLOCK_ALTCLK

#define UART_CLOCK_ALTCLK   0x00000005

Referenced by UARTClockSourceSet().

Copyright 2018, Texas Instruments Incorporated