Skip to main content

Crate donglora_protocol

Crate donglora_protocol 

Source
Expand description

Wire protocol types and fixed-size little-endian serialization.

Every integer is fixed-width LE. No varints, no zigzag. See docs/PROTOCOL.md for the complete specification.

Modules§

framing
COBS framing for the DongLoRa wire protocol.

Structs§

RadioConfig
Complete LoRa radio configuration.

Enums§

Bandwidth
LoRa signal bandwidth.
Command
Host → firmware commands.
ErrorCode
Error codes reported to the host.
Response
Firmware → host responses.

Constants§

MAX_PAYLOAD
Maximum LoRa payload size in bytes.
PREAMBLE_DEFAULT
Sentinel value for preamble_len: use the firmware default (16 symbols).
RADIO_CONFIG_SIZE
RadioConfig wire size (fixed).
TX_POWER_MAX
Sentinel value for tx_power_dbm: use the board’s maximum TX power.