#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

#615 in Embedded development

Download history 403/week @ 2024-01-24 270/week @ 2024-01-31 308/week @ 2024-02-07 622/week @ 2024-02-14 1328/week @ 2024-02-21 1402/week @ 2024-02-28 2020/week @ 2024-03-06 1677/week @ 2024-03-13 1691/week @ 2024-03-20 860/week @ 2024-03-27 1223/week @ 2024-04-03 1511/week @ 2024-04-10 1175/week @ 2024-04-17 1110/week @ 2024-04-24 1236/week @ 2024-05-01 694/week @ 2024-05-08

4,550 downloads per month
Used in 24 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