#[repr(transparent)]pub struct Rosccsr(pub u32);Expand description
ROSC Control Status Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Rosccsr
impl Rosccsr
Sourcepub const fn set_rosccm(&mut self, val: bool)
pub const fn set_rosccm(&mut self, val: bool)
ROSC Clock Monitor.
Sourcepub const fn rosccmre(&self) -> bool
pub const fn rosccmre(&self) -> bool
ROSC Clock Monitor Reset Enable. Raw bit values: false (0) = GenerateInterrupt: Clock monitor generates an interrupt when an error is detected.; true (1) = GenerateReset: Clock monitor generates a reset when an error is detected.
Sourcepub const fn set_rosccmre(&mut self, val: bool)
pub const fn set_rosccmre(&mut self, val: bool)
ROSC Clock Monitor Reset Enable. Raw bit values: false (0) = GenerateInterrupt: Clock monitor generates an interrupt when an error is detected.; true (1) = GenerateReset: Clock monitor generates a reset when an error is detected.
Sourcepub const fn lk(&self) -> bool
pub const fn lk(&self) -> bool
Lock Register. Raw bit values: false (0) = WriteEnabled: Control Status Register can be written.; true (1) = WriteDisabled: Control Status Register cannot be written.
Sourcepub const fn set_lk(&mut self, val: bool)
pub const fn set_lk(&mut self, val: bool)
Lock Register. Raw bit values: false (0) = WriteEnabled: Control Status Register can be written.; true (1) = WriteDisabled: Control Status Register cannot be written.
Sourcepub const fn roscvld(&self) -> bool
pub const fn roscvld(&self) -> bool
ROSC Valid. Raw bit values: false (0) = DisabledOrNotValid: ROSC is not enabled or clock is not valid.; true (1) = EnabledAndValid: ROSC is enabled and output clock is valid.
Sourcepub const fn set_roscvld(&mut self, val: bool)
pub const fn set_roscvld(&mut self, val: bool)
ROSC Valid. Raw bit values: false (0) = DisabledOrNotValid: ROSC is not enabled or clock is not valid.; true (1) = EnabledAndValid: ROSC is enabled and output clock is valid.
Sourcepub const fn set_roscsel(&mut self, val: bool)
pub const fn set_roscsel(&mut self, val: bool)
ROSC Selected.
Sourcepub const fn roscerr(&self) -> bool
pub const fn roscerr(&self) -> bool
ROSC Clock Error. Raw bit values: false (0) = DisabledOrNoError: ROSC Clock Monitor is disabled or has not detected an error.; true (1) = EnabledAndError: ROSC Clock Monitor is enabled and detected an RTC loss of clock error.
Sourcepub const fn set_roscerr(&mut self, val: bool)
pub const fn set_roscerr(&mut self, val: bool)
ROSC Clock Error. Raw bit values: false (0) = DisabledOrNoError: ROSC Clock Monitor is disabled or has not detected an error.; true (1) = EnabledAndError: ROSC Clock Monitor is enabled and detected an RTC loss of clock error.