Struct rust_i2c::I2CStream [−][src]
pub struct I2CStream { /* fields omitted */ }
An implementation of i2c_hal::Stream
which uses the i2c_linux
crate
for communication with actual I2C hardware.
Methods
impl I2CStream
[src]
impl I2CStream
pub fn new(path: &str, slave: u16) -> Self
[src]
pub fn new(path: &str, slave: u16) -> Self
Creates new I2CStream instance
Arguments
path
- File system path to I2C device handle
slave
- Address of slave I2C device