diff options
| author | hathach <[email protected]> | 2025-07-01 21:52:57 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-07-01 22:17:38 +0700 |
| commit | c96cc4369f1b97efe85575f3e5633e38598e9fc2 (patch) | |
| tree | d1c4c18b039f89fecbe9bb69442ef3a32357aca6 /src/class/msc/msc_device.h | |
| parent | 216a35e59a095e6ccb70f7c9bd4f7bc737f44140 (diff) | |
defer proc_async_io_done()
Diffstat (limited to 'src/class/msc/msc_device.h')
| -rw-r--r-- | src/class/msc/msc_device.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/class/msc/msc_device.h b/src/class/msc/msc_device.h index 2ad31c245..f2ea256b4 100644 --- a/src/class/msc/msc_device.h +++ b/src/class/msc/msc_device.h @@ -79,12 +79,11 @@ bool tud_msc_async_io_done(int32_t bytes_io, bool in_isr); - offset is only needed if CFG_TUD_MSC_EP_BUFSIZE is smaller than BLOCK_SIZE. - Application fill the buffer (up to bufsize) with address contents and return number of bytes read or status. - 0 < ret < bufsize: These bytes are transferred first and callback will be invoked again for remaining data. - - ret == TUD_MSC_RET_BUSY - Application is buys e.g disk I/O not ready. - Callback will be invoked again with the same parameters later on. - - ret == TUD_MSC_RET_ERROR + - TUD_MSC_RET_BUSY + Application is buys e.g disk I/O not ready. Callback will be invoked again with the same parameters later on. + - TUD_MSC_RET_ERROR error such as invalid address. This request will be STALLed and scsi command will be failed - - ret == TUD_MSC_RET_ASYNC + - TUD_MSC_RET_ASYNC Data I/O will be done asynchronously in a background task. Application should return immediately. tud_msc_async_io_done() must be called once IO/ is done to signal completion. */ |
