Expand description
Abstract packet radio interfaces
This package defines traits for packet radio devices, as well as blocking and async implementations using these traits, and a mock device to support application level testing.
§https://github.com/rust-iot/radio-hal
§Copyright 2020-2022 Ryan Kurte
Modules§
- blocking
- Blocking APIs on top of the base radio traits
- config
- Config provides traits for standard radio configuration
- helpers
- Provides common helpers for implementing radio utilities
- mock
- Mock radio driver for application testing
- nonblocking
- Non-blocking (async/await) APIs on top of the base radio traits
Note that this requires use of unstable
feature(generic_associated_types)
Structs§
- Basic
Channel - Default / Standard radio channel object for radio devices with integer channels
- Basic
Info - Default / Standard packet information structure for radio devices that provide only rssi and lqi information
Traits§
- Busy
- Busy trait for checking whether the radio is currently busy and should not be interrupted
- Channel
- Channel trait for configuring radio channelization
- Interrupts
- Interrupts trait allows for reading interrupt state from the device, as well as configuring interrupt pins.
- Power
- Power trait for configuring radio power
- Radio
- Radio trait combines Base, Configure, Send and Receive for a generic radio object
- Radio
State - Receive
- Receive trait for radios that can receive packets
- Receive
Info - ReceiveInfo trait for receive information objects
- Register
- Register contains the address and value of a register.
- Registers
- Registers trait provides register level access to the radio device.
- Rssi
- Rssi trait allows polling for RSSI on the current channel
- State
- State trait for configuring and reading radio states
- Transmit
- Transmit trait for radios that can transmit packets