Trait Handler
pub trait Handler {
// Required method
fn enter_dfu(&mut self);
}Expand description
Handler trait for DFU runtime mode.
Implement this trait to handle entering DFU mode.
Required Methods§
fn enter_dfu(&mut self)
fn enter_dfu(&mut self)
Called when the device should enter DFU mode.
This is called after a valid detach sequence (detach request followed by USB reset within the timeout period). The implementation should mark the device for DFU mode and perform a system reset.