Versions Compared

Key

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

Description

This function takes an already initialized USB device list (USBDeviceList)

...

and previously selected TE USB FX2 device selected by TE_USB_FX2_Open() and sends a command (API command) to the USB FX2 microcontroller of the selected device (TE USB FX2 module)

This function is normally used to send 64 bytes packets to the USB endpoint EP1 (0x01).

This function is also able to obtain the response of the USB FX2 microcontroller,  MicroBlaze embedded processor or SPI Flash through the USB FX2 microcontroller endpoint EP1 (0x81).

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:

  • send command to EZ-USB FX2 microcontroller (for example, reset the FPGA or power on/off the FPGA);
  • interrogate registers;
  • dipatching of API Commands to MicroBlaze and SPI Flash;
  • read/write from MicroBlaze I2C bus address;
  • read/write from SPI Flash

...

  • .

Use of the code

Declaration

...