Type Definition embedded_hal_mock::i2c::Mock

source ·
pub type Mock<'a> = Generic<'a, Transaction>;
Expand description

Mock I2C implementation

This supports the specification and evaluation of expectations to allow automated testing of I2C based drivers. Mismatches between expectations will cause runtime assertions to assist in locating the source of the fault.

Trait Implementations§

Error type
Reads enough bytes from slave with address to fill buffer Read more
Error type
Writes bytes to slave with address address Read more
Error type
Writes bytes to slave with address address and then reads enough bytes to fill buffer in a single transaction Read more