Function p25::coding::hamming::shortened::decode    
                   
                       [−]
                   
               [src]
pub fn decode(word: u16) -> Option<(u8, usize)>
Try to decode the given 10-bit word to the nearest codeword, correcting up to 1 error.
If decoding was successful, return Some((data, err)), where data is the 6
data bits and err is the number of corrected bits. Otherwise, return None to
indicate an unrecoverable error.