![FTDI FT51A Скачать руководство пользователя страница 143](http://html1.mh-extra.com/html/ftdi/ft51a/ft51a_application-note_2341158143.webp)
Application Note
AN_289 FT51A Programming Guide
Version 1.0
Document Reference No.: FT_000962 Clearance No.: FTDI# 483
142
Copyright © 2015 Future Technology Devices International Limited
The FIFO mode is always paired with a pull DMA engine. Flow control can be enabled for certain
peripherals such as the UART to activate and deactivate flow control depending on the amount of
data stored in a FIFO buffer.
3.1.3.8
DMA_purge_fifo
File: ft51_dma_purge_fifo.c
Remove all data in the FIFO buffer. This is currently not implemented.
3.1.3.9
DMA_get_fifo_count
File: ft51_dma_get_fifo_count.c
Get the number of bytes in the FIFO buffer.
3.1.3.10
DMA_get_fifo_data
File: ft51_dma_get_fifo_data.c
Get a number of bytes from the FIFO buffer.
3.1.3.11
DMA_switch_fifo
File: ft51_dma_switch _fifo.c
Change the destination buffer of a FIFO.
3.1.3.12
DMA_is_complete
File: ft51_dma_is_complete.c
Checks whether a DMA is complete.
3.1.3.13
DMA_release
File: ft51_dma_release.c
Requires: ft51_dma_reset.c
There are no more uses for this DMA engine and it can be disabled and released. This function
calls free() to remove allocated memory from the heap.
3.1.3.14
DMA_reset
File: ft51_dma_reset.c
Reset one of the DMA engines.
3.1.4
UART Library
The peripheral UART is capable of sending and receiving data at up to 3 Mbaud. The library
contains functions to claim the UART, configure it (number of data bits, stop bits, baud rate etc.)
and send or receive individual messages.
The default configuration for the UART at power on is 9600 baud, 8 data bits, 1 stop bit, no parity,
and no flow control.
Source Folder: uart
3.1.4.1
UART_initialise
File: ft51_uart_initialise.c
Initialise the UART. This must be called before any other UART operation.
3.1.4.2
UART_set_baud_rate
File: ft51_uart_set_baud_rate.c