pub enum CrystalFrequency {
Show 21 variants _4mhz, _4_09mhz, _4_91mhz, _5mhz, _5_12mhz, _6mhz, _6_14mhz, _7_37mhz, _8mhz, _8_19mhz, _10mhz, _12mhz, _12_2mhz, _13_5mhz, _14_3mhz, _16mhz, _16_3mhz, _18mhz, _20mhz, _24mhz, _25mhz,
}
Expand description

Selects which crystal is fitted to the XOSC pins.

Variants§

§

_4mhz

4 MHz

§

_4_09mhz

4.096 MHz

§

_4_91mhz

4.9152 MHz

§

_5mhz

5 MHz

§

_5_12mhz

5.12 MHz

§

_6mhz

6 MHz

§

_6_14mhz

6.144 MHz

§

_7_37mhz

7.3728 MHz

§

_8mhz

8 MHz

§

_8_19mhz

8.192 MHz

§

_10mhz

10 MHz

§

_12mhz

12 MHz

§

_12_2mhz

12.288 MHz

§

_13_5mhz

13.56 MHz

§

_14_3mhz

14.31818 MHz

§

_16mhz

16 MHz

§

_16_3mhz

16.384 MHz

§

_18mhz

18.0 MHz (USB)

§

_20mhz

20.0 MHz (USB)

§

_24mhz

24.0 MHz (USB)

§

_25mhz

25.0 MHz (USB)

Trait Implementations§

source§

impl Clone for CrystalFrequency

source§

fn clone(&self) -> CrystalFrequency

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Into<Hertz> for CrystalFrequency

source§

fn into(self) -> Hertz

Converts this type into the (usually inferred) input type.
source§

impl Copy for CrystalFrequency

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.