1 Reply Latest reply on Sep 24, 2018 4:37 AM by SananyaM_56

    fx2lp_vendor_specific_commands

    gean_3054931

      Hello,

      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 Data_control    0xb2

      #define no_data_control     0xb3

       

      BOOL DR_VendorCmnd( void )

      {

        switch(SETUPDAT[1])

        {

        case Data_control:

       

        break;

       

        case no_data_control:

       

        break;

        }

        return(FALSE);

      }

       

      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?

       

       

      regards,

      geetha.