AnsweredAssumed Answered

USB MSC writing complete event

Question asked by mircopizzichini on Dec 4, 2014
Latest reply on Dec 10, 2014 by mircopizzichini



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?


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?