pub fn u8_to_u16_err_check(vec_u8: &[u8]) -> (Vec<u16>, bool, bool)
Expand description
Restore a vector of u16 from a vector of u8, using the first 2 bits of each u16 to get channel/cell error bit information
This interpretes two following u8 as an u16 Useful for deserialization of waveforms. Additioanlly, it preserves the error bits
§Arguments:
§Returns:
Vec<u16>
, ch_sync_err, cell_sync_err : if one of the error bits is
set, ch_sync_err or cell_sync_err
will be set to true