#[repr(transparent)]pub struct Sosccsr(pub u32);Expand description
SOSC Control Status.
Tuple Fields§
§0: u32Implementations§
Source§impl Sosccsr
impl Sosccsr
Sourcepub const fn set_soscen(&mut self, val: bool)
pub const fn set_soscen(&mut self, val: bool)
SOSC Enable.
Sourcepub const fn set_soscsten(&mut self, val: bool)
pub const fn set_soscsten(&mut self, val: bool)
SOSC Stop Enable.
Sourcepub const fn set_sosccm(&mut self, val: bool)
pub const fn set_sosccm(&mut self, val: bool)
SOSC Clock Monitor Enable.
Sourcepub const fn sosccmre(&self) -> bool
pub const fn sosccmre(&self) -> bool
SOSC 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_sosccmre(&mut self, val: bool)
pub const fn set_sosccmre(&mut self, val: bool)
SOSC 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. Raw bit values: false (0) = WriteEnabled: This Control Status Register can be written.; true (1) = WriteDisabled: This 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. Raw bit values: false (0) = WriteEnabled: This Control Status Register can be written.; true (1) = WriteDisabled: This Control Status Register cannot be written.
Sourcepub const fn set_soscvld(&mut self, val: bool)
pub const fn set_soscvld(&mut self, val: bool)
SOSC Valid.
Sourcepub const fn set_soscsel(&mut self, val: bool)
pub const fn set_soscsel(&mut self, val: bool)
SOSC Selected.
Sourcepub const fn soscerr(&self) -> bool
pub const fn soscerr(&self) -> bool
SOSC Clock Error. Raw bit values: false (0) = DisabledOrNoError: SOSC Clock Monitor is disabled or has not detected an error.; true (1) = EnabledAndError: SOSC Clock Monitor is enabled and detected an error.
Sourcepub const fn set_soscerr(&mut self, val: bool)
pub const fn set_soscerr(&mut self, val: bool)
SOSC Clock Error. Raw bit values: false (0) = DisabledOrNoError: SOSC Clock Monitor is disabled or has not detected an error.; true (1) = EnabledAndError: SOSC Clock Monitor is enabled and detected an error.
Sourcepub const fn soscvld_ie(&self) -> bool
pub const fn soscvld_ie(&self) -> bool
SOSC Valid Interrupt Enable.
Sourcepub const fn set_soscvld_ie(&mut self, val: bool)
pub const fn set_soscvld_ie(&mut self, val: bool)
SOSC Valid Interrupt Enable.