Enum lpc55::secure_binary::command::BootCommand
source · [−]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
Fields
version: u32
CheckNonsecureFirmwareVersion
Fields
version: u32
Implementations
Trait Implementations
sourceimpl Clone for BootCommand
impl Clone for BootCommand
sourcefn clone(&self) -> BootCommand
fn clone(&self) -> BootCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BootCommand
impl Debug for BootCommand
sourceimpl<'de> Deserialize<'de> for BootCommand
impl<'de> Deserialize<'de> for BootCommand
sourcefn 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
sourceimpl PartialEq<BootCommand> for BootCommand
impl PartialEq<BootCommand> for BootCommand
sourcefn eq(&self, other: &BootCommand) -> bool
fn eq(&self, other: &BootCommand) -> bool
sourceimpl Serialize for BootCommand
impl Serialize for BootCommand
sourceimpl<'a> TryFrom<&'a SingleBootCommandDescription> for BootCommand
impl<'a> TryFrom<&'a SingleBootCommandDescription> for BootCommand
sourcefn try_from(cmd: &'a SingleBootCommandDescription) -> Result<BootCommand>
fn try_from(cmd: &'a SingleBootCommandDescription) -> Result<BootCommand>
Performs the conversion.
impl Eq for BootCommand
impl StructuralEq for BootCommand
impl StructuralPartialEq for BootCommand
Auto Trait Implementations
impl RefUnwindSafe for BootCommand
impl Send for BootCommand
impl Sync for BootCommand
impl Unpin for BootCommand
impl UnwindSafe for BootCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.