pub enum OneMstMode {
Dis = 0,
En = 1,
}Expand description
SCL Push-Pull Mode. This bit controls whether SCL is operated in a the I2C standard open-drain mode, or in a non-standard push-pull mode where the Hi-Z output isreplaced with Drive-1. The non-standard mode should only be used when operating as a master and communicating with slaves that are guaranteed to never drive SCL low.
Value on reset: 0
Variants§
Dis = 0
0: Standard open-drain operation: drive low for 0, Hi-Z for 1
En = 1
1: Non-standard push-pull operation: drive low for 0, drive high for 1
Trait Implementations§
Source§impl Clone for OneMstMode
impl Clone for OneMstMode
Source§fn clone(&self) -> OneMstMode
fn clone(&self) -> OneMstMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OneMstMode
impl Debug for OneMstMode
Source§impl From<OneMstMode> for bool
impl From<OneMstMode> for bool
Source§fn from(variant: OneMstMode) -> Self
fn from(variant: OneMstMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OneMstMode
impl PartialEq for OneMstMode
impl Copy for OneMstMode
impl Eq for OneMstMode
impl StructuralPartialEq for OneMstMode
Auto Trait Implementations§
impl Freeze for OneMstMode
impl RefUnwindSafe for OneMstMode
impl Send for OneMstMode
impl Sync for OneMstMode
impl Unpin for OneMstMode
impl UnwindSafe for OneMstMode
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