Public Attributes | List of all members
_uart_handle Struct Reference
Peripheral Driver » HAL Driver » UART » Structures » UART handle

UART handle Structure definition. More...

`#include <gr533x_hal_uart.h>`

## Public Attributes
uart_regs_t * | p_instance
uart_init_t | init
uint8_t * | p_tx_buffer
uint16_t | tx_xfer_size
__IO uint16_t | tx_xfer_count
uint8_t * | p_rx_buffer
uint16_t | rx_xfer_size
__IO uint16_t | rx_xfer_count
dma_handle_t * | p_dmatx
dma_handle_t * | p_dmarx
functional_state_t | dma_tx_mode
functional_state_t | dma_rx_mode
hal_lock_t | lock
__IO hal_uart_state_t | tx_state
__IO hal_uart_state_t | rx_state
__IO uint32_t | error_code
uint32_t | retention [8]

## Detailed Description

UART handle Structure definition.

Definition at line 153 of file gr533x_hal_uart.h.

## Member Data Documentation

## ◆ dma_rx_mode

functional_state_t _uart_handle::dma_rx_mode

UART Rx DMA mode state

Definition at line 177 of file gr533x_hal_uart.h.

## ◆ dma_tx_mode

functional_state_t _uart_handle::dma_tx_mode

UART Tx DMA mode state

Definition at line 175 of file gr533x_hal_uart.h.

## ◆ error_code

__IO uint32_t _uart_handle::error_code

UART Error code

Definition at line 187 of file gr533x_hal_uart.h.

## ◆ init

uart_init_t _uart_handle::init

UART communication parameters

Definition at line 157 of file gr533x_hal_uart.h.

## ◆ lock

hal_lock_t _uart_handle::lock

Locking object

Definition at line 179 of file gr533x_hal_uart.h.

## ◆ p_dmarx

dma_handle_t* _uart_handle::p_dmarx

UART Rx DMA Handle parameters

Definition at line 173 of file gr533x_hal_uart.h.

## ◆ p_dmatx

dma_handle_t* _uart_handle::p_dmatx

UART Tx DMA Handle parameters

Definition at line 171 of file gr533x_hal_uart.h.

## ◆ p_instance

uart_regs_t* _uart_handle::p_instance

UART registers base address

Definition at line 155 of file gr533x_hal_uart.h.

## ◆ p_rx_buffer

uint8_t* _uart_handle::p_rx_buffer

Pointer to UART Rx transfer Buffer

Definition at line 165 of file gr533x_hal_uart.h.

## ◆ p_tx_buffer

uint8_t* _uart_handle::p_tx_buffer

Pointer to UART Tx transfer Buffer

Definition at line 159 of file gr533x_hal_uart.h.

## ◆ retention

uint32_t _uart_handle::retention[8]

UART important register information.

Definition at line 189 of file gr533x_hal_uart.h.

## ◆ rx_state

__IO hal_uart_state_t _uart_handle::rx_state

UART state information related to Rx operations. This parameter can be a value of hal_uart_state_t

Definition at line 184 of file gr533x_hal_uart.h.

## ◆ rx_xfer_count

__IO uint16_t _uart_handle::rx_xfer_count

UART Rx Transfer Counter

Definition at line 169 of file gr533x_hal_uart.h.

## ◆ rx_xfer_size

uint16_t _uart_handle::rx_xfer_size

UART Rx Transfer size

Definition at line 167 of file gr533x_hal_uart.h.

## ◆ tx_state

__IO hal_uart_state_t _uart_handle::tx_state

UART state information related to Tx operations. This parameter can be a value of hal_uart_state_t

Definition at line 181 of file gr533x_hal_uart.h.

## ◆ tx_xfer_count

__IO uint16_t _uart_handle::tx_xfer_count

UART Tx Transfer Counter

Definition at line 163 of file gr533x_hal_uart.h.

## ◆ tx_xfer_size

uint16_t _uart_handle::tx_xfer_size

UART Tx Transfer size

Definition at line 161 of file gr533x_hal_uart.h.

The documentation for this struct was generated from the following file:

- gr533x_hal_uart.h