pub struct Timing { /* private fields */ }Available on crate feature
unstable only.Expand description
I2C timings
Implementations§
Source§impl Timing
impl Timing
Sourcepub fn with_scl_low_period(self, scl_low_period: u32) -> Self
pub fn with_scl_low_period(self, scl_low_period: u32) -> Self
Assign the given value to the scl_low_period field.
Sourcepub fn scl_low_period(&self) -> u32
pub fn scl_low_period(&self) -> u32
SCL low period
Sourcepub fn with_scl_high_period(self, scl_high_period: u32) -> Self
pub fn with_scl_high_period(self, scl_high_period: u32) -> Self
Assign the given value to the scl_high_period field.
Sourcepub fn scl_high_period(&self) -> u32
pub fn scl_high_period(&self) -> u32
SCL high period
Sourcepub fn with_sda_duty(self, sda_duty: u32) -> Self
pub fn with_sda_duty(self, sda_duty: u32) -> Self
Assign the given value to the sda_duty field.
Sourcepub fn with_scl_start_period(self, scl_start_period: u32) -> Self
pub fn with_scl_start_period(self, scl_start_period: u32) -> Self
Assign the given value to the scl_start_period field.
Sourcepub fn scl_start_period(&self) -> u32
pub fn scl_start_period(&self) -> u32
Waiting time after the START condition in micro seconds
Sourcepub fn with_scl_stop_period(self, scl_stop_period: u32) -> Self
pub fn with_scl_stop_period(self, scl_stop_period: u32) -> Self
Assign the given value to the scl_stop_period field.
Sourcepub fn scl_stop_period(&self) -> u32
pub fn scl_stop_period(&self) -> u32
Waiting time before the END condition in micro seconds
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 UnwindSafe for Timing
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)