BULKTEST Test Description
----------------------------
This directory contains a bulk loopback test that exercises all of
the EZ-USB bulk endpoints. This test consists of a windows application,
device firmware for performing bulk loopback, and the EZ-USB General
Purpose Driver.
bulktest.exe is the windows program that runs the test. This app talks to
the EZ-USB GPD which talks to the EZ-USB peripheral that is running the
bulktest firmware. The test writes data (an incrementing byte pattern)
to all 7 OUT bulk endpoints in order
and then reads data from the corresponding 7 IN bulk endpoints. The IN data is
compared to the OUT data. If they don't match, the test will abort and an error
message will appear. For every OUT transfer, the packet size of the transfer is
incremented by 1. The packetsize is incremented from 1 to 64 (the max packet
size for bulk endpoints) repeatedly throughout the test.
Test parameters:
* Loop Count - this determines how many times to cycle through all of the endpoints.
A loopcount of 1 will result in 7 OUTs and 7 INs.
* Starting Packet Size - Is the packet size to use for the first OUT transfer. This
parameter is incremented for every OUT transfer.
* Starting Pattern - Is the byte to start incrementing for the pattern data.
The bulktest firmware is based on the firmware frameworks. It is interrupt driven
by OUT interrupts. Whenver an OUT interrupt occurs, the OUT data is copied to the
corresponding IN endpoint. Their is no interrupt handling for IN transfers, and the
firmware assumes that the IN endpoint is always available when an OUT arrives.