Class Ax25Fcs

java.lang.Object
io.github.dkaukov.afsk.atoms.Ax25Fcs

public class Ax25Fcs extends Object
  • 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

      public static int calculateFcs(byte[] data, Map<Integer,Byte> corrections)
      Calculate the 16-bit AX.25 CRC (FCS) for the given data with optional bit corrections.
      Parameters:
      data - Byte array of the frame data
      corrections - List of bit corrections to apply before calculating FCS
      Returns:
      16-bit CRC result