pub enum CrystalCurrent {
    Zero,
    Low,
    Medium,
    High,
    ExtraHigh,
}
Expand description

Crystal current level

This struct represents an abstraction over the datasheet table for the IMULT and IPTAT register fields, which control the current used when an Xosc is in CrystalMode

The variants of this enum are not named according to the explicit frequency range provided in the datasheet. While the datasheet recommends settings for each frequency range, it also acknowledges some flexibility in that choice. Specifically, it notes that users can save power by selecting the next-lower frequency range if the capacitive load is small.

Variants

Zero

Used only in ClockMode to represent the default register values

Low

Typically used for 8 MHz oscillators

Medium

Typically used for 8-16 MHz oscillators

High

Typically used for 16-24 MHz oscillators

ExtraHigh

Typically used for 24-48 MHz oscillators

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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.