rt-thread/port/msc_device.c
int32_t tud_msc_read10_cb(uint8_t lun, uint32_t lba, uint32_t offset, void *buffer, uint32_t bufsize) {
    (void) lun;
    (void) offset;
    (void) bufsize;

    return (int32_t) rt_device_read(flash_device, (rt_off_t) lba, buffer, 1) * 4096;
}
// Callback invoked when received READ10 command.
// Copy disk's data to buffer (up to bufsize) and return number of copied bytes.
Callback invoked when received READ10 command.
Copy disk's data to buffer (up to bufsize) and return number of copied bytes.
Callback invoked when received READ10 command . Copy disk ' s data to buffer ( up to bufsize ) and return number of copied bytes .
int32_t tud_msc_read10_cb(uint8_t lun, uint32_t lba, uint32_t offset, void *buffer, uint32_t bufsize) {
    (void) lun;
    (void) offset;
    (void) bufsize;
    return (int32_t) rt_device_read(flash_device, (rt_off_t) lba, buffer, 1) * 4096;
}
int32_t tud_msc_read10_cb ( uint8_t lun , uint32_t lba , uint32_t offset , void * buffer , uint32_t bufsize ) { ( void ) lun ; ( void ) offset ; ( void ) bufsize ; return ( int32_t ) rt_device_read ( flash_device , ( rt_off_t ) lba , buffer , 1 ) * 4096 ; }
Callback invoked when received READ10 command.
Callback invoked when received READ10 command .