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

    return (int32_t) rt_device_write(flash_device, (rt_off_t) lba, buffer, 1) * 4096;
}
// Callback invoked when received WRITE10 command.
// Process data in buffer to disk's storage and return number of written bytes
Callback invoked when received WRITE10 command.
Process data in buffer to disk's storage and return number of written bytes
Callback invoked when received WRITE10 command . Process data in buffer to disk ' s storage and return number of written bytes
int32_t tud_msc_write10_cb(uint8_t lun, uint32_t lba, uint32_t offset, uint8_t *buffer, uint32_t bufsize) {
    (void) lun;
    (void) offset;
    (void) bufsize;
    return (int32_t) rt_device_write(flash_device, (rt_off_t) lba, buffer, 1) * 4096;
}
int32_t tud_msc_write10_cb ( uint8_t lun , uint32_t lba , uint32_t offset , uint8_t * buffer , uint32_t bufsize ) { ( void ) lun ; ( void ) offset ; ( void ) bufsize ; return ( int32_t ) rt_device_write ( flash_device , ( rt_off_t ) lba , buffer , 1 ) * 4096 ; }
Callback invoked when received WRITE10 command.
Callback invoked when received WRITE10 command .