#embedded-hal-i2c #embassy #utilities #spi #i2c-bus #async #traits

no-std embassy-embedded-hal

Collection of utilities to use embedded-hal and embedded-storage traits with Embassy

2 unstable releases

0.1.0 Jan 11, 2024
0.0.0 Sep 18, 2022

#582 in Embedded development

Download history 20/week @ 2024-01-05 278/week @ 2024-01-12 505/week @ 2024-01-19 306/week @ 2024-01-26 296/week @ 2024-02-02 369/week @ 2024-02-09 1135/week @ 2024-02-16 997/week @ 2024-02-23 1629/week @ 2024-03-01 2137/week @ 2024-03-08 1502/week @ 2024-03-15 1552/week @ 2024-03-22 786/week @ 2024-03-29 1376/week @ 2024-04-05

5,582 downloads per month
Used in 22 crates (7 directly)

MIT/Apache

260KB
5.5K SLoC

embassy-embedded-hal

Collection of utilities to use embedded-hal and embedded-storage traits with Embassy.

  • Shared SPI and I2C buses, both blocking and async, with a SetConfig trait allowing changing bus configuration (e.g. frequency) between devices on the same bus.
  • Async utilities
    • Adapters to convert from blocking to (fake) async.
    • Adapters to insert yields on trait operations.
  • Flash utilities
    • Split a flash memory into smaller partitions.
    • Concatenate flash memories together.
    • Simulated in-memory flash.

Dependencies

~1.2–1.6MB
~30K SLoC