Versions Compared

Key

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

These commands differ from USB FX2 API commands because they are executed by the MicroBlaze and shall be sent with the I2C_WRITE USB FX2 API command; more precisely, after it in the Command byte array. I2C_WRITE USB FX2 API command (with the Commmand byte array) is itself a parameter of USB FX2 API function TE_USB_FX2_SendCommand().
The byte array shall be properly initialized using instructions similar to the ones listed below:
Command[0] = I2C_WRITE;
Command[1] = MB_I2C_ADRESS;
Command[2] = I2C_BYTES;
Command[3] = 0;
Command[4] = 0;
Command[5] = 0;
Command[6] = Command2MB;
Command2MB it is one of the commands listed in Table 2the table below. This command writes data (from 1 to 32 bytes) to the requested I2C address.

...