msp_protocol
Rust implementation of the MultiWii Serial Protocol (MSP v1 + v2).
Features
- Streaming parser (
MspParser) — 1 byte → state machine → optional packet - Serializer — build & transmit MSP v1/v2 frames
- Zero-copy payload access (
decode_as<T>()) usingpacked_struct - Tiny footprint (
smallvecpayload buffer)
Quick start
use ;
let mut port = wait_for_port;
let mut parser = from_fc;
let mut buf = ;
send_request?;
loop