Struct linux_embedded_hal::I2cdev [−][src]
pub struct I2cdev { /* fields omitted */ }
Expand description
Newtype around i2cdev::linux::LinuxI2CDevice
that implements the embedded-hal
traits
Implementations
See i2cdev::linux::LinuxI2CDevice::new
for details.
Methods from Deref<Target = LinuxI2CDevice>
Set the slave address for this device
Typically the address is expected to be 7-bits but 10-bit addresses may be supported by the kernel driver in some cases. Little validation is done in Rust as the kernel is good at making sure things are valid.
Note that if you have created a device using
I2Device::new(...)
it is not necesasry to call this method
(it is done internally). Calling this method is only
necessary if you need to change the slave device and you do
not want to create a new device.