//! Common functions and values shared between [`rpk-config`](../rpk-config) and
//! [`rpk-firmware`](../rpk-firmware) crates.
/// The protocol version of a keyboard configuration object.
///
/// This constant defines the protocol version used by keyboard configuration objects generated by the
/// [`rpk-config`](../rpk-config) tool.
/// It's essential for compatibility between different versions of the tool and its consumers.
pub const PROTOCOL_VERSION: u16 = 1;
///
/// This function takes two 16-bit unsigned integers, `n1` and `n2`, and combines them into a 32-bit floating-point number.
/// The bytes of `n1` and `n2` are interleaved and interpreted as a little-endian 32-bit floating-point number.
///
/// # Example
///
/// ```rust
/// let f = f32_from_u16(0x4120, 0x0000);
/// assert_eq!(f, 10.0);
/// ```