pub struct CFGR { /* private fields */ }

Implementations

Uses HSE (external oscillator) instead of HSI (internal RC oscillator) as the clock source. Will result in a hang if an external oscillator is not connected or it fails to start.

Bypasses the high-speed external oscillator and uses an external clock input on the OSC_IN pin.

For this configuration, the OSC_IN pin should be connected to a clock source with a frequency specified in the call to use_hse(), and the OSC_OUT pin should not be connected.

This function has no effect unless use_hse() is also called.

Declares that the selected frequency is available at the I2S clock input pin (I2S_CKIN).

If this frequency matches the requested SAI or I2S frequencies, the external I2S clock is used to generate the clocks.

Selects an I2S clock frequency and enables the I2S clock.

Selects a SAIA clock frequency and enables the SAIA clock.

Selects a SAIB clock frequency and enables the SAIB clock.

Initialises the hardware according to CFGR state returning a Clocks instance. Panics if overclocking is attempted.

Initialises the hardware according to CFGR state returning a Clocks instance. Allows overclocking.

Safety

This method does not check if the clocks are bigger or smaller than the officially recommended.

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.