pub struct OwnerRescueConfig {
pub header: TlvHeader,
pub protocol: RescueProtocol,
pub trigger: RescueTrigger,
pub trigger_index: u8,
pub gpio_pull_en: bool,
pub gpio_value: bool,
pub _enter_on_failure: bool,
pub _timeout_enable: bool,
pub _timeout: u8,
pub start: u16,
pub size: u16,
pub command_allow: Vec<CommandTag>,
}Expand description
Describes the configuration of the rescue feature of the ROM_EXT.
Fields§
§header: TlvHeaderHeader identifying this struct.
protocol: RescueProtocolThe type of rescue protocol to use (ie: Xmodem).
trigger: RescueTriggerThe rescue triggering mechanism (UartBreak, Strapping or Gpio).
trigger_index: u8The index of the trigger (e.g. Strapping combo or GPIO pin number).
gpio_pull_en: boolWhether or not to enable the GPIO pull resistor (only if trigger is GPIO).
gpio_value: boolThe GPIO trigger value (only if trigger is GPIO).
_enter_on_failure: boolEnter rescue mode if boot fails (not implemented yet).
_timeout_enable: boolEnable a timeout (rescue exits after a period of no activity; not implemented yet).
_timeout: u8The timeout in seconds (not implemented yet).
start: u16The start of the rescue flash region (in pages).
size: u16The size of the rescue flash region (in pages).
command_allow: Vec<CommandTag>An allow-list of commands permitted to be executed by the rescue module.
Implementations§
Trait Implementations§
Source§impl Annotate for OwnerRescueConfig
impl Annotate for OwnerRescueConfig
Source§impl Debug for OwnerRescueConfig
impl Debug for OwnerRescueConfig
Source§impl Default for OwnerRescueConfig
impl Default for OwnerRescueConfig
Source§impl<'de> Deserialize<'de> for OwnerRescueConfig
impl<'de> Deserialize<'de> for OwnerRescueConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OwnerRescueConfig
impl RefUnwindSafe for OwnerRescueConfig
impl Send for OwnerRescueConfig
impl Sync for OwnerRescueConfig
impl Unpin for OwnerRescueConfig
impl UnwindSafe for OwnerRescueConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more