Struct i2c_i2cdev::I2cDev [] [src]

pub struct I2cDev<I>(pub I);

A wrapper around an I2CDevice type that impls the i2c traits.

This is required due to Rust's orphan rules.

Trait Implementations

impl<I: I2CDevice> Master for I2cDev<I>
[src]

The error type returned by I2C operations.

impl Address for I2cDev<LinuxI2CDevice>
[src]

[src]

Sets the current slave to address. Read more

impl<I: I2CDevice> ReadWrite for I2cDev<I>
[src]

[src]

Initiate an isolated read transfer on the I2C bus, followed by a STOP.

[src]

Initiate an isolated write transfer on the I2C bus, followed by a STOP.

impl<I: I2CDevice> Smbus for I2cDev<I>
[src]

[src]

Sends a single bit to the device, in the place of the rd/wr address bit.

[src]

Reads a single byte from a device without specifying a register.

[src]

Sends a single byte to the device

[src]

Reads a byte from the designated register.

[src]

Writes a byte to the designated register.

[src]

Reads a 16-bit word from the designated register.

[src]

Writes a 16-bit word to the designated register.

[src]

Writes a 16-bit word to the specified register, then reads a 16-bit word in response. Read more

[src]

Reads up to 32 bytes from the designated device register. Read more

[src]

Writes up to 32 bytes to the designated device register.

impl<I: I2CDevice> BlockTransfer for I2cDev<I>
[src]

[src]

Reads a block of bytes from the designated device register. Read more

[src]

Writes a block of bytes to the designated device register. Read more

impl<I: I2CDevice> Smbus20 for I2cDev<I>
[src]

[src]

Sends up to 31 bytes of data to the designated register, and reads up to 31 bytes in return. Read more

Auto Trait Implementations

impl<I> Send for I2cDev<I> where
    I: Send

impl<I> Sync for I2cDev<I> where
    I: Sync