embassy-usb-dfu

Crates

git

Versions

application

Flavors

Trait DfuMarker

Source
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.

Required Methods§

Source

fn mark_dfu(&mut self)

Signal to the bootloader that DFU mode should be used on the next boot.

Implementations on Foreign Types§

Source§

impl<'d, STATE: NorFlash> DfuMarker for BlockingFirmwareState<'d, STATE>

Source§

fn mark_dfu(&mut self)

Implementors§