CC26xx Driver Library |

- Main Page
- Related Pages
- CC26xx APIs
- Register Descriptions
- Online Resources

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
uart.h File Reference
`#include <stdbool.h>`
`#include <stdint.h>`
`#include <inc/hw_types.h>`
`#include <inc/hw_uart.h>`
`#include <inc/hw_memmap.h>`
`#include <inc/hw_ints.h>`
`#include <driverlib/interrupt.h>`
`#include <driverlib/debug.h>`

Go to the source code of this file.

## Macros
#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_CTS 0x002
#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_TXINT_MODE_FIFO 0x00000000
#define | UART_TXINT_MODE_EOT 0x00000010
#define | UART_BUSY 0x00000001
#define | UART_IDLE 0x00000000

## Functions
__STATIC_INLINE void | UARTParityModeSet (uint32_t ui32Base, uint32_t ui32Parity)
| Sets the type of parity. More...
__STATIC_INLINE uint32_t | UARTParityModeGet (uint32_t ui32Base)
| Gets the type of parity currently being used. More...
__STATIC_INLINE void | UARTFIFOLevelSet (uint32_t ui32Base, uint32_t ui32TxLevel, uint32_t ui32RxLevel)
| Sets the FIFO level at which interrupts are generated. More...
void | UARTFIFOLevelGet (uint32_t ui32Base, uint32_t *pui32TxLevel, uint32_t *pui32RxLevel)
| Gets the FIFO level at which interrupts are generated. More...
void | UARTConfigSetExpClk (uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t ui32Baud, uint32_t ui32Config)
| Sets the configuration of a UART. More...
void | UARTConfigGetExpClk (uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t *pui32Baud, uint32_t *pui32Config)
| Gets the current configuration of a UART. More...
__STATIC_INLINE void | UARTEnable (uint32_t ui32Base)
| Enables transmitting and receiving. More...
void | UARTDisable (uint32_t ui32Base)
| Disables transmitting and receiving. More...
__STATIC_INLINE void | UARTFIFOEnable (uint32_t ui32Base)
| Enables the transmit and receive FIFOs. More...
__STATIC_INLINE void | UARTFIFODisable (uint32_t ui32Base)
| Disables the transmit and receive FIFOs. More...
__STATIC_INLINE void | UARTTxIntModeSet (uint32_t ui32Base, uint32_t ui32Mode)
| Sets the operating mode for the UART transmit interrupt. More...
__STATIC_INLINE uint32_t | UARTTxIntModeGet (uint32_t ui32Base)
| Returns the current operating mode for the UART transmit interrupt. More...
__STATIC_INLINE bool | UARTCharsAvail (uint32_t ui32Base)
| Determines if there are any characters in the receive FIFO. More...
__STATIC_INLINE bool | UARTSpaceAvail (uint32_t ui32Base)
| Determines if there is any space in the transmit FIFO. More...
int32_t | UARTCharGetNonBlocking (uint32_t ui32Base)
| Receives a character from the specified port. More...
int32_t | UARTCharGet (uint32_t ui32Base)
| Waits for a character from the specified port. More...
bool | UARTCharPutNonBlocking (uint32_t ui32Base, uint8_t ui8Data)
| Sends a character to the specified port. More...
void | UARTCharPut (uint32_t ui32Base, uint8_t ui8Data)
| Waits to send a character from the specified port. More...
__STATIC_INLINE bool | UARTBusy (uint32_t ui32Base)
| Determines whether the UART transmitter is busy or not. More...
__STATIC_INLINE void | UARTBreakCtl (uint32_t ui32Base, bool bBreakState)
| Causes a BREAK to be sent. More...
void | UARTIntRegister (uint32_t ui32Base, void(*pfnHandler)(void))
| Registers an interrupt handler for a UART interrupt. More...
void | UARTIntUnregister (uint32_t ui32Base)
| Unregisters an interrupt handler for a UART interrupt. More...
__STATIC_INLINE void | UARTIntEnable (uint32_t ui32Base, uint32_t ui32IntFlags)
| Enables individual UART interrupt sources. More...
__STATIC_INLINE void | UARTIntDisable (uint32_t ui32Base, uint32_t ui32IntFlags)
| Disables individual UART interrupt sources. More...
__STATIC_INLINE uint32_t | UARTIntStatus (uint32_t ui32Base, bool bMasked)
| Gets the current interrupt status. More...
__STATIC_INLINE void | UARTIntClear (uint32_t ui32Base, uint32_t ui32IntFlags)
| Clears UART interrupt sources. More...
__STATIC_INLINE void | UARTDMAEnable (uint32_t ui32Base, uint32_t ui32DMAFlags)
| Enable UART DMA operation. More...
__STATIC_INLINE void | UARTDMADisable (uint32_t ui32Base, uint32_t ui32DMAFlags)
| Disable UART DMA operation. More...
__STATIC_INLINE uint32_t | UARTRxErrorGet (uint32_t ui32Base)
| Gets current receiver errors. More...
__STATIC_INLINE void | UARTRxErrorClear (uint32_t ui32Base)
| Clears all reported receiver errors. More...