MT2523 API Reference  LinkIt SDK v4
hal_uart_dma_config_t Struct Reference

This struct defines config 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 VFIFO buffer allocated by user. More...
 
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. More...
 
uint8_t * receive_vfifo_buffer
 This field represents the receiving VFIFO buffer allocated by the user. More...
 
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. More...
 
uint32_t receive_vfifo_alert_size
 This field represents the threshold size of free space left in the VFIFO buffer that actives the UART's flow control system.
 

Detailed Description

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

Field Documentation

uint8_t* receive_vfifo_buffer

This field represents the receiving VFIFO buffer allocated by the user.

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_threshold_size

This field represents the threshold of the receiving VFIFO buffer.

VFIFO DMA will trigger receive interrupt when avail bytes in VFIFO buffer is larger than threshold

uint8_t* send_vfifo_buffer

This field represents the transmitting VFIFO buffer allocated by user.

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

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: