Expand description
Ring Oscillator (ROSC)
See Section 8.3 for more details.
In addition to its obvious role as a clock source, RingOscillator can also be used as a random number source
for the rand crate:
use rand::Rng;
use rp235x_hal::rosc::RingOscillator;
let mut rnd = RingOscillator::new(pac.ROSC).initialize();
let random_value: u32 = rnd.gen();Structs§
- Disabled
- ROSC is disabled (typestate)
- Enabled
- ROSC is initialized, ie we’ve given parameters (typestate)
- Ring
Oscillator - A Ring Oscillator.
Traits§
- State
- State of the Ring Oscillator (typestate trait)