Skip to main content

BootCtl

Trait BootCtl 

Source
pub trait BootCtl {
    // Required methods
    fn is_boot_requested(&self) -> bool;
    fn system_reset(&mut self, mode: BootMode) -> !;
}
Expand description

Trait for system boot control.

Required Methods§

Source

fn is_boot_requested(&self) -> bool

Returns true if the bootloader was explicitly requested (e.g. via boot mode register).

Source

fn system_reset(&mut self, mode: BootMode) -> !

Reset the system into the specified boot mode.

Implementors§