pub fn decode_nocrc(&self, data: &[u8; 18]) -> Result<SparsnasPacket, SparsnasDecodeError> {
        if data[0] != 17 {
            return Err(SparsnasDecodeError::BadLength);
        }
        self.decode_nocrclen(data[1..18].try_into().unwrap())
    }
/// Decode a packet without CRC.
Decode a packet without CRC.
Decode a packet without CRC .
pub fn decode_nocrc(&self, data: &[u8; 18]) -> Result<SparsnasPacket, SparsnasDecodeError> {
        if data[0] != 17 {
            return Err(SparsnasDecodeError::BadLength);
        }
        self.decode_nocrclen(data[1..18].try_into().unwrap())
    }
pub fn decode_nocrc ( & self , data : & [ u8 ; 18 ] ) -> Result < SparsnasPacket , SparsnasDecodeError > { if data [ 0 ] != 17 { return Err ( SparsnasDecodeError :: BadLength ) ; } self . decode_nocrclen ( data [ 1 .. 18 ] . try_into ( ) . unwrap ( ) ) }
Decode a packet without CRC.
Decode a packet without CRC .
&self
data
&[u8; 18]
&self
data
&[u8; 18]