15 releases (8 breaking)

0.9.0 Apr 11, 2021
0.8.1 Dec 31, 2020
0.7.0 Apr 24, 2020
0.6.0 Mar 8, 2020
0.1.0 Dec 25, 2018
Download history 139/week @ 2021-02-25 141/week @ 2021-03-04 19/week @ 2021-03-11 1351/week @ 2021-03-18 1259/week @ 2021-03-25 2214/week @ 2021-04-01 2255/week @ 2021-04-08 995/week @ 2021-04-15 294/week @ 2021-04-22 379/week @ 2021-04-29 48/week @ 2021-05-06 53/week @ 2021-05-13 649/week @ 2021-05-20 1279/week @ 2021-05-27 1298/week @ 2021-06-03 901/week @ 2021-06-10

3,092 downloads per month
Used in 4 crates

MIT license

60KB
1.5K SLoC

Rust IoT Radio Abstraction(s)

An embedded-hal like abstraction for digital radio devices, this is intended to provide a common basis for implementing packet radio drivers, and for extension to support 802.15.4 / BLE etc. in the hope that we can construct embedded network stacks using this common abstraction.

Radio devices should implement the core traits, and then gain automatic blocking helper functions. Experimental async/await helpers are available behind the nonblocking feature flag, this uses dtolnay/async-trait, imports std and async-std, and requires a nightly compiler, and a MockRadio implementation for testing is available behind the mock feature flag (also requiring nightly).

Status

Work In Progress, expect major API changes

GitHub tag Build Status Crates.io Docs.rs

Open Issues

Features:

  • Generic Traits
    • Transmit
    • Receive
    • Set Channel
    • Fetch RSSI
    • Register Access
    • Configuration (?)
  • Mode Specific Traits (and definitions)
    • 802.15.4
    • BLE
    • LoRa
  • Helpers
    • Blocking
    • Async

Examples

For similar interfaces, check out:

Dependencies

~0.8–3MB
~52K SLoC