Enum stm32_hal2::spi::BaudRate
source · #[repr(u8)]pub enum BaudRate {
Div2 = 0,
Div4 = 1,
Div8 = 2,
Div16 = 3,
Div32 = 4,
Div64 = 5,
Div128 = 6,
Div256 = 7,
}
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.
Variants§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more