nxp-pac

Crates

git

Versions

mcxa256

Flavors

Mctl

Struct Mctl 

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

Miscellaneous Control Register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Mctl

Source

pub const fn osc_div(&self) -> OscDiv

Oscillator1 Divide

Source

pub const fn set_osc_div(&mut self, val: OscDiv)

Oscillator1 Divide

Source

pub const fn dis_slf_tst(&self) -> bool

Disable Self-Tests

Source

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

Disable Self-Tests

Source

pub const fn trng_acc(&self) -> bool

TRNG Access Mode

Source

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

TRNG Access Mode

Source

pub const fn rst_def(&self) -> bool

Reset Defaults

Source

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

Reset Defaults

Source

pub const fn fct_fail(&self) -> bool

Frequency Count Fail

Source

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

Frequency Count Fail

Source

pub const fn fct_val(&self) -> bool

Frequency Count Valid

Source

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

Frequency Count Valid

Source

pub const fn ent_val(&self) -> bool

Entropy Valid

Source

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

Entropy Valid

Source

pub const fn err(&self) -> bool

Error Status

Source

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

Error Status

Source

pub const fn tstop_ok(&self) -> bool

TRNG is ok to stop

Source

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

TRNG is ok to stop

Source

pub const fn osc2_fail(&self) -> bool

Oscillator 2 Failure

Source

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

Oscillator 2 Failure

Source

pub const fn prgm(&self) -> bool

Program Mode

Source

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

Program Mode

Source

pub const fn intg_err(&self) -> bool

Integrity Error

Source

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

Integrity Error

Trait Implementations§

Source§

impl Clone for Mctl

Source§

fn clone(&self) -> Mctl

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 Mctl

Source§

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

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

impl Default for Mctl

Source§

fn default() -> Mctl

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

impl PartialEq for Mctl

Source§

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

Source§

impl Eq for Mctl

Source§

impl StructuralPartialEq for Mctl

Auto Trait Implementations§

§

impl Freeze for Mctl

§

impl RefUnwindSafe for Mctl

§

impl Send for Mctl

§

impl Sync for Mctl

§

impl Unpin for Mctl

§

impl UnwindSafe for Mctl

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.