#[repr(transparent)]pub struct Firccsr2(pub u32);Expand description
FIRC Control Status Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Firccsr2
impl Firccsr2
Sourcepub const fn fircen(&self) -> bool
pub const fn fircen(&self) -> bool
FIRC Enable. Raw bit values: false (0) = Disabled: FIRC is disabled.; true (1) = Enabled: FIRC is enabled.
Sourcepub const fn set_fircen(&mut self, val: bool)
pub const fn set_fircen(&mut self, val: bool)
FIRC Enable. Raw bit values: false (0) = Disabled: FIRC is disabled.; true (1) = Enabled: FIRC is enabled.
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. Raw bit values: false (0) = Disabled: FIRC 48 MHz to peripherals is disabled.; true (1) = Enabled: FIRC 48 MHz to peripherals is enabled.
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. Raw bit values: false (0) = Disabled: FIRC 48 MHz to peripherals is disabled.; true (1) = Enabled: FIRC 48 MHz to peripherals is enabled.
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. Raw bit values: false (0) = Disabled: FIRC 144 MHz to peripherals is disabled.; true (1) = Enabled: FIRC 144 MHz to peripherals is enabled.
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. Raw bit values: false (0) = Disabled: FIRC 144 MHz to peripherals is disabled.; true (1) = Enabled: FIRC 144 MHz to peripherals is enabled.
Sourcepub const fn firctren(&self) -> bool
pub const fn firctren(&self) -> bool
FIRC 144 MHz Trim Enable (FIRCCFG[RANGE]=1). Raw bit values: false (0) = Disabled: Disables trimming FIRC to an external clock source.; true (1) = Enabled: Enables trimming FIRC to an external clock source.
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). Raw bit values: false (0) = Disabled: Disables trimming FIRC to an external clock source.; true (1) = Enabled: Enables trimming FIRC to an external clock source.
Sourcepub const fn firctrup(&self) -> bool
pub const fn firctrup(&self) -> bool
FIRC Trim Update. Raw bit values: false (0) = Disabled: Disables FIRC trimming updates.; true (1) = Enabled: Enables FIRC trimming updates.
Sourcepub const fn set_firctrup(&mut self, val: bool)
pub const fn set_firctrup(&mut self, val: bool)
FIRC Trim Update. Raw bit values: false (0) = Disabled: Disables FIRC trimming updates.; true (1) = Enabled: Enables FIRC trimming updates.
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. Raw bit values: false (0) = NotBypassed: FIRC coarse auto trim is not bypassed.; true (1) = Bypassed: FIRC coarse auto trim is bypassed.
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. Raw bit values: false (0) = NotBypassed: FIRC coarse auto trim is not bypassed.; true (1) = Bypassed: FIRC coarse auto trim is bypassed.
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 fircsel(&self) -> bool
pub const fn fircsel(&self) -> bool
FIRC Selected. Raw bit values: false (0) = NotFirc: FIRC is not the system clock source.; true (1) = Firc: FIRC is the system clock source.
Sourcepub const fn set_fircsel(&mut self, val: bool)
pub const fn set_fircsel(&mut self, val: bool)
FIRC Selected. Raw bit values: false (0) = NotFirc: FIRC is not the system clock source.; true (1) = Firc: FIRC is the system clock source.
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.