21 bool (*
read)(uint32_t lba, uint32_t offset,
void* buf, uint32_t len);
22 bool (*
write)(uint32_t lba, uint32_t offset,
const void* buf, uint32_t len);
Block-device backend for the single USB Mass Storage LUN.
uint64_t(* total_bytes)(void)
uint16_t(* block_size)(void)
void(* set_host_active)(bool active)
bool(* read)(uint32_t lba, uint32_t offset, void *buf, uint32_t len)
bool(* write)(uint32_t lba, uint32_t offset, const void *buf, uint32_t len)
void usb_msc_set_backend(const usb_msc_backend_t *backend)
Installs or removes the MSC block backend.