MT7697 API Reference  LinkIt SDK v4
hal_uart_dma_config_t Struct Reference

This struct defines configuration parameters and TX/RX buffers for the VFIFO DMA associated with a specific UART channel. More...

#include <hal_uart.h>

Data Fields

uint8_t * send_vfifo_buffer
 This field represents the transmitting user allocated VFIFO buffer. More...
 
uint32_t send_vfifo_buffer_size
 This field represents the size of the transmitting VFIFO buffer. More...
 
uint32_t send_vfifo_threshold_size
 This field represents the threshold of the transmitting VFIFO buffer. More...
 
uint8_t * receive_vfifo_buffer
 This field represents the receiving user allocated VFIFO buffer. More...
 
uint32_t receive_vfifo_buffer_size
 This field represents size of the receiving VFIFO buffer. More...
 
uint32_t receive_vfifo_threshold_size
 This field represents the threshold of the receiving VFIFO buffer. More...
 
uint32_t receive_vfifo_alert_size
 This field represents the threshold size of free space left in the VFIFO buffer that activates the UART's flow control system. More...
 

Detailed Description

This struct defines configuration parameters and TX/RX buffers for the VFIFO DMA associated with a specific UART channel.

Field Documentation

uint32_t receive_vfifo_alert_size

This field represents the threshold size of free space left in the VFIFO buffer that activates the UART's flow control system.

uint8_t* receive_vfifo_buffer

This field represents the receiving user allocated VFIFO buffer.

It will only be used by the UART driver for receiving data, and must be non-cacheable and align to 4bytes.

uint32_t receive_vfifo_buffer_size

This field represents size of the receiving VFIFO buffer.

uint32_t receive_vfifo_threshold_size

This field represents the threshold of the receiving VFIFO buffer.

VFIFO DMA will trigger receive interrupt when available bytes in VFIFO buffer are more than the threshold.

uint8_t* send_vfifo_buffer

This field represents the transmitting user allocated VFIFO buffer.

It will only be used by the UART driver to send data, must be non-cacheable and aligned to 4bytes.

uint32_t send_vfifo_buffer_size

This field represents the size of the transmitting VFIFO buffer.

uint32_t send_vfifo_threshold_size

This field represents the threshold of the transmitting VFIFO buffer.

VFIFO DMA will trigger an interrupt when the available bytes in VFIFO buffer are lower than the threshold.


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