atsamd51p::nvmctrl::ctrlb

Enum Cmdselect

Source
#[repr(u8)]
pub enum Cmdselect {
Show 24 variants Ep = 0, Eb = 1, Wp = 3, Wqw = 4, Swrst = 16, Lr = 17, Ur = 18, Sprm = 19, Cprm = 20, Pbc = 21, Ssb = 22, Bkswrst = 23, Celck = 24, Ceulck = 25, Sbpdis = 26, Cbpdis = 27, Asees0 = 48, Asees1 = 49, Seeraloc = 50, Seeflush = 51, Lsee = 52, Usee = 53, Lseer = 54, Useer = 55,
}
Expand description

Command

Value on reset: 0

Variants§

§

Ep = 0

0: Erase Page - Only supported in the USER and AUX pages.

§

Eb = 1

1: Erase Block - Erases the block addressed by the ADDR register, not supported in the user page

§

Wp = 3

3: Write Page - Writes the contents of the page buffer to the page addressed by the ADDR register, not supported in the user page

§

Wqw = 4

4: Write Quad Word - Writes a 128-bit word at the location addressed by the ADDR register.

§

Swrst = 16

16: Software Reset - Power-Cycle the NVM memory and replay the device automatic calibration procedure and resets the module configuration registers

§

Lr = 17

17: Lock Region - Locks the region containing the address location in the ADDR register.

§

Ur = 18

18: Unlock Region - Unlocks the region containing the address location in the ADDR register.

§

Sprm = 19

19: Sets the power reduction mode.

§

Cprm = 20

20: Clears the power reduction mode.

§

Pbc = 21

21: Page Buffer Clear - Clears the page buffer.

§

Ssb = 22

22: Set Security Bit

§

Bkswrst = 23

23: Bank swap and system reset, if SMEE is used also reallocate SMEE data into the opposite BANK

§

Celck = 24

24: Chip Erase Lock - DSU.CE command is not available

§

Ceulck = 25

25: Chip Erase Unlock - DSU.CE command is available

§

Sbpdis = 26

26: Sets STATUS.BPDIS, Boot loader protection is discarded until CBPDIS is issued or next start-up sequence

§

Cbpdis = 27

27: Clears STATUS.BPDIS, Boot loader protection is not discarded

§

Asees0 = 48

48: Activate SmartEEPROM Sector 0, deactivate Sector 1

§

Asees1 = 49

49: Activate SmartEEPROM Sector 1, deactivate Sector 0

§

Seeraloc = 50

50: Starts SmartEEPROM sector reallocation algorithm

§

Seeflush = 51

51: Flush SMEE data when in buffered mode

§

Lsee = 52

52: Lock access to SmartEEPROM data from any mean

§

Usee = 53

53: Unlock access to SmartEEPROM data

§

Lseer = 54

54: Lock access to the SmartEEPROM Register Address Space (above 64KB)

§

Useer = 55

55: Unlock access to the SmartEEPROM Register Address Space (above 64KB)

Trait Implementations§

Source§

impl Clone for Cmdselect

Source§

fn clone(&self) -> Cmdselect

Returns a copy 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 Cmdselect

Source§

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

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

impl FieldSpec for Cmdselect

Source§

type Ux = u8

Raw field type (u8, u16, u32, …).
Source§

impl From<Cmdselect> for u8

Source§

fn from(variant: Cmdselect) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Cmdselect

Source§

fn eq(&self, other: &Cmdselect) -> 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 Cmdselect

Source§

impl Eq for Cmdselect

Source§

impl IsEnum for Cmdselect

Source§

impl StructuralPartialEq for Cmdselect

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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, 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.