Crate radio[][src]

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/ryankurte/rust-radio

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

BasicChannel

Default / Standard radio channel object for radio devices with integer channels

BasicInfo

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

RadioState
Receive

Receive trait for radios that can receive packets

ReceiveInfo

ReceiveInfo trait for receive information objects

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