nxp-pac

Crates

git

Versions

mimxrt1011

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 samp_mode(&self) -> SampMode

Sample Mode

Source

pub const fn set_samp_mode(&mut self, val: SampMode)

Sample Mode

Source

pub const fn osc_div(&self) -> OscDiv

Oscillator Divide

Source

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

Oscillator Divide

Source

pub const fn unused4(&self) -> bool

This bit is unused. Always reads zero.

Source

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

This bit is unused. Always reads zero.

Source

pub const fn unused5(&self) -> bool

This bit is unused. Always reads zero.

Source

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

This bit is unused. Always reads zero.

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 for_sclk(&self) -> bool

Force System Clock

Source

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

Force System Clock

Source

pub const fn fct_fail(&self) -> bool

Read only: Frequency Count Fail

Source

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

Read only: Frequency Count Fail

Source

pub const fn fct_val(&self) -> bool

Read only: Frequency Count Valid. Indicates that a valid frequency count may be read from FRQCNT.

Source

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

Read only: Frequency Count Valid. Indicates that a valid frequency count may be read from FRQCNT.

Source

pub const fn ent_val(&self) -> bool

Read only: Entropy Valid

Source

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

Read only: Entropy Valid

Source

pub const fn tst_out(&self) -> bool

Read only: Test point inside ring oscillator.

Source

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

Read only: Test point inside ring oscillator.

Source

pub const fn err(&self) -> bool

Read: Error status

Source

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

Read: Error status

Source

pub const fn tstop_ok(&self) -> bool

TRNG_OK_TO_STOP

Source

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

TRNG_OK_TO_STOP

Source

pub const fn lrun_cont(&self) -> bool

Long run count continues between entropy generations

Source

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

Long run count continues between entropy generations

Source

pub const fn prgm(&self) -> bool

Programming Mode Select

Source

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

Programming Mode Select

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.