Expand description
Wire protocol types and fixed-size little-endian serialization.
Mirrors the firmware’s protocol.rs using std types. Every integer is
fixed-width LE.
Structs§
- Radio
Config - Complete LoRa radio configuration.
Enums§
- Bandwidth
- LoRa signal bandwidth.
- Command
- Host → firmware commands.
- Error
Code - Error codes reported by the firmware.
- Response
- Firmware → host responses.
Constants§
- CMD_
TAG_ SET_ CONFIG - Command tag for SetConfig.
- CMD_
TAG_ START_ RX - Command tag for StartRx.
- CMD_
TAG_ STOP_ RX - Command tag for StopRx.
- ERROR_
INVALID_ CONFIG - Error code for InvalidConfig.
- 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).
- RESP_
TAG_ ERROR - Response tag for Error.
- RESP_
TAG_ OK - Response tag for Ok.
- RESP_
TAG_ RX_ PACKET - Response tag for RxPacket.
- TX_
POWER_ MAX - Sentinel value for
tx_power_dbm: use the board’s maximum TX power.