6acc12cde8e6268376664b1ac345670412b43007
Hand-encoded byte sequences for RadioConfig, every Command tag, and every Response tag, taken directly from the spec. Fields use hex-clean values (freq_hz = 0x12345678, sync_word = 0xABCD, etc.) so each little-endian byte is visually verifiable. Locks firmware and host to the written spec — a refactor that quietly changes a field layout fails here, not in the field.
donglora-protocol
Wire protocol types and COBS framing for DongLoRa, shared between firmware
and host crates (client-rs, mux-rs, bridge).
no_std by default. defmt::Format derives are opt-in via the default
defmt feature. Host consumers disable default features:
donglora-protocol = { version = "0.1", default-features = false }
Status
Pre-1.0. Currently consumed by path dep; will publish to crates.io once the surface area settles.
Layout
src/lib.rs—Command,Response,RadioConfig,ErrorCode, etc.src/framing.rs—CobsDecoder+cobs_encode_responsefor USB/UART transports.tests/— proptest suite (roundtrips, bounded-capacity invariants, regional-regs, duty-cycle math).fuzz/— cargo-fuzz targets on the parser and framer.
Languages
Rust
98.6%
Just
1.4%