Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document describes the SW API supported by standard Trenz Electronic FPGA modules (TE USB FX2 FPGA module) equipped with Cypress EZ-USB FX2 microcontroller (currently: TE0300, TE0320 and TE0630).

TE USB FX2 module is able to communicate with host computer's USB using

  • SW C++ API (TE_USB_FX2_CyAPI.dll) and
  • TE USB API Commands.
Info

In order to provide a user interface for driver functions, dynamic link library "TE_USB_FX2_CyAPI.dll" and "CyAPI.lib" have been used.

C++ applications (running on host computer) use directly TE_USB_FX2_CyAPI.dll based on CyAPI.lib.

To avoid copying back and forth large amount of data between these two DLLs, data is passed by reference and not by value.

API Functions descriptions

...

The third set of API is a single API function: TE_USB_FX2_SendCommand(). This function is able to send the API commands to the EZ-USB FX2 microcontroller endpoint EP1 and receive the response binary code using endpoint EP1.

Using API command, TE_USB_FX2_SendCommand() is able to communicate with:

  • the EZ-USB FX2 microcontroller endpoint EP1 (link)
  • the MicroBlaze implemented on the FPGA (link)
  • the SPI Flash (link).

The connection with EP1 command is used to:

...