#[repr(C)]pub enum PamojaI2cDirection {
Write = 0,
Read = 1,
}Expand description
Which direction an I2C transfer runs, as the read/write bit encodes it.
Variants§
Write = 0
The controller writes to the device. Read/write bit 0.
Read = 1
The controller reads from the device. Read/write bit 1.
Trait Implementations§
Source§impl Clone for PamojaI2cDirection
impl Clone for PamojaI2cDirection
Source§fn clone(&self) -> PamojaI2cDirection
fn clone(&self) -> PamojaI2cDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaI2cDirection
Source§impl Debug for PamojaI2cDirection
impl Debug for PamojaI2cDirection
impl Eq for PamojaI2cDirection
Source§impl From<PamojaI2cDirection> for Direction
impl From<PamojaI2cDirection> for Direction
Source§fn from(value: PamojaI2cDirection) -> Self
fn from(value: PamojaI2cDirection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PamojaI2cDirection
impl PartialEq for PamojaI2cDirection
Source§fn eq(&self, other: &PamojaI2cDirection) -> bool
fn eq(&self, other: &PamojaI2cDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaI2cDirection
Auto Trait Implementations§
impl Freeze for PamojaI2cDirection
impl RefUnwindSafe for PamojaI2cDirection
impl Send for PamojaI2cDirection
impl Sync for PamojaI2cDirection
impl Unpin for PamojaI2cDirection
impl UnsafeUnpin for PamojaI2cDirection
impl UnwindSafe for PamojaI2cDirection
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