6 releases

0.8.0-alpha.5 Oct 7, 2021
0.8.0-alpha.3 Mar 31, 2021
0.8.0-alpha.2 Jan 12, 2021
0.8.0-alpha.1 Dec 31, 2020
0.8.0-alpha.0 Nov 29, 2020
Download history 182/week @ 2021-07-06 274/week @ 2021-07-13 489/week @ 2021-07-20 361/week @ 2021-07-27 252/week @ 2021-08-03 164/week @ 2021-08-10 237/week @ 2021-08-17 1011/week @ 2021-08-24 1053/week @ 2021-08-31 163/week @ 2021-09-07 181/week @ 2021-09-14 1426/week @ 2021-09-21 469/week @ 2021-09-28 1261/week @ 2021-10-05 309/week @ 2021-10-12 345/week @ 2021-10-19

2,201 downloads per month
Used in 2 crates

MIT license

57KB
1.5K SLoC

driver-pal

A helper package for rust-embedded driver traits and implementations to assist with constructing drivers for embedded devices, currently focussed on SPI with the intent to extend this to support I2C in the future. Previously known as embedded-spi, new releases at crates.io/crates/driver-pal.

This provides:

  • a CS pin trait to communicate CS control for SPI based drivers
  • a Wrapper type to provide this for an SPI and OutputPin implementation
  • a Hal that abstracts over a number of SPI implementations to assist with writing driver utilities
  • a Mock helper for testing drivers based on this
  • a set of compatibility shims for c FFI use with dependency injected drivers

Status

GitHub tag Build Status Crates.io Docs.rs

Open Issues

Currently patched-to-heck waiting on embedded-hal version v1.0.0-alpha.3 with transactional SPI, and a bunch of downstream patches that depend on this. You'll need to add the following patch line to any top-level project consuming this library:

[patch.crates-io]
embedded-hal = { git = "https://github.com/rust-embedded/embedded-hal.git", branch = "master" }

Dependencies

~0.1–1.2MB
~22K SLoC