Struct kea_hal::clocks::osc::Osc[][src]

pub struct Osc<Status, OscType, Range, Gain, ExtalPinState, XtalPinState> { /* fields omitted */ }
Expand description

External Oscillator Peripheral

Oscillator is Stopped (Disabled) by default.

Implementations

Start-up the oscillator. Blocks until the oscillator is running.

Returns the pin used for the EXTAL input

@TODO what is the state of the pin after decoupling from OSC peripheral?

Allow the OSC peripheral to continue running when the system goes into STOP mode.

Stop (disable) the OSC peripheral

@TODO think of ways to not ruin someones day if they are using OSC_OUT as a reference clock.

Allow the OSC peripheral to be stopped when the system goes into STOP mode.

Stop (disable) the OSC peripheral

@TODO think of ways to not ruin someones day if they are using OSC_OUT as a reference clock.

Change to External Clock mode (not resonator or crystal)

Consumes Pin PTB

Change to External oscillator / resonator mode

Consumes Pins PTB6:PTB7

Returns the pin used for the XTAL input.

This pin is only needed for the external oscillator / resonator mode.

@TODO what is the state of the pin after decoupling from OSC peripheral?

Set to high range.

4-20MHz input. Range must be set while the Osc module is disabled.

Set to low range.

Roughly 32kHZ. Range must be set while the Osc module is disabled.

Set the Oscillator to use Variable Gain.

This mode adjusts the oscillator gain to get an acceptable amplitude, minimizing power used.

Set the Oscillator to use High Gain

This mode attempts to get rail-to-rail output from the oscillator or resonator.

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

Performs the conversion.

Performs the conversion.

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.