Using USB MSC driver, is there a way to know when writing to a file is complete?
In usb_msc.c, function USB_Service_Bulk_Out(), there'a control on remaining transfer size
event_type = (uint_8)(msc_obj_ptr->transfer_remaining? USB_MSC_DEVICE_WRITE_REQUEST : USB_APP_DATA_RECEIVED);
But in my callback, usb_bulk_transaction_callback(), I receive multiple USB_MSC_DEVICE_WRITE_REQUEST, as expected, but never a USB_APP_DATA_RECEIVED, which I assume is set to indicate the end of writing. Maybe I didn't understand correctly this driver.
Can you help me?