[][src]Module arduino_mkrzero::usb::usb_device::class_prelude

Prelude for class implementors.

Structs

BosWriter

A writer for Binary Object Store descriptor.

ControlIn

Handle for a control IN transfer. When implementing a class, use the methods of this object to response to the transfer with either data or an error (STALL condition). To ignore the request and pass it on to the next class, simply don't call any method.

ControlOut

Handle for a control OUT transfer. When implementing a class, use the methods of this object to response to the transfer with an ACT or an error (STALL condition). To ignore the request and pass it on to the next class, simply don't call any method.

DescriptorWriter

A writer for USB descriptors.

EndpointAddress

Type-safe endpoint address.

InterfaceNumber

A handle for a USB interface that contains its number.

StringIndex

A handle for a USB string descriptor that contains its index.

UsbBusAllocator

Helper type used for UsbBus resource allocation and initialization.

Enums

EndpointType

USB endpoint transfer type. The values of this enum can be directly cast into u8 to get the transfer bmAttributes transfer type bits.

UsbError

A USB stack error.

Traits

UsbBus

A trait for device-specific USB peripherals. Implement this to add support for a new hardware platform.

UsbClass

A trait for implementing USB classes.

Type Definitions

EndpointIn

A device-to-host (IN) endpoint.

EndpointOut

A host-to-device (OUT) endpoint.