Embassy
embassy-usb-dfu

Crates

git

Versions

application

Flavors

Trait embassy_usb_dfu::Reset

source ·
pub trait Reset {
    // Required method
    fn sys_reset() -> !;
}
Expand description

Provides a platform-agnostic interface for initiating a system reset.

This crate exposes ResetImmediate when compiled with cortex-m or esp32c3 support, which immediately issues a reset request without interfacing with any other peripherals.

If alternate behaviour is desired, a custom implementation of Reset can be provided as a type argument to the usb_dfu function.

Required Methods§

source

fn sys_reset() -> !

Reset the device.

Object Safety§

This trait is not object safe.

Implementors§