#embedded-hal #driver #async

no-std embassy-embedded-hal

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

4 releases (breaking)

0.3.0 Jan 5, 2025
0.2.0 Aug 5, 2024
0.1.0 Jan 11, 2024
0.0.0 Sep 18, 2022

#1910 in Embedded development

Download history 5646/week @ 2024-12-06 8402/week @ 2024-12-13 6914/week @ 2024-12-20 4699/week @ 2024-12-27 10979/week @ 2025-01-03 13706/week @ 2025-01-10 11329/week @ 2025-01-17 9825/week @ 2025-01-24 11681/week @ 2025-01-31 10852/week @ 2025-02-07 9464/week @ 2025-02-14 9071/week @ 2025-02-21 9130/week @ 2025-02-28 8287/week @ 2025-03-07 10193/week @ 2025-03-14 7294/week @ 2025-03-21

35,998 downloads per month
Used in 49 crates (15 directly)

MIT/Apache

360KB
8K 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