#[repr(transparent)]pub struct Mctl(pub u32);Expand description
Miscellaneous Control Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Mctl
impl Mctl
Sourcepub const fn set_osc_div(&mut self, val: OscDiv)
pub const fn set_osc_div(&mut self, val: OscDiv)
Oscillator1 Divide.
Sourcepub const fn dis_slf_tst(&self) -> bool
pub const fn dis_slf_tst(&self) -> bool
Disable Self-Tests.
Sourcepub const fn set_dis_slf_tst(&mut self, val: bool)
pub const fn set_dis_slf_tst(&mut self, val: bool)
Disable Self-Tests.
Sourcepub const fn set_trng_acc(&mut self, val: bool)
pub const fn set_trng_acc(&mut self, val: bool)
TRNG Access Mode.
Sourcepub const fn set_rst_def(&mut self, val: bool)
pub const fn set_rst_def(&mut self, val: bool)
Reset Defaults.
Sourcepub const fn set_fct_fail(&mut self, val: bool)
pub const fn set_fct_fail(&mut self, val: bool)
Frequency Count Fail.
Sourcepub const fn set_fct_val(&mut self, val: bool)
pub const fn set_fct_val(&mut self, val: bool)
Frequency Count Valid.
Sourcepub const fn set_ent_val(&mut self, val: bool)
pub const fn set_ent_val(&mut self, val: bool)
Entropy Valid.
Sourcepub const fn set_tstop_ok(&mut self, val: bool)
pub const fn set_tstop_ok(&mut self, val: bool)
TRNG is ok to stop.
Sourcepub const fn set_osc2_fail(&mut self, val: bool)
pub const fn set_osc2_fail(&mut self, val: bool)
Oscillator 2 Failure.
Sourcepub const fn set_intg_err(&mut self, val: bool)
pub const fn set_intg_err(&mut self, val: bool)
Integrity Error.
Trait Implementations§
impl Copy for Mctl
impl Eq for Mctl
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more