I have implemented vendor command in order to control the data from the fx2lp to usb.
I have interfaced image sensor with fx2lp in slavefifo configuration.please find the below code.
#define no_data_control 0xb3
BOOL DR_VendorCmnd( void )
So,depending on vendor command recieved by the host,fx2lp needs to control the data flow.
if data_control command recieved,i have to send data from fx2lp to usb.
if no_data_control command recieved,i dont want to send data from fx2lp to usb.is there any logic to implements this?
Based on my understanding, you can initialize the FIFO in Auto mode in TD_Init() and switch to manual mode in the no_data_control command and skip the packets based on your requirement. Please follow up onfx2lp in vendor commands.