#[repr(transparent)]pub struct Sosccsr2(pub u32);Expand description
SOSC Control Status Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Sosccsr2
impl Sosccsr2
Sourcepub const fn soscen(&self) -> bool
pub const fn soscen(&self) -> bool
SOSC Enable. Raw bit values: false (0) = Disabled: SOSC is disabled.; true (1) = Enabled: SOSC is enabled.
Sourcepub const fn set_soscen(&mut self, val: bool)
pub const fn set_soscen(&mut self, val: bool)
SOSC Enable. Raw bit values: false (0) = Disabled: SOSC is disabled.; true (1) = Enabled: SOSC is enabled.
Sourcepub const fn soscsten(&self) -> bool
pub const fn soscsten(&self) -> bool
SOSC Stop Enable. Raw bit values: false (0) = Disabled: SOSC is disabled in Deep Sleep mode.; true (1) = Enabled: SOSC is enabled in Deep Sleep mode only if SOSCEN is set.
Sourcepub const fn set_soscsten(&mut self, val: bool)
pub const fn set_soscsten(&mut self, val: bool)
SOSC Stop Enable. Raw bit values: false (0) = Disabled: SOSC is disabled in Deep Sleep mode.; true (1) = Enabled: SOSC is enabled in Deep Sleep mode only if SOSCEN is set.
Sourcepub const fn sosccm(&self) -> bool
pub const fn sosccm(&self) -> bool
SOSC Clock Monitor Enable. Raw bit values: false (0) = Disabled: SOSC Clock Monitor is disabled.; true (1) = Enabled: SOSC Clock Monitor is enabled.
Sourcepub const fn set_sosccm(&mut self, val: bool)
pub const fn set_sosccm(&mut self, val: bool)
SOSC Clock Monitor Enable. Raw bit values: false (0) = Disabled: SOSC Clock Monitor is disabled.; true (1) = Enabled: SOSC Clock Monitor is enabled.
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 Register. 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 Register. 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 soscvld(&self) -> bool
pub const fn soscvld(&self) -> bool
SOSC Valid. Raw bit values: false (0) = Disabled: SOSC is not enabled or clock is not valid.; true (1) = Enabled: SOSC is enabled and output clock is valid.
Sourcepub const fn set_soscvld(&mut self, val: bool)
pub const fn set_soscvld(&mut self, val: bool)
SOSC Valid. Raw bit values: false (0) = Disabled: SOSC is not enabled or clock is not valid.; true (1) = Enabled: SOSC is enabled and output clock is valid.
Sourcepub const fn soscsel(&self) -> bool
pub const fn soscsel(&self) -> bool
SOSC Selected. Raw bit values: false (0) = NotSosc: SOSC is not the system clock source.; true (1) = Sosc: SOSC is the system clock source.
Sourcepub const fn set_soscsel(&mut self, val: bool)
pub const fn set_soscsel(&mut self, val: bool)
SOSC Selected. Raw bit values: false (0) = NotSosc: SOSC is not the system clock source.; true (1) = Sosc: SOSC is the system clock source.
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. Raw bit values: false (0) = NotSosc: SOSCVLD interrupt is not enabled.; true (1) = Sosc: SOSCVLD interrupt is enabled.
Sourcepub const fn set_soscvld_ie(&mut self, val: bool)
pub const fn set_soscvld_ie(&mut self, val: bool)
SOSC Valid Interrupt Enable. Raw bit values: false (0) = NotSosc: SOSCVLD interrupt is not enabled.; true (1) = Sosc: SOSCVLD interrupt is enabled.