Struct i2c::SmbusReadWrite [] [src]

pub struct SmbusReadWrite<I>(pub I);

A wrapper around an i2c::ReadWrite that attempts to impl Smbus.

Repeated START is not supported, which may confuse some devices and probably makes this a non-conforming implementation.

Trait Implementations

impl<I: Master> Master for SmbusReadWrite<I>
[src]

The error type returned by I2C operations.

impl<I: Address> Address for SmbusReadWrite<I>
[src]

[src]

Sets the current slave to address. Read more

impl<I: ReadWrite> ReadWrite for SmbusReadWrite<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: ReadWrite> Smbus for SmbusReadWrite<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: ReadWrite> BlockTransfer for SmbusReadWrite<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: ReadWrite> Smbus20 for SmbusReadWrite<I>
[src]

[src]

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