8#ifndef CARDSIGHT_USB_MASS_STORAGE_H
9#define CARDSIGHT_USB_MASS_STORAGE_H
void usb_mass_storage_get_stats(struct usb_mass_storage_stats *stats)
Copy the transfer counters out.
int usb_mass_storage_stop(void)
Stop the device stack and release the exported block device.
int usb_mass_storage_start_device(const char *device_name)
Start the device stack and export a block device.
bool usb_mass_storage_running(void)
Whether the stack runs and a disk is exported.
int usb_mass_storage_last_error(void)
The last error recorded by the mass storage stack.
bool usb_mass_storage_configured(void)
Whether the host configured the interface (it enumerated us).
void usb_mass_storage_force_read_only(bool read_only)
Export read-only whatever the device says.
Transfer counters of the exported disk.
Definition mass_storage.h:17
uint64_t bytes_read
Definition mass_storage.h:18
uint64_t bytes_written
Definition mass_storage.h:19