Enum stm32_hal2::i2c::I2cSpeed
source · [−]pub enum I2cSpeed {
Standard10K,
Standard100K,
Fast400K,
FastPlus1M,
}
Expand description
Set a preset I2C speed, based on RM tables: Examples of timings settings. Sets 5 fields of the TIMINGR register.
Variants
Standard10K
Standard-mode: 10kHz.
Standard100K
Standard-mode: 100kHz.
Fast400K
Fast-mode: 400kHz.
FastPlus1M
Fast-mode +: 1Mhz.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for I2cSpeed
impl Send for I2cSpeed
impl Sync for I2cSpeed
impl Unpin for I2cSpeed
impl UnwindSafe for I2cSpeed
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