nxp-pac

Crates

git

Versions

mcxa256

Flavors

SgiConfig

Struct SgiConfig 

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

SHA Configuration Reg

Tuple Fields§

§0: u32

Implementations§

Source§

impl SgiConfig

Source

pub const fn row(&self) -> bool

SGI Diversified for ‘ROW’

Source

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

SGI Diversified for ‘ROW’

Source

pub const fn china(&self) -> bool

SGI Diversified for ‘CHINA’

Source

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

SGI Diversified for ‘CHINA’

Source

pub const fn cc(&self) -> bool

SGI Diversified for ‘CC’

Source

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

SGI Diversified for ‘CC’

Source

pub const fn has_aes(&self) -> bool

HAS AES

Source

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

HAS AES

Source

pub const fn has_des(&self) -> bool

HAS DES

Source

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

HAS DES

Source

pub const fn has_sha(&self) -> bool

HAS SHA

Source

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

HAS SHA

Source

pub const fn has_movem(&self) -> bool

HAS MOVEM

Source

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

HAS MOVEM

Source

pub const fn has_cmac(&self) -> bool

HAS CMAC

Source

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

HAS CMAC

Source

pub const fn has_gfmul(&self) -> bool

HAS GFMUL

Source

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

HAS GFMUL

Source

pub const fn internal_prng(&self) -> bool

HAS INTERNAL PRNG

Source

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

HAS INTERNAL PRNG

Source

pub const fn key_digest(&self) -> bool

HAS KEY DIGEST

Source

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

HAS KEY DIGEST

Source

pub const fn count_size(&self) -> bool

0 - COUNT=16, 1 - COUNT=32

Source

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

0 - COUNT=16, 1 - COUNT=32

Source

pub const fn configc_rsvd(&self) -> bool

reserved

Source

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

reserved

Source

pub const fn fa(&self) -> bool

HAS FA protection

Source

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

HAS FA protection

Source

pub const fn configb2_rsvd(&self) -> bool

reserved

Source

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

reserved

Source

pub const fn bus_width(&self) -> bool

0 - BUS_WIDTH=16, 1 - BUS_WIDTH=32

Source

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

0 - BUS_WIDTH=16, 1 - BUS_WIDTH=32

Source

pub const fn num_datin(&self) -> u8

NUMBER OF DATIN REGBANKS

Source

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

NUMBER OF DATIN REGBANKS

Source

pub const fn num_key(&self) -> u8

NUMBER OR KEY REGBANKS

Source

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

NUMBER OR KEY REGBANKS

Source

pub const fn edc(&self) -> bool

DATIN to KERNEL End-to-end EDC is enabled

Source

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

DATIN to KERNEL End-to-end EDC is enabled

Source

pub const fn configb_rsvd(&self) -> u8

reserved

Source

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

reserved

Source

pub const fn sha_256_only(&self) -> bool

HAS SHA-256 ONLY

Source

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

HAS SHA-256 ONLY

Source

pub const fn spb_support(&self) -> bool

ID_CFG_SGI_SPB_SUPPORT is set

Source

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

ID_CFG_SGI_SPB_SUPPORT is set

Source

pub const fn spb_masking(&self) -> bool

ID_CFG_SGI_SPB_MASKING is set

Source

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

ID_CFG_SGI_SPB_MASKING is set

Source

pub const fn sfr_sw_mask(&self) -> bool

ID_CFG_SGI_USE_SFR_SW_MASK is set

Source

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

ID_CFG_SGI_USE_SFR_SW_MASK is set

Source

pub const fn configa_rsvd(&self) -> u8

reserved

Source

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

reserved

Trait Implementations§

Source§

impl Clone for SgiConfig

Source§

fn clone(&self) -> SgiConfig

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 SgiConfig

Source§

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

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

impl Default for SgiConfig

Source§

fn default() -> SgiConfig

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

impl PartialEq for SgiConfig

Source§

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

Source§

impl Eq for SgiConfig

Source§

impl StructuralPartialEq for SgiConfig

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.