rmk_types/protocol/mod.rs
1//! Communication protocol definitions.
2//!
3//! RMK supports two host-communication protocols:
4//!
5//! - [`vial`] — Legacy Vial/Via protocol for compatibility with the Vial GUI.
6//! Always available.
7//! - [`rynk`] — RMK native protocol. Carries `KeyAction`, `Combo`, `Morse`,
8//! `Fork`, `EncoderAction`, `BatteryStatus`, `BleStatus` on the wire over
9//! a 3-byte fixed header + postcard payload, COBS-framed. Enabled by the `rynk` feature.
10//!
11//! The two protocols are mutually exclusive at the firmware level
12//! (`rynk` and `vial` features cannot be enabled together).
13
14#[cfg(feature = "rynk")]
15pub mod rynk;
16pub mod vial;