Function p25::coding::reed_solomon::medium::decode
[−]
[src]
pub fn decode(buf: &mut [Hexbit; 24]) -> Option<(&[Hexbit], usize)>
Try to decode the given 24-hexbit word to the nearest codeword, correcting up to 4 hexbit errors (up to 24 bit errors.)
If decoding was successful, return Some((data, err))
, where data
is the 16
data hexbits and err
is the number of corrected hexbits. Otherwise, return
None
to indicate an unrecoverable error.