[][src]Enum avr_hal_generic::spi::SerialClockRate

pub enum SerialClockRate {
    OscfOver2,
    OscfOver4,
    OscfOver8,
    OscfOver16,
    OscfOver32,
    OscfOver64,
    OscfOver128,
}

Oscillator Clock Frequency division options.

The bus speed is calculated by dividing the IO clock by the prescaler:

F_sck = CLK_io / Prescaler

Please note that the overall transfer speed might be lower due to software overhead while sending / receiving.

Prescale16 MHz Clock8 MHz Clock
OscfOver28 MHz4 MHz
OscfOver44 MHz2 MHz
OscfOver82 MHz1 MHz
OscfOver161 MHz500 kHz
OscfOver32500 kHz250 kHz
OscfOver64250 kHz125 kHz
OscfOver128125 kHz62.5 kHz

Variants

OscfOver2
OscfOver4
OscfOver8
OscfOver16
OscfOver32
OscfOver64
OscfOver128

Trait Implementations

impl Clone for SerialClockRate[src]

impl Copy for SerialClockRate[src]

impl Debug for SerialClockRate[src]

impl Eq for SerialClockRate[src]

impl PartialEq<SerialClockRate> for SerialClockRate[src]

impl StructuralEq for SerialClockRate[src]

impl StructuralPartialEq for SerialClockRate[src]

Auto Trait Implementations

impl Send for SerialClockRate[src]

impl Sync for SerialClockRate[src]

impl Unpin for SerialClockRate[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.