pub enum I2cMode {
Standard {
frequency: Hertz,
},
Fast {
frequency: Hertz,
duty_cycle: DutyCycle,
},
FastPlus {
frequency: Hertz,
duty_cycle: DutyCycle,
},
}Expand description
Bus speed, and whatever else that speed implies.
Each variant has its own minimum pclk1: 2 / 8 / 24 MHz.
Variants§
Standard
Up to 100 kHz, duty cycle fixed at 1:1.
Fast
Up to 400 kHz.
FastPlus
Up to 1 MHz; also enables the stronger line driver (FMPCFG).
Implementations§
Trait Implementations§
impl Copy for I2cMode
impl Eq for I2cMode
impl StructuralPartialEq for I2cMode
Auto Trait Implementations§
impl Freeze for I2cMode
impl RefUnwindSafe for I2cMode
impl Send for I2cMode
impl Sync for I2cMode
impl Unpin for I2cMode
impl UnsafeUnpin for I2cMode
impl UnwindSafe for I2cMode
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