Class CRC


  • class CRC
    extends java.lang.Object
    A simple class the hold and calculate the CRC for sanity checking of the data.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int[] crc32Table  
      private int globalCrc  
    • Constructor Summary

      Constructors 
      Constructor Description
      CRC()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getFinalCRC()  
      (package private) int getGlobalCRC()  
      (package private) void initialiseCRC()  
      (package private) void setGlobalCRC​(int newCrc)  
      (package private) void updateCRC​(int inCh)  
      (package private) void updateCRC​(int inCh, int repeat)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • crc32Table

        private static final int[] crc32Table
      • globalCrc

        private int globalCrc
    • Constructor Detail

      • CRC

        CRC()
    • Method Detail

      • initialiseCRC

        void initialiseCRC()
      • getFinalCRC

        int getFinalCRC()
      • getGlobalCRC

        int getGlobalCRC()
      • setGlobalCRC

        void setGlobalCRC​(int newCrc)
      • updateCRC

        void updateCRC​(int inCh)
      • updateCRC

        void updateCRC​(int inCh,
                       int repeat)