pub struct Timing {
pub prescaler: u8,
pub scl_delay: u8,
pub sda_delay: u8,
pub scl_high: u8,
pub scl_low: u8,
}Expand description
Raw values for the I2C TIMINGR register.
The default values configure approximately 100 kHz SCL when I2CCLK is 32 MHz. Applications using another peripheral clock should provide values calculated for that clock.
Fields§
§prescaler: u8§scl_delay: u8§sda_delay: u8§scl_high: u8§scl_low: u8Implementations§
Source§impl Timing
impl Timing
pub const fn default_100khz_32mhz() -> Self
Trait Implementations§
impl Copy for Timing
impl Eq for Timing
impl StructuralPartialEq for Timing
Auto Trait Implementations§
impl Freeze for Timing
impl RefUnwindSafe for Timing
impl Send for Timing
impl Sync for Timing
impl Unpin for Timing
impl UnsafeUnpin for Timing
impl UnwindSafe for Timing
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