#[repr(transparent)]pub struct Ctrl(pub u32);
Expand description
Ring Oscillator control
Tuple Fields§
§0: u32
Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn freq_range(&self) -> FreqRange
pub const fn freq_range(&self) -> FreqRange
Controls the number of delay stages in the ROSC ring LOW uses stages 0 to 7 MEDIUM uses stages 2 to 7 HIGH uses stages 4 to 7 TOOHIGH uses stages 6 to 7 and should not be used because its frequency exceeds design specifications The clock output will not glitch when changing the range up one step at a time The clock output will glitch when changing the range down Note: the values here are gray coded which is why HIGH comes before TOOHIGH
Sourcepub fn set_freq_range(&mut self, val: FreqRange)
pub fn set_freq_range(&mut self, val: FreqRange)
Controls the number of delay stages in the ROSC ring LOW uses stages 0 to 7 MEDIUM uses stages 2 to 7 HIGH uses stages 4 to 7 TOOHIGH uses stages 6 to 7 and should not be used because its frequency exceeds design specifications The clock output will not glitch when changing the range up one step at a time The clock output will glitch when changing the range down Note: the values here are gray coded which is why HIGH comes before TOOHIGH
Sourcepub const fn enable(&self) -> Enable
pub const fn enable(&self) -> Enable
On power-up this field is initialised to ENABLE The system clock must be switched to another source before setting this field to DISABLE otherwise the chip will lock up 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 ENABLE The system clock must be switched to another source before setting this field to DISABLE otherwise the chip will lock up The 12-bit code is intended to give some protection against accidental writes. An invalid setting will enable the oscillator.