Struct embedded_hal_mock::I2cMock[][src]

pub struct I2cMock<'a> { /* fields omitted */ }

Methods

impl<'a> I2cMock<'a>
[src]

Set data that will be read by read().

Return the data that was written by the last write command.

Return the address that was used by the last read or write command.

Trait Implementations

impl<'a> Read for I2cMock<'a>
[src]

Error type

Reads enough bytes from slave with address to fill buffer Read more

impl<'a> Write for I2cMock<'a>
[src]

Error type

Sends bytes to slave with address addr Read more

impl<'a> WriteRead for I2cMock<'a>
[src]

Error type

Sends bytes to slave with address addr and then reads enough bytes to fill buffer in a single transaction Read more

Auto Trait Implementations

impl<'a> Send for I2cMock<'a>

impl<'a> Sync for I2cMock<'a>