nxp-pac

Crates

git

Versions

mcxa577

Flavors

SgiCtrl2

Struct SgiCtrl2 

Source
#[repr(transparent)]
pub struct SgiCtrl2(pub u32);
Expand description

SGI Control register 2

Tuple Fields§

§0: u32

Implementations§

Source§

impl SgiCtrl2

Source

pub const fn flush(&self) -> Flush

Start Full SGI Flush

Source

pub const fn set_flush(&mut self, val: Flush)

Start Full SGI Flush

Source

pub const fn key_flush(&self) -> KeyFlush

Start KEY register-bank Flush

Source

pub const fn set_key_flush(&mut self, val: KeyFlush)

Start KEY register-bank Flush

Source

pub const fn datin_flush(&self) -> DatinFlush

Start DATIN register-bank Flush

Source

pub const fn set_datin_flush(&mut self, val: DatinFlush)

Start DATIN register-bank Flush

Source

pub const fn incr(&self) -> bool

Increment(Triggered by SFR write)

Source

pub const fn set_incr(&mut self, val: bool)

Increment(Triggered by SFR write)

Source

pub const fn xorwr(&self) -> bool

Write-XOR control

Source

pub const fn set_xorwr(&mut self, val: bool)

Write-XOR control

Source

pub const fn flushwr(&self) -> bool

Flush Write control

Source

pub const fn set_flushwr(&mut self, val: bool)

Flush Write control

Source

pub const fn incr_cin(&self) -> IncrCin

Increment Carry-In control

Source

pub const fn set_incr_cin(&mut self, val: IncrCin)

Increment Carry-In control

Source

pub const fn smasken(&self) -> bool

SFRMASK Enable

Source

pub const fn set_smasken(&mut self, val: bool)

SFRMASK Enable

Source

pub const fn smaskstep(&self) -> Smaskstep

SFRSEED increment control

Source

pub const fn set_smaskstep(&mut self, val: Smaskstep)

SFRSEED increment control

Source

pub const fn smasksw(&self) -> Smasksw

SFRMASK MASK control

Source

pub const fn set_smasksw(&mut self, val: Smasksw)

SFRMASK MASK control

Source

pub const fn movem(&self) -> u8

4-bit optional input for MOVEM feature

Source

pub const fn set_movem(&mut self, val: u8)

4-bit optional input for MOVEM feature

Source

pub const fn keyres(&self) -> u8

Selects key registers to be updated when rkey=1

Source

pub const fn set_keyres(&mut self, val: u8)

Selects key registers to be updated when rkey=1

Source

pub const fn rkey(&self) -> Rkey

Crypto result location

Source

pub const fn set_rkey(&mut self, val: Rkey)

Crypto result location

Source

pub const fn bytes_order(&self) -> BytesOrder

Byte order of regbank read/write data

Source

pub const fn set_bytes_order(&mut self, val: BytesOrder)

Byte order of regbank read/write data

Source

pub const fn gcm_inxor(&self) -> bool

GCM INXOR

Source

pub const fn set_gcm_inxor(&mut self, val: bool)

GCM INXOR

Trait Implementations§

Source§

impl Clone for SgiCtrl2

Source§

fn clone(&self) -> SgiCtrl2

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 SgiCtrl2

Source§

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

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

impl Default for SgiCtrl2

Source§

fn default() -> SgiCtrl2

Returns the “default value” for a type. Read more
Source§

impl PartialEq for SgiCtrl2

Source§

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

Source§

impl Eq for SgiCtrl2

Source§

impl StructuralPartialEq for SgiCtrl2

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, 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.