pub enum BootCommand {
Nop,
Tag {
last: bool,
tag: u32,
flags: u32,
cipher_blocks: u32,
},
Load {
address: u32,
data: Vec<u8>,
},
Fill {
address: u32,
bytes: u32,
pattern: u32,
},
EraseAll,
EraseRegion {
address: u32,
bytes: u32,
},
CheckSecureFirmwareVersion {
version: u32,
},
CheckNonsecureFirmwareVersion {
version: u32,
},
}Variants§
Nop
Tag
Load
Fill
See ELFTOSB document for explanations of what is supposed to happen when address is not on a word boundary.
In any case, if a byte is supposed to be repeated, it must be replicated
four times in the pattern, e.g. “fill with 0xF1” => pattern = 0xf1f1_f1f1.
EraseAll
EraseRegion
CheckSecureFirmwareVersion
CheckNonsecureFirmwareVersion
Implementations§
Trait Implementations§
Source§impl Clone for BootCommand
impl Clone for BootCommand
Source§fn clone(&self) -> BootCommand
fn clone(&self) -> BootCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootCommand
impl Debug for BootCommand
Source§impl<'de> Deserialize<'de> for BootCommand
impl<'de> Deserialize<'de> for BootCommand
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
Source§impl PartialEq for BootCommand
impl PartialEq for BootCommand
Source§impl Serialize for BootCommand
impl Serialize for BootCommand
Source§impl<'a> TryFrom<&'a SingleBootCommandDescription> for BootCommand
impl<'a> TryFrom<&'a SingleBootCommandDescription> for BootCommand
Source§fn try_from(cmd: &'a SingleBootCommandDescription) -> Result<BootCommand>
fn try_from(cmd: &'a SingleBootCommandDescription) -> Result<BootCommand>
Performs the conversion.
impl Eq for BootCommand
impl StructuralPartialEq for BootCommand
Auto Trait Implementations§
impl Freeze for BootCommand
impl RefUnwindSafe for BootCommand
impl Send for BootCommand
impl Sync for BootCommand
impl Unpin for BootCommand
impl UnwindSafe for BootCommand
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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