spi-hal
Previously known as embedded-spi, new releases at crates.io/crates/spi-hal.
A helper package for rust-embedded SPI traits and implementations, including testing approactes prior to proposing additions to embedded-hal.
This provides:
- A Transactional SPI interface (https://github.com/rust-embedded/embedded-hal/pull/191)
- A
CSpin trait to communicate CS control for drivers - a
Wrappertype to provide this for an SPI and OutputPin implementation - a
Halthat abstracts over a number of SPI implementations to assist with writing driver utilities - a
Mockhelper for testing drivers based on this - a set of compatibility shims for c FFI use with dependency injected drivers