pub enum Oscillator {
    Main(CrystalFrequencySystemClock),
    PrecisionInternal(SystemClock),
    PrecisionInternalDiv4(Divider),
    LowFrequencyInternal(Divider),
}
Expand description

Selects the system oscillator source

Variants

Main(CrystalFrequencySystemClock)

Use the main oscillator (with the given crystal), into the PLL or a clock divider

PrecisionInternal(SystemClock)

Use the 16 MHz precision internal oscillator, into the PLL or a clock divider

PrecisionInternalDiv4(Divider)

Use the 16 MHz precision internal oscillator, divided down to 4 MHz and then divided down again by the given value.

LowFrequencyInternal(Divider)

Use the 30 kHz internal oscillator, divided by the given value.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.