pub fn new_state<'d, DFU: NorFlash, STATE: NorFlash, RST: Reset, const BLOCK_SIZE: usize>(
updater: BlockingFirmwareUpdater<'d, DFU, STATE>,
attrs: DfuAttributes,
reset: RST,
) -> State<'d, DFU, STATE, RST, BLOCK_SIZE>Expand description
Create a new DFU state instance.
This creates a DfuState with a FirmwareHandler inside, ready to be
used with usb_dfu.