Enum stm32_hal2::spi::BaudRate
source · [−]#[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.
Variants
Div2
Div4
Div8
Div16
Div32
Div64
Div128
Div256
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BaudRate
impl Send for BaudRate
impl Sync for BaudRate
impl Unpin for BaudRate
impl UnwindSafe for BaudRate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more