#[repr(transparent)]pub struct Rosccsr2(pub u32);Expand description
ROSC Control Status Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Rosccsr2
impl Rosccsr2
Sourcepub const fn rosccm(&self) -> bool
pub const fn rosccm(&self) -> bool
ROSC Clock Monitor. Raw bit values: false (0) = Disabled: ROSC clock monitor is disabled.; true (1) = Enabled: ROSC clock monitor is enabled.
Sourcepub const fn set_rosccm(&mut self, val: bool)
pub const fn set_rosccm(&mut self, val: bool)
ROSC Clock Monitor. Raw bit values: false (0) = Disabled: ROSC clock monitor is disabled.; true (1) = Enabled: ROSC clock monitor is enabled.
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 roscsel(&self) -> bool
pub const fn roscsel(&self) -> bool
ROSC Selected. Raw bit values: false (0) = NotRosc: ROSC is not the system clock source.; true (1) = Rosc: ROSC is the system clock source.
Sourcepub const fn set_roscsel(&mut self, val: bool)
pub const fn set_roscsel(&mut self, val: bool)
ROSC Selected. Raw bit values: false (0) = NotRosc: ROSC is not the system clock source.; true (1) = Rosc: ROSC is the system clock source.
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.