Struct i2c_parser::I2cEngine
[−]
[src]
pub struct I2cEngine { /* fields omitted */ }
Structure for parsing I2C Messages from raw SDA and SCL inputs
Methods
impl I2cEngine
[src]
fn new() -> I2cEngine
Create a new I2CEngine in the idle and empty state
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