Struct kea_hal::spi::BaudrateDivisor[][src]

pub struct BaudrateDivisor {
    pub scale: u8,
    pub power: u8,
}
Expand description

Holds the parameters used to calculate the divisor used to derive the SPI baudrate from the bus clock

Fields

scale: u8

Linearly scale the bus clock, value must be <= 7

power: u8

Scale the bus clock divisor by a power of 2, value must be <= 8

Implementations

The transfer function for computing the baud rate divisor. was throwing errors about converting between time rates and u32, so now in u32

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

Performs the conversion.

Performs the conversion.

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.