...
Task 1 is realized implemented (carried out) by
Code Block | ||||
---|---|---|---|---|
| ||||
if(usb_setup_packet_avail()) usb_handle_setup_packet(); |
Task 2 is realized 2 is implemented (carried out) by
Code Block | ||||
---|---|---|---|---|
| ||||
void ep1_pool(void) |
Task 3 is realized implemented (carried out) by
Code Block | ||||
---|---|---|---|---|
| ||||
void int_pin_pool(void) |
...
This process is realized process is implemented (carried out) by function ep1_pool().
This function pull 64 bytes from EP1IN EP1OUTBUF FIFO; in this FIFO , the FX2_API_Commands (MicroBlaze Commands and SPI Flash Commnads) from USB connection with are stored possible sent by host computer's SW through USB connection.
EP1OUTBUF[0] and EP1OUTBUF[1:63] are written by host computer's software
or or libusb(x) C libusb_bulk_transfer(usbDeviceHandle, LIBUSB_ENDPOINT_OUT | 1, command, x, &actual_length, 1000) used with command[0] =...
The host computer's SW should use a polling procedure to retrieve the I2C bytes read (and stored) by FX2 microcontroller (the pull response to host computer's pull is realized pull is implemented (carried out) by task2: ep1_pool())
...