Cypress EZ-USB® FX3™ SDK Quick Start Guide, Version 1.3.1 43
g. The CyU3PGpifSMStart API is used to start executing the GPIF-II
state machine.
h. Once these steps are complete, FX3 starts latching the state of the
GPIF-II data bus and storing it in the DMA buffers. This operation is
performed continuously with automatic flow control kicking in, if the
DMA buffers are not available.
11. The above steps complete all of the initialization required for the GpifToUsb
data transfer application. The application continuously keeps transferring
data to the USB-IN endpoint whenever a free DMA buffer is available for
data transfer. The Streamer application can be run on the USB host side to
read this data, and to calculate the data transfer performance.
12. The application identifies a USB disconnect event through the USB event
callback. It then de-initializes the DMA channel, the GPIF state machine and
the USB endpoints through the CyFxApplnStop function.