FX3 Programmers Manual, Doc. # 001-64707 Rev. *C
79
FX3 Application Examples
IN after removing the header and footer. The removal of header and footer does not require the copy
of data.
7.1.12
cyfxbulklplowlevel – Descriptor and Socket APIs
The DMA channel is a helpful construct that allows for simple data transfer. The low level DMA
descriptor and DMA socket APIs allow for finer constructs. This example uses these APIs to imple-
ment a simple bulkloop back example where a buffer of data received from EP1 OUT is looped back
to EP1 IN.
7.1.13
cyfxbulklpmandcache – MANUAL Channel with D-cache Enabled
FX3 device has the data cache disabled by default. The data cache is useful when there is large
amount of data modifications done by the CPU. But enabling D-cache adds additional constraints for
managing the data cache. This example demonstrates how DMA transfers can be done with the
data cache enabled.
7.1.14
cyfxbulklpmanual_rvds – Real View Tool Chain Project Configuration
This example demonstrates the use of RVDS 4.0 for building the firmware examples. This is same
as the cyfxbulklpmanual example.
7.2
Basic Examples
The FX3 SDK includes basic USB examples that are meant to be a programming guide for the
following:
■
Setting up the descriptors and USB enumeration
■
USB endpoint configuration
■
USB reset and suspend handling
7.2.1
cyfxbulklpautoenum – USB Enumeration
The example demonstrates the normal mode USB enumeration. All standard setup requests from
the USB host PC are handled by the FX3 application example. The example implements a simple
bulkloop back example using DMA AUTO channel.
7.2.2
cyfxbulksrcsink – Bulk Source and Sink
The example demonstrates the use of FX3 as a data source and a data sink using bulk endpoints.
All data received on EP1 OUT are discarded and EP1 IN always sends out pre filled buffers. This
example can be used to measure the throughput for the system.
7.2.3
cyfxbulkstreams – Bulk Streams
This example demonstrates the use of stream enabled bulk endpoints using FX3 device. This
example is specific to USB 3.0 and requires the PC USB host stack to be stream capable. The
example enables four streams of data to be looped back though EP1 OUT to EP1 IN using DMA
AUTO channels.
7.2.4
cyfxisolpauto – ISO loopback using AUTOchannel
This example demonstrates the loopback of data through ISO endpoints. This example is similar to
the cyfxbulklpauto except for the fact that the endpoints used here are isochronous instead of bulk.
The data received on EP3 OUT is looped back to EP3 IN.
Summary of Contents for EX-USB FX3
Page 8: ...8 FX3 Programmers Manual Doc 001 64707 Rev C Contents...
Page 12: ...12 FX3 Programmers Manual Doc 001 64707 Rev C Introduction...
Page 48: ...48 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Overview...
Page 74: ...74 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Firmware...
Page 76: ...76 FX3 Programmers Manual Doc 001 64707 Rev C FX3 APIs...
Page 84: ...84 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Application Examples...
Page 98: ...98 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Application Structure...
Page 148: ...148 FX3 Programmers Manual Doc 001 64707 Rev C FX3 P Port Register Access...
Page 165: ...FX3 Programmers Manual Doc 001 64707 Rev C 165 FX3 Development Tools Click next...
Page 178: ...178 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools Click on Apply...
Page 180: ...180 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools d Start the GDB server...
Page 185: ...FX3 Programmers Manual Doc 001 64707 Rev C 185 FX3 Development Tools...
Page 186: ...186 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools...
Page 187: ...FX3 Programmers Manual Doc 001 64707 Rev C 187 FX3 Development Tools...
Page 188: ...188 FX3 Programmers Manual Doc 001 64707 Rev C FX3 Development Tools...
Page 192: ...192 FX3 Programmers Manual Doc 001 64707 Rev C GPIF II Designer...