Struct usbd_dfu::class::DFUClass [−][src]
Expand description
DFU protocol USB class implementation for usb-device library.
Implementations
Creates a new DFUClass with the provided UsbBus and DFUMemIO
This function may be called just after DFUClass::new() to
set DFU error state to “Device detected unexpected power on reset”
instead of the usual dfuIdle.
This function may be called just after DFUClass::new() to
set DFU error state to “Device’s firmware is corrupt. It cannot return to run-time (non-DFU) operations”
instead of the usual dfuIdle.
Return current Address Pointer value.
Trait Implementations
Called when a GET_DESCRIPTOR request is received for a configuration descriptor. When
called, the implementation should write its interface, endpoint and any extra class
descriptors into writer. The configuration descriptor itself will be written by
UsbDevice and shouldn’t be written by classes. Read more
Gets a class-specific string descriptor. Read more
Called when a control request is received with direction DeviceToHost. Read more
Called when a control request is received with direction HostToDevice. Read more
Called when endpoint with address addr has received a SETUP packet. Implementing this
shouldn’t be necessary in most cases, but is provided for completeness’ sake. Read more
Called when endpoint with address addr has received data (OUT packet). Read more
Called when endpoint with address addr has completed transmitting data (IN packet). Read more