CommandTagDiscriminants

Enum CommandTagDiscriminants 

Source
#[repr(u8)]
pub enum CommandTagDiscriminants {
Show 30 variants NoCommand = 0, FlashEraseAll = 1, FlashEraseRegion = 2, ReadMemory = 3, WriteMemory = 4, FillMemory = 5, FlashSecurityDisable = 6, GetProperty = 7, ReceiveSBFile = 8, Execute = 9, Call = 10, Reset = 11, SetProperty = 12, FlashEraseAllUnsecure = 13, FlashProgramOnce = 14, FlashReadOnce = 15, FlashReadResource = 16, ConfigureMemory = 17, ReliableUpdate = 18, GenerateKeyBlob = 19, FuseProgram = 20, KeyProvisioning = 21, TrustProvisioning = 22, FuseRead = 23, UpdateLifeCycle = 24, EleMessage = 25, EL2GO = 32, ConfigureI2C = 193, ConfigureSPI = 194, ConfigureCAN = 195,
}

Variants§

§

NoCommand = 0

Used to load flashloader into the memory

§

FlashEraseAll = 1

Erase all flash memory sectors

§

FlashEraseRegion = 2

Erase specific flash memory region

§

ReadMemory = 3

Read data from memory

§

WriteMemory = 4

Write data to memory

§

FillMemory = 5

Fill memory region with pattern

§

FlashSecurityDisable = 6

Disable flash read/write protection

§

GetProperty = 7

Get device property value

§

ReceiveSBFile = 8

Process Secure Binary (SB) file

§

Execute = 9

Execute code at specified address

§

Call = 10

Call function

§

Reset = 11

Reset the MCU

§

SetProperty = 12

Set device property value

§

FlashEraseAllUnsecure = 13

Erase all flash and remove security

§

FlashProgramOnce = 14

Program One-Time Programmable (OTP) memory

§

FlashReadOnce = 15

Read One-Time Programmable (OTP) memory

§

FlashReadResource = 16

Read flash resource information

§

ConfigureMemory = 17

Configure external memory interface

§

ReliableUpdate = 18

Perform reliable update operation

§

GenerateKeyBlob = 19

Generate encrypted key blob

§

FuseProgram = 20

Program device fuses

§

KeyProvisioning = 21

Key provisioning operations

§

TrustProvisioning = 22

Trust provisioning operations

§

FuseRead = 23

Read device fuses

§

UpdateLifeCycle = 24

Update device lifecycle state

§

EleMessage = 25

Send EdgeLock Enclave message

§

EL2GO = 32

EdgeLock 2GO provisioning operations

§

ConfigureI2C = 193

Configure I2C interface parameters

§

ConfigureSPI = 194

Configure SPI interface parameters

§

ConfigureCAN = 195

Configure CAN interface parameters

Trait Implementations§

Source§

impl Clone for CommandTagDiscriminants

Source§

fn clone(&self) -> CommandTagDiscriminants

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CommandTagDiscriminants

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, '_enum> From<&'_enum CommandTag<'a>> for CommandTagDiscriminants

Source§

fn from(val: &'_enum CommandTag<'a>) -> CommandTagDiscriminants

Converts to this type from the input type.
Source§

impl<'a> From<CommandTag<'a>> for CommandTagDiscriminants

Source§

fn from(val: CommandTag<'a>) -> CommandTagDiscriminants

Converts to this type from the input type.
Source§

impl From<CommandTagDiscriminants> for u8

Source§

fn from(value: CommandTagDiscriminants) -> Self

Convert command tag discriminant to its numeric representation.

Source§

impl IntoEnumIterator for CommandTagDiscriminants

Source§

impl PartialEq for CommandTagDiscriminants

Source§

fn eq(&self, other: &CommandTagDiscriminants) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for CommandTagDiscriminants

Source§

impl Eq for CommandTagDiscriminants

Source§

impl StructuralPartialEq for CommandTagDiscriminants

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.