pub struct I2cEngine { /* private fields */ }
Expand description
Structure for parsing I2C Messages from raw SDA and SCL inputs
Implementations§
Source§impl I2cEngine
impl I2cEngine
Sourcepub fn update_i2c(&mut self, new_scl: bool, new_sda: bool) -> DecodeState
pub fn update_i2c(&mut self, new_scl: bool, new_sda: bool) -> DecodeState
Process one sample of SDA and SCL data from an I2C bus.
Returns the current state, as well as a message if a STOP condition was just received
Trait Implementations§
Auto Trait Implementations§
impl Freeze for I2cEngine
impl RefUnwindSafe for I2cEngine
impl Send for I2cEngine
impl Sync for I2cEngine
impl Unpin for I2cEngine
impl UnwindSafe for I2cEngine
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