Enum atsamd_hal::clock::v2::xosc::CrystalCurrent
source · [−]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
sourceimpl Clone for CrystalCurrent
impl Clone for CrystalCurrent
sourcefn clone(&self) -> CrystalCurrent
fn clone(&self) -> CrystalCurrent
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more