Checking the speed of FX2

Question: How can the firmware check whether the FX2 has enumerated at high-speed or full-speed?

 

Answer:

The firmware can use the macro EZUSB_HIGHSPEED() to check whether the FX2 enumerated at full-speed or high-speed. Usage of this is shown in the bulkloop firmware example.