radio

Crates.ioradio
lib.rsradio
version0.12.1
sourcesrc
created_at2018-12-25 04:47:16.491115
updated_at2024-04-18 23:25:10.807788
descriptionGeneric traits for embedded packet radio devices
homepage
repositoryhttps://github.com/rust-iot/radio-hal
max_upload_size
id103704
size69,459
core (github:rust-iot:core)

documentation

README

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:

Commit count: 101

cargo fmt