Skip to main content

Module protocol

Module protocol 

Source
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§

RadioConfig
Complete LoRa radio configuration.

Enums§

Bandwidth
LoRa signal bandwidth.
Command
Host → firmware commands.
ErrorCode
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.