pub enum OperatingMode {
Mode0,
Mode1,
}
Expand description
I2C operating mode
Variants§
Mode0
(Default) The meaning of the speed registers is literal speeds in the range of:
- 0 (full reverse)
- 128 (stop)
- 255 (full forward)
Mode1
The speed registers are interpreted as signed values:
- -128 (full reverse)
- 0 (stop)
- 127 (full forward)
Implementations§
Source§impl OperatingMode
impl OperatingMode
Trait Implementations§
Source§impl Clone for OperatingMode
impl Clone for OperatingMode
Source§fn clone(&self) -> OperatingMode
fn clone(&self) -> OperatingMode
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 moreimpl Copy for OperatingMode
Auto Trait Implementations§
impl Freeze for OperatingMode
impl RefUnwindSafe for OperatingMode
impl Send for OperatingMode
impl Sync for OperatingMode
impl Unpin for OperatingMode
impl UnwindSafe for OperatingMode
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