5 Replies Latest reply on Nov 2, 2020 10:21 PM by TaMa_4718096

    PSoC5LP:How to erase the data set in the USBFS in-endpoint ?




      I use LoadInEP() to set the send data to the in-endpoint as shown below.


           if(USBFS_GetEPState(IN_EP) == USBFS_IN_BUFFER_EMPTY)
                USBFS_LoadInEP(IN_EP, tramsmit_data, 64);


      I want to set another data, but I can't set it unless the host reads it.

      If the host doesn't read for a period of time, I want to erase the previous data, what should I do ?