#[repr(transparent)]pub struct Firccsr(pub u32);Expand description
FIRC Control Status Register.
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 48 MHz 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 48 MHz Clock to peripherals Enable.
Sourcepub const fn firc_fclk_periph_en(&self) -> bool
pub const fn firc_fclk_periph_en(&self) -> bool
FIRC 144 MHz Clock 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)
FIRC 144 MHz Clock to peripherals Enable.
Sourcepub const fn set_firctren(&mut self, val: bool)
pub const fn set_firctren(&mut self, val: bool)
FIRC 144 MHz Trim Enable (FIRCCFG[RANGE]=1).
Sourcepub const fn set_firctrup(&mut self, val: bool)
pub const fn set_firctrup(&mut self, val: bool)
FIRC Trim Update.
Sourcepub const fn trim_lock(&self) -> bool
pub const fn trim_lock(&self) -> bool
FIRC TRIM LOCK. Raw bit values: false (0) = FircNotLocked: FIRC auto trim not locked to target frequency range.; true (1) = FircLocked: FIRC auto trim locked to target frequency range.
Sourcepub const fn set_trim_lock(&mut self, val: bool)
pub const fn set_trim_lock(&mut self, val: bool)
FIRC TRIM LOCK. Raw bit values: false (0) = FircNotLocked: FIRC auto trim not locked to target frequency range.; true (1) = FircLocked: FIRC auto trim locked to target frequency range.
Sourcepub const fn coarse_trim_bypass(&self) -> bool
pub const fn coarse_trim_bypass(&self) -> bool
Coarse Auto Trim Bypass.
Sourcepub const fn set_coarse_trim_bypass(&mut self, val: bool)
pub const fn set_coarse_trim_bypass(&mut self, val: bool)
Coarse Auto Trim Bypass.
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 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. The clock is accurate after 4096 clock cycles of 144 MHz (RANGE=1) or 1365 clock cycles of 48 MHz(RANGE=0) from the FIRC analog.
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. The clock is accurate after 4096 clock cycles of 144 MHz (RANGE=1) or 1365 clock cycles of 48 MHz(RANGE=0) from the FIRC analog.