lora-modulation
A minimal crate for providing LoRa modulation characteristics of:
- Bandwidth
- Spreading factor
- Coding rate
Provides utility for calculating time on air.
Usage
use ;
let length = 12;
let params = new;
let time_on_air = params.time_on_air_us; // length of payload
// Time on air is 144.384 ms
assert_eq!;
use ;
let symbols = 14;
let params = new;
let timeout = params.symbols_to_ms;
// Timeout is 458 ms
assert_eq!;