# UART - [Overview](#section1891658640165623) - [Summary](#section34751695165623) - [Files](#files) - [Data Structures](#nested-classes) - [Enumerations](#enum-members) - [Functions](#func-members) - [Details](#section541110488165623) - [Enumeration Type](#section1991208749165623) - [UartTransMode](#gab9e041a0802a7e24da22215b458bf7db) - [Function](#section372043577165623) - [UartClose\(\)](#ga4702e7771c5088a9acf350a4cc6d3cdc) - [UartGetAttribute\(\)](#gaff87cbe71e33c3cddfe41ccfbc422335) - [UartGetBaud\(\)](#ga3abaa2855a7ffd0bd277e0524d4a9f6e) - [UartOpen\(\)](#ga58c38269b20875dbbf924379edeec286) - [UartRead\(\)](#gafd054e271c663816db676dedce506cf1) - [UartSetAttribute\(\)](#ga76281a15464395451fc9844e717e0e10) - [UartSetBaud\(\)](#ga1e7084df70420be7f8ef77d32da875d5) - [UartSetTransMode\(\)](#ga99100dbfded04627fab8387abcbfd9a8) - [UartWrite\(\)](#ga47eb7fa4bdedf14b494c89da50b0628b) ## **Overview** **Description:** Defines standard APIs of universal asynchronous receiver/transmitter \(UART\) capabilities. You can use this module to access the UART and enable the driver to operate a UART-compliant device. The functions in this module help you to obtain and release the UART device handle, read and write data, obtain and set the baud rate and device attributes. **Since:** 1.0 ## **Summary** ## Files
UartTransMode { UART_MODE_RD_BLOCK = 0, UART_MODE_RD_NONBLOCK, UART_MODE_DMA_RX_EN, UART_MODE_DMA_RX_DIS, UART_MODE_DMA_TX_EN, UART_MODE_DMA_TX_DIS } |
UartOpen (uint32_t port) |
|
UartGetBaud (DevHandle handle, uint32_t *baudRate) |
|
UartSetBaud (DevHandle handle, uint32_t baudRate) |
|
UartGetAttribute (DevHandle handle, struct UartAttribute *attribute) |
|
UartSetAttribute (DevHandle handle, struct UartAttribute *attribute) |
|
UartSetTransMode (DevHandle handle, enum UartTransMode mode) |
| UART_MODE_RD_BLOCK | |
| UART_MODE_RD_NONBLOCK | |
| UART_MODE_DMA_RX_EN | |
| UART_MODE_DMA_RX_DIS | |
| UART_MODE_DMA_TX_EN | |
| UART_MODE_DMA_TX_DIS |
| handle | Indicates the pointer to the UART device handle, which is obtained via UartOpen. |
| handle | Indicates the pointer to the UART device handle, which is obtained via UartOpen. |
| attribute | Indicates the pointer to the obtained UART attribute. |
| handle | Indicates the pointer to the UART device handle, which is obtained via UartOpen. |
| baudRate | Indicates the pointer to the obtained baud rate. |
| port | Indicates the UART port. |
| handle | Indicates the pointer to the UART device handle, which is obtained via UartOpen. |
| data | Indicates the pointer to the buffer for receiving the data. |
| size | Indicates the size of the data to read. |
| handle | Indicates the pointer to the UART device handle, which is obtained via UartOpen. |
| attribute | Indicates the pointer to the UART attribute to set. |
| handle | Indicates the pointer to the UART device handle, which is obtained via UartOpen. |
| baudRate | Indicates the baud rate to set. |
| handle | Indicates the pointer to the UART device handle, which is obtained via UartOpen. |
| mode | Indicates a transmission mode enumerated in {@linkUartTransMode}. |
| handle | Indicates the pointer to the UART device handle, which is obtained via UartOpen. |
| data | Indicates the pointer to the data to write. |
| size | Indicates the size of the data to write. |