[][src]Crate embedded_hal_mock

This is a collection of types that implement the embedded-hal traits.

The implementations never access real hardware. Instead, the hardware is mocked or no-op implementations are used.

The goal of the crate is to be able to test drivers in CI without having access to hardware.

Usage

See module-level docs for more information.

no_std

Currently this crate is not no_std. If you think this is important, let me know.

Modules

common

Common functionality used by the mock implementations.

delay

Delay mock implementations.

i2c

I²C mock implementations.

spi

SPI mock implementations.

Enums

MockError

Errors that may occur during mocking.