#[repr(transparent)]pub struct Osc2Ctl(pub u32);Expand description
TRNG Oscillator 2 Control Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Osc2Ctl
impl Osc2Ctl
Sourcepub const fn trng_ent_ctl(&self) -> TrngEntCtl
pub const fn trng_ent_ctl(&self) -> TrngEntCtl
TRNG entropy generation control.
Sourcepub const fn set_trng_ent_ctl(&mut self, val: TrngEntCtl)
pub const fn set_trng_ent_ctl(&mut self, val: TrngEntCtl)
TRNG entropy generation control.
Sourcepub const fn set_osc2_div(&mut self, val: Osc2Div)
pub const fn set_osc2_div(&mut self, val: Osc2Div)
Oscillator 2 Divide.
Sourcepub const fn osc2_out_en(&self) -> bool
pub const fn osc2_out_en(&self) -> bool
Oscillator 2 Clock Output Enable. Raw bit values: false (0) = Osc2OutEn0: Ring oscillator 2 output is gated to an output pad.; true (1) = Osc2OutEn1: Allows external viewing of divided-by-2 ring oscillator 2 if MCTL[PRGM] = 1 mode is also selected, else ring oscillator 2 output is gated to an output pad.
Sourcepub const fn set_osc2_out_en(&mut self, val: bool)
pub const fn set_osc2_out_en(&mut self, val: bool)
Oscillator 2 Clock Output Enable. Raw bit values: false (0) = Osc2OutEn0: Ring oscillator 2 output is gated to an output pad.; true (1) = Osc2OutEn1: Allows external viewing of divided-by-2 ring oscillator 2 if MCTL[PRGM] = 1 mode is also selected, else ring oscillator 2 output is gated to an output pad.
Sourcepub const fn osc2_fct_val(&self) -> bool
pub const fn osc2_fct_val(&self) -> bool
TRNG Oscillator 2 Frequency Count Valid.
Sourcepub const fn set_osc2_fct_val(&mut self, val: bool)
pub const fn set_osc2_fct_val(&mut self, val: bool)
TRNG Oscillator 2 Frequency Count Valid.
Sourcepub const fn osc_failsafe_lmt(&self) -> OscFailsafeLmt
pub const fn osc_failsafe_lmt(&self) -> OscFailsafeLmt
Oscillator fail safe limit.
Sourcepub const fn set_osc_failsafe_lmt(&mut self, val: OscFailsafeLmt)
pub const fn set_osc_failsafe_lmt(&mut self, val: OscFailsafeLmt)
Oscillator fail safe limit.
Sourcepub const fn osc_failsafe_test(&self) -> bool
pub const fn osc_failsafe_test(&self) -> bool
Oscillator fail safe test.
Sourcepub const fn set_osc_failsafe_test(&mut self, val: bool)
pub const fn set_osc_failsafe_test(&mut self, val: bool)
Oscillator fail safe test.