Struct mcxn947_pac::TRNG0

source ·
pub struct TRNG0 { /* private fields */ }
Expand description

TRNG0

Implementations§

source§

impl TRNG0

source

pub const PTR: *const RegisterBlock = {0x4005a000 as *const trng0::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn mctl(&self) -> &MCTL

0x00 - Miscellaneous Control Register

source

pub fn scmisc(&self) -> &SCMISC

0x04 - Statistical Check Miscellaneous Register

source

pub fn sdctl(&self) -> &SDCTL

0x10 - Seed Control Register

source

pub fn min_cnt_osc2_frqcnt(&self) -> &MIN_CNT_OSC2_FRQCNT

0x18 - Oscillator-2 Frequency Count Register

source

pub fn min_cnt_frqmin(&self) -> &MIN_CNT_FRQMIN

0x18 - Frequency Count Minimum Limit Register

source

pub fn max_cnt_frqmax(&self) -> &MAX_CNT_FRQMAX

0x1c - Frequency Count Maximum Limit Register

source

pub fn max_cnt_frqcnt(&self) -> &MAX_CNT_FRQCNT

0x1c - Frequency Count Register

source

pub fn scml_mc_scml(&self) -> &SCML_MC_SCML

0x20 - Statistical Check Monobit Limit Register

source

pub fn scml_mc_scmc(&self) -> &SCML_MC_SCMC

0x20 - Statistical Check Monobit Count Register

source

pub fn scr1l_1c_scr1l(&self) -> &SCR1L_1C_SCR1L

0x24 - Statistical Check Run Length 1 Limit Register

source

pub fn scr1l_1c_scr1c(&self) -> &SCR1L_1C_SCR1C

0x24 - Statistical Check Run Length 1 Count Register

source

pub fn scr2l_2c_scr2l(&self) -> &SCR2L_2C_SCR2L

0x28 - Statistical Check Run Length 2 Limit Register

source

pub fn scr2l_2c_scr2c(&self) -> &SCR2L_2C_SCR2C

0x28 - Statistical Check Run Length 2 Count Register

source

pub fn scr3l_3c_scr3l(&self) -> &SCR3L_3C_SCR3L

0x2c - Statistical Check Run Length 3 Limit Register

source

pub fn scr3l_3c_scr3c(&self) -> &SCR3L_3C_SCR3C

0x2c - Statistical Check Run Length 3 Count Register

source

pub fn status(&self) -> &STATUS

0x3c - Status Register

source

pub fn ent(&self, n: usize) -> &ENT

0x40..0x60 - Entropy Read Register

source

pub fn ent_iter(&self) -> impl Iterator<Item = &ENT>

Iterator for array of: 0x40..0x60 - Entropy Read Register

source

pub fn sec_cfg(&self) -> &SEC_CFG

0xa0 - Security Configuration Register

source

pub fn int_ctrl(&self) -> &INT_CTRL

0xa4 - Interrupt Control Register

source

pub fn int_mask(&self) -> &INT_MASK

0xa8 - Mask Register

source

pub fn int_status(&self) -> &INT_STATUS

0xac - Interrupt Status Register

source

pub fn cser(&self) -> &CSER

0xb0 - Common Security Error Register

source

pub fn csclr(&self) -> &CSCLR

0xb4 - Common Security Clear Register

source

pub fn osc2_ctl(&self) -> &OSC2_CTL

0xec - TRNG Oscillator 2 Control Register

source

pub fn vid1(&self) -> &VID1

0xf0 - Version ID Register (MS)

source

pub fn vid2(&self) -> &VID2

0xf4 - Version ID Register (LS)

Trait Implementations§

source§

impl Debug for TRNG0

source§

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

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

impl Deref for TRNG0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for TRNG0

Auto Trait Implementations§

§

impl RefUnwindSafe for TRNG0

§

impl !Sync for TRNG0

§

impl Unpin for TRNG0

§

impl UnwindSafe for TRNG0

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

§

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

§

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.