|
PebbleOS v4.47.0-1362-gd278268fe
|
Mass storage, Bulk-Only Transport with the SCSI transparent command set: the host reads and writes disks of the device as its own. More...
Data Structures | |
| struct | pbl_usb_msc_lun |
| A logical unit: a disk the host sees. More... | |
Macros | |
| #define | PBL_USB_MSC_LUN_DEFINE(_name, _disk, _read_only) |
| Define a logical unit of the function. | |
Mass storage, Bulk-Only Transport with the SCSI transparent command set: the host reads and writes disks of the device as its own.
The function has one interface and a bulk endpoint in each direction, numbered by the stack among the other functions'. Each disk is a logical unit the application defines with PBL_USB_MSC_LUN_DEFINE(), in the order of their names, removable media the host can eject. The disks are read and written on the system work queue, never from the controller's interrupt, through two buffers so that the bus moves one while the disk fills or empties the other.
| struct pbl_usb_msc_lun |
A logical unit: a disk the host sees.
| Data Fields | ||
|---|---|---|
| const struct pbl_disk * | disk | Disk. |
| bool | read_only | Whether the host may only read it, whatever the disk takes. |
| #define PBL_USB_MSC_LUN_DEFINE | ( | _name, | |
| _disk, | |||
| _read_only | |||
| ) |
Define a logical unit of the function.
Up to 16 logical units are supported, numbered in the order of their names.
| _name | Name of the logical unit. |
| _disk | Disk. |
| _read_only | Whether the host may only read it. |