nxp-pac

Crates

git

Versions

mcxa566

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) -> bool

Start Full SGI Flush. Raw bit values: false (0) = NoEffect: Clr has no effect.; true (1) = Flush: Set to start flush.

Source

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

Start Full SGI Flush. Raw bit values: false (0) = NoEffect: Clr has no effect.; true (1) = Flush: Set to start flush.

Source

pub const fn key_flush(&self) -> bool

Start KEY register-bank Flush. Raw bit values: false (0) = NoEffect: Clr has no effect.; true (1) = Flush: Set to start flush.

Source

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

Start KEY register-bank Flush. Raw bit values: false (0) = NoEffect: Clr has no effect.; true (1) = Flush: Set to start flush.

Source

pub const fn datin_flush(&self) -> bool

Start DATIN register-bank Flush. Raw bit values: false (0) = NoEffect: Clr has no effect.; true (1) = Flush: Set to start flush.

Source

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

Start DATIN register-bank Flush. Raw bit values: false (0) = NoEffect: Clr has no effect.; true (1) = Flush: Set to start 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) -> bool

Increment Carry-In control. Raw bit values: false (0) = IncrOne: Carry-In for INCR is 1.; true (1) = IncrPrevious: Carry-In for INCR is overflow from previous INCR operation.

Source

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

Increment Carry-In control. Raw bit values: false (0) = IncrOne: Carry-In for INCR is 1.; true (1) = IncrPrevious: Carry-In for INCR is overflow from previous INCR operation.

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) -> bool

SFRSEED increment control. Raw bit values: false (0) = Regbank: SFRSEED increments every regbank access.; true (1) = RegbankAndPlus: SFRSEED increments every regbank access PLUS when SFRSEED in read.

Source

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

SFRSEED increment control. Raw bit values: false (0) = Regbank: SFRSEED increments every regbank access.; true (1) = RegbankAndPlus: SFRSEED increments every regbank access PLUS when SFRSEED in read.

Source

pub const fn smasksw(&self) -> bool

SFRMASK MASK control. Raw bit values: false (0) = Hw: SFR MASK output directly controlled by HW mask generator.; true (1) = Sw: SFR MASK output directly controlled by SW.

Source

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

SFRMASK MASK control. Raw bit values: false (0) = Hw: SFR MASK output directly controlled by HW mask generator.; true (1) = Sw: SFR MASK output directly controlled by SW.

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) -> bool

Crypto result location. Raw bit values: false (0) = Datout: DATOUT register bank.; true (1) = Key: KEY register bank.

Source

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

Crypto result location. Raw bit values: false (0) = Datout: DATOUT register bank.; true (1) = Key: KEY register bank.

Source

pub const fn bytes_order(&self) -> bool

Byte order of regbank read/write data. Raw bit values: false (0) = NormalOrder: Normal.; true (1) = SwappedOrder: Swapped.

Source

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

Byte order of regbank read/write data. Raw bit values: false (0) = NormalOrder: Normal.; true (1) = SwappedOrder: Swapped.

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