#embedded-hal #embassy #embassy-embedded-hal

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

#1174 in Embedded development

Download history 10669/week @ 2025-01-28 11631/week @ 2025-02-04 10258/week @ 2025-02-11 9765/week @ 2025-02-18 8329/week @ 2025-02-25 8646/week @ 2025-03-04 8835/week @ 2025-03-11 10055/week @ 2025-03-18 9687/week @ 2025-03-25 9457/week @ 2025-04-01 11095/week @ 2025-04-08 7273/week @ 2025-04-15 10693/week @ 2025-04-22 8649/week @ 2025-04-29 11006/week @ 2025-05-06 9262/week @ 2025-05-13

40,401 downloads per month
Used in 56 crates (17 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
~29K SLoC