Expand description
Per-modulation parameter structs for SET_CONFIG (PROTOCOL.md §10).
SET_CONFIG’s payload is a one-byte modulation identifier followed
by a modulation-specific struct. Each struct is fixed-layout
little-endian; FSK/GFSK alone carries a variable-length sync word at
its tail.
The crate models the whole universe of DongLoRa Protocol modulations even on
devices that physically can’t drive them. Firmware ultimately returns
EMODULATION for anything the chip doesn’t support, but the wire
codec stays uniform across all 1.0-compliant implementations.
Structs§
- Flrc
Config - FLRC configuration payload (13 bytes after
modulation_id). - FskConfig
- FSK / GFSK configuration payload (
PROTOCOL.md §10.2). - LoRa
Config - LoRa configuration payload (15 bytes after
modulation_id). - LrFhss
Config - LR-FHSS configuration payload (10 bytes after
modulation_id).
Enums§
- Flrc
Bitrate - FLRC bitrate enum (
PROTOCOL.md §10.4). - FlrcBt
- FLRC Gaussian BT-product enum (
PROTOCOL.md §10.4). - Flrc
Coding Rate - FLRC coding rate enum (
PROTOCOL.md §10.4). - Flrc
Preamble Len - FLRC preamble length enum (
PROTOCOL.md §10.4). - LoRa
Bandwidth - LoRa signal bandwidth enum (
PROTOCOL.md §10.1). The small integer is what goes on the wire, NOT the kHz value. - LoRa
Coding Rate - LoRa coding rate enum (
PROTOCOL.md §10.1). - LoRa
Header Mode - LoRa header mode (
PROTOCOL.md §10.1). - LrFhss
Bandwidth - LR-FHSS occupied-bandwidth enum (
PROTOCOL.md §10.3). - LrFhss
Coding Rate - LR-FHSS coding rate enum (
PROTOCOL.md §10.3). - LrFhss
Grid - LR-FHSS grid selection (
PROTOCOL.md §10.3). - Modulation
- Any of the four modulation configs, tagged by
ModulationId. - Modulation
Id - One-byte modulation selector (
PROTOCOL.md §10). Prefixes everySET_CONFIGpayload.