Classes | |
class | LogicalUnit |
A physical device instance managed by an MSC interface. More... | |
class | Device |
struct | Inquiry |
Information provided by SCSI inquiry operation. More... | |
class | HostDevice |
A USB mass storage device supports one or more logical units, each of which is a physical storage device. More... | |
Typedefs | |
using | MountCallback = Delegate< HostDevice *(const HostInterface::Instance &inst)> |
Application callback to notify connection of a new device. More... | |
using | UnmountCallback = Delegate< void(HostDevice &dev)> |
Application callback to notify disconnection of a device. More... | |
Functions | |
void | onMount (MountCallback callback) |
Application should call this method to receive device connection notifications. More... | |
void | onUnmount (UnmountCallback callback) |
Application should call this method to receive device disconnection notifications. More... | |
Typedef Documentation
◆ MountCallback
using USB::MSC::MountCallback = typedef Delegate<HostDevice*(const HostInterface::Instance& inst)> |
Application callback to notify connection of a new device.
- Parameters
-
inst TinyUSB device instance
- Return values
-
HostDevice* Application returns pointer to implementation, or nullptr to ignore this device
◆ UnmountCallback
using USB::MSC::UnmountCallback = typedef Delegate<void(HostDevice& dev)> |
Application callback to notify disconnection of a device.
- Parameters
-
dev The device which has been disconnected
Function Documentation
◆ onMount()
void USB::MSC::onMount | ( | MountCallback | callback | ) |
Application should call this method to receive device connection notifications.
- Parameters
-
callback
◆ onUnmount()
void USB::MSC::onUnmount | ( | UnmountCallback | callback | ) |
Application should call this method to receive device disconnection notifications.
- Parameters
-
callback