Function p25::coding::bch::decode [] [src]

pub fn decode(bits: u64) -> Option<(u16, usize)>

Try to decode the given 64-bit word to the nearest codeword, correcting up to 11 bit errors.

If decoding was successful, return Some((data, err)), where data is the 16 data bits and err is the number of bits corrected. Otherwise, return None to indicate an unrecoverable error.