fn bits_to_u16_padded(bits: &[bool], start: usize, len: usize) -> u16
Reads up to len bits starting at start, zero-padding if out of bounds.
len
start