Bulk Tansfers Using FX2/FX2LP
Anonymous
Not applicable
Mar 28, 2011
03:11 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Mar 28, 2011
03:11 AM
Question: Is there any reason for the IOCTL_EZUSB_BULK_READ, used in the ezusb.sys general purpose driver to transfer blocks less than or equal to 64K each time? If I want to transfer, say, 2 MB in just one call, what changes would I have to make in the driver source code (ezusbsys.c) in order to make it work?
Answer:
Search for the string "MaximumTransferSize" to find the two locations in "ezusbsys.c" where this value is defined. Cypress chose 64K as a convenient multiple of the maximum size of a bulk transfer data packet (512 bytes) as defined in the USB 2.0 Specification. The USB host stack may also limit each URB to be only 64K long.
Rate this article:
Contributors
-
This widget could not be displayed.Anonymous