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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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.