#[repr(transparent)]pub struct Ctrl(pub u32);
Expand description
Crystal Oscillator Control
Tuple Fields§
§0: u32
Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn freq_range(&self) -> CtrlFreqRange
pub const fn freq_range(&self) -> CtrlFreqRange
Frequency range. An invalid setting will retain the previous value. The actual value being used can be read from STATUS_FREQ_RANGE. This resets to 0xAA0 and cannot be changed.
Sourcepub fn set_freq_range(&mut self, val: CtrlFreqRange)
pub fn set_freq_range(&mut self, val: CtrlFreqRange)
Frequency range. An invalid setting will retain the previous value. The actual value being used can be read from STATUS_FREQ_RANGE. This resets to 0xAA0 and cannot be changed.
Sourcepub const fn enable(&self) -> Enable
pub const fn enable(&self) -> Enable
On power-up this field is initialised to DISABLE and the chip runs from the ROSC. If the chip has subsequently been programmed to run from the XOSC then DISABLE may lock-up the chip. If this is a concern then run the clk_ref from the ROSC and enable the clk_sys RESUS feature. The 12-bit code is intended to give some protection against accidental writes. An invalid setting will enable the oscillator.
Sourcepub fn set_enable(&mut self, val: Enable)
pub fn set_enable(&mut self, val: Enable)
On power-up this field is initialised to DISABLE and the chip runs from the ROSC. If the chip has subsequently been programmed to run from the XOSC then DISABLE may lock-up the chip. If this is a concern then run the clk_ref from the ROSC and enable the clk_sys RESUS feature. The 12-bit code is intended to give some protection against accidental writes. An invalid setting will enable the oscillator.