#[repr(transparent)]pub struct Firccsr(pub u32);Expand description
FIRC Control Status.
Tuple Fields§
§0: u32Implementations§
Source§impl Firccsr
impl Firccsr
Sourcepub const fn set_fircen(&mut self, val: bool)
pub const fn set_fircen(&mut self, val: bool)
FIRC Enable.
Sourcepub const fn fircsten(&self) -> bool
pub const fn fircsten(&self) -> bool
FIRC Stop Enable. Raw bit values: false (0) = DisabledInStopModes: FIRC is disabled in Deep Sleep mode.; true (1) = EnabledInStopModes: FIRC is enabled in Deep Sleep mode.
Sourcepub const fn set_fircsten(&mut self, val: bool)
pub const fn set_fircsten(&mut self, val: bool)
FIRC Stop Enable. Raw bit values: false (0) = DisabledInStopModes: FIRC is disabled in Deep Sleep mode.; true (1) = EnabledInStopModes: FIRC is enabled in Deep Sleep mode.
Sourcepub const fn firc_sclk_periph_en(&self) -> bool
pub const fn firc_sclk_periph_en(&self) -> bool
FIRC_45MHz Clock to Peripherals Enable.
Sourcepub const fn set_firc_sclk_periph_en(&mut self, val: bool)
pub const fn set_firc_sclk_periph_en(&mut self, val: bool)
FIRC_45MHz Clock to Peripherals Enable.
Sourcepub const fn firc_fclk_periph_en(&self) -> bool
pub const fn firc_fclk_periph_en(&self) -> bool
FRO_HF_GATED to Peripherals Enable.
Sourcepub const fn set_firc_fclk_periph_en(&mut self, val: bool)
pub const fn set_firc_fclk_periph_en(&mut self, val: bool)
FRO_HF_GATED to Peripherals Enable.
Sourcepub const fn lk(&self) -> bool
pub const fn lk(&self) -> bool
Lock. 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. Raw bit values: false (0) = WriteEnabled: Control Status Register can be written.; true (1) = WriteDisabled: Control Status Register cannot be written.
Sourcepub const fn fircvld(&self) -> bool
pub const fn fircvld(&self) -> bool
FIRC Valid status. Raw bit values: false (0) = NotEnabledOrNotValid: FIRC is not enabled or clock is not valid.; true (1) = EnabledAndValid: FIRC is enabled and output clock is valid. The clock is valid after there is an output clock from the FIRC analog.
Sourcepub const fn set_fircvld(&mut self, val: bool)
pub const fn set_fircvld(&mut self, val: bool)
FIRC Valid status. Raw bit values: false (0) = NotEnabledOrNotValid: FIRC is not enabled or clock is not valid.; true (1) = EnabledAndValid: FIRC is enabled and output clock is valid. The clock is valid after there is an output clock from the FIRC analog.
Sourcepub const fn set_fircsel(&mut self, val: bool)
pub const fn set_fircsel(&mut self, val: bool)
FIRC Selected.
Sourcepub const fn fircerr(&self) -> bool
pub const fn fircerr(&self) -> bool
FIRC Clock Error. Raw bit values: false (0) = ErrorNotDetected: Error not detected with the FIRC trimming.; true (1) = ErrorDetected: Error detected with the FIRC trimming.
Sourcepub const fn set_fircerr(&mut self, val: bool)
pub const fn set_fircerr(&mut self, val: bool)
FIRC Clock Error. Raw bit values: false (0) = ErrorNotDetected: Error not detected with the FIRC trimming.; true (1) = ErrorDetected: Error detected with the FIRC trimming.
Sourcepub const fn fircerr_ie(&self) -> bool
pub const fn fircerr_ie(&self) -> bool
FIRC Clock Error Interrupt Enable. Raw bit values: false (0) = ErrorNotDetected: FIRCERR interrupt is not enabled.; true (1) = ErrorDetected: FIRCERR interrupt is enabled.
Sourcepub const fn set_fircerr_ie(&mut self, val: bool)
pub const fn set_fircerr_ie(&mut self, val: bool)
FIRC Clock Error Interrupt Enable. Raw bit values: false (0) = ErrorNotDetected: FIRCERR interrupt is not enabled.; true (1) = ErrorDetected: FIRCERR interrupt is enabled.
Sourcepub const fn fircacc_ie(&self) -> bool
pub const fn fircacc_ie(&self) -> bool
FIRC Accurate Interrupt Enable. Raw bit values: false (0) = Fircaccnot: FIRCACC interrupt is not enabled.; true (1) = Fircaccyes: FIRCACC interrupt is enabled.
Sourcepub const fn set_fircacc_ie(&mut self, val: bool)
pub const fn set_fircacc_ie(&mut self, val: bool)
FIRC Accurate Interrupt Enable. Raw bit values: false (0) = Fircaccnot: FIRCACC interrupt is not enabled.; true (1) = Fircaccyes: FIRCACC interrupt is enabled.
Sourcepub const fn fircacc(&self) -> bool
pub const fn fircacc(&self) -> bool
FIRC Frequency Accurate. Raw bit values: false (0) = NotEnabledOrNotValid: FIRC is not enabled or clock is not accurate.; true (1) = EnabledAndValid: FIRC is enabled and output clock is accurate after some preparation time which is obtained by counting FRO_HF clock.
Sourcepub const fn set_fircacc(&mut self, val: bool)
pub const fn set_fircacc(&mut self, val: bool)
FIRC Frequency Accurate. Raw bit values: false (0) = NotEnabledOrNotValid: FIRC is not enabled or clock is not accurate.; true (1) = EnabledAndValid: FIRC is enabled and output clock is accurate after some preparation time which is obtained by counting FRO_HF clock.