pub trait DfuMarker {
// Required method
fn mark_dfu(&mut self);
}
Expand description
Generic interface for a system that can signal to the bootloader that USB DFU mode is needed on the next boot.
By default this trait is implemented for BlockingFirmwareState<'d, STATE>
but you could also implement this generic
interface yourself instead in more complex situations. This could for instance be when you cannot hand ownership of a
BlockingFirmwareState
instance over directly to the DFU Control
instance and need to use a more complex mechanism.