Function p25::coding::golay::standard::decode
[−]
pub fn decode(word: u32) -> Option<(u16, usize)>
Try to decode the given 23-bit word to the nearest codeword, correcting up to 3 errors and detecting 4 errors.
If decoding was successful, return Some((data, err))
, where data
is the 12
data bits and err
is the number of corrected bits. Otherwise, return None
to
indicate an unrecoverable error.