#[repr(u8)]
pub enum BaudRate {
Div2,
Div4,
Div8,
Div16,
Div32,
Div64,
Div128,
Div256,
}
Expand description
Set the factor to divide the APB clock by to set baud rate. Sets SPI_CR1 register, BR field.
On H7, sets CFG1 register, MBR field.
Performs copy-assignment from
source.
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.