MSC/HostDevice.h
Go to the documentation of this file.
165 std::unique_ptr<LogicalUnit> units[MAX_LUN]{};
bool raw_sector_erase_range(storage_size_t address, size_t size) override
Definition: Libraries/USB/src/USB/MSC/Device.h:25
bool raw_sector_read(storage_size_t address, void *dst, size_t size) override
void onUnmount(UnmountCallback callback)
Application should call this method to receive device disconnection notifications.
storage_size_t getSectorCount(uint8_t lun) const
Get the number of blocks/sectors for a unit.
Definition: MSC/HostDevice.h:129
LogicalUnit(HostDevice &device, uint8_t lun)
size_t getSectorSize(uint8_t lun) const
Get the declared block/sector size for a unit.
Definition: MSC/HostDevice.h:119
A physical device instance managed by an MSC interface.
Definition: Libraries/USB/src/USB/MSC/Device.h:27
Base class for sector-addressable (block) devices.
Definition: BlockDevice.h:33
Type
Storage type.
Definition: Components/Storage/src/include/Storage/Device.h:42
A USB mass storage device supports one or more logical units, each of which is a physical storage dev...
Definition: MSC/HostDevice.h:82
bool raw_sector_write(storage_size_t address, const void *src, size_t size) override
Storage::Device * device
Definition: Libraries/USB/src/USB/MSC/Device.h:28
bool raw_sync() override
Type getType() const override
Obtain device type.
Definition: MSC/HostDevice.h:37
void onMount(MountCallback callback)
Application should call this method to receive device connection notifications.
LogicalUnit * operator[](unsigned lun) const
Access a specific logical unit by number.
Definition: MSC/HostDevice.h:109
1.8.13