DFDL4S (DFDL for Space Library)
Static Public Member Functions | List of all members
org.esa.s2g.dfdllib.quality.CRCDecoder Class Reference

Static Public Member Functions

static int decode (byte[] data) throws Exception
 

Detailed Description

The CRCDecoder class provided functionality for validating the CRC of a data frame

Member Function Documentation

◆ decode()

static int org.esa.s2g.dfdllib.quality.CRCDecoder.decode ( byte[]  data) throws Exception
static

Decode the data frame using the algorithm CRC16 CCITT false (with initial value 0xFFFF and polynomial 0x1021) following the description provided in [1] and [2].

[1] https://public.ccsds.org/Pubs/130x1g3.pdf (section 9.4) [2] https://cwe.ccsds.org/sls/docs/SLS-CandS/Meeting%20Public%20Materials/2006/200606.Rome.Meetings/CRC%20Discussion/crc_clarify2.pdf

Parameters
dataThe frame data to decode (without CRC element)
Returns
the parity value in UINT_16
Exceptions
Exceptionwhen:
  • data parameter == null

The documentation for this class was generated from the following file: