Struct embedded_hal_mock::I2cMock [] [src]

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

Methods

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

[src]

[src]

Set data that will be read by read().

[src]

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

[src]

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

Trait Implementations

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

Error type

[src]

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

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

Error type

[src]

Sends bytes to slave with address addr Read more

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

Error type

[src]

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>