pub fn manchester_encode_scalar(bits: &[u8], amplitude: f32) -> Vec<f32>Expand description
Scalar Manchester / Biphase Mark Code encoder.
Each input bit is expanded into 2 output samples:
0→[+amp, −amp](one transition in middle)1→[+amp, −amp](same shape, but polarity tracks the running state)
For a full LTC signal use crate::ltc::encoder::LtcEncoder; this function is the
reference implementation used to verify the SIMD path.
§Arguments
bits– raw bits to encode (0 or 1 per byte)amplitude– peak amplitude of the output signal (0.0–1.0)
§Returns
A Vec<f32> with 2 * bits.len() samples.