Package io.github.dkaukov.afsk.atoms
Class Ax25Fcs
java.lang.Object
io.github.dkaukov.afsk.atoms.Ax25Fcs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateFcs(byte[] data) Calculate the 16-bit AX.25 CRC (FCS) for the given data.static intcalculateFcs(byte[] data, Map<Integer, Byte> corrections) Calculate the 16-bit AX.25 CRC (FCS) for the given data with optional bit corrections.
-
Constructor Details
-
Ax25Fcs
public Ax25Fcs()
-
-
Method Details
-
calculateFcs
public static int calculateFcs(byte[] data) Calculate the 16-bit AX.25 CRC (FCS) for the given data.- Parameters:
data- Byte array of the frame data- Returns:
- 16-bit CRC result
-
calculateFcs
Calculate the 16-bit AX.25 CRC (FCS) for the given data with optional bit corrections.- Parameters:
data- Byte array of the frame datacorrections- List of bit corrections to apply before calculating FCS- Returns:
- 16-bit CRC result
-