examples/crc8/crc8.js
function CRC8(polynomial) { // constructor takes an optional polynomial type from CRC8.POLY
if (polynomial == null) polynomial = CRC8.POLY.CRC8_CCITT
//if (polynomial == null) polynomial = CRC8.POLY.CRC8_DALLAS_MAXIM
  
  this.table = CRC8.generateTable(polynomial);
}
function CRC8(polynomial) { // constructor takes an optional polynomial type from CRC8.POLY
if (polynomial == null) polynomial = CRC8.POLY.CRC8_CCITT
//if (polynomial == null) polynomial = CRC8.POLY.CRC8_DALLAS_MAXIM
  
  this.table = CRC8.generateTable(polynomial);
}
function CRC8 ( polynomial ) { // constructor takes an optional polynomial type from CRC8.POLY if ( polynomial == null ) polynomial = CRC8 . POLY . CRC8_CCITT //if (polynomial == null) polynomial = CRC8.POLY.CRC8_DALLAS_MAXIM this . table = CRC8 . generateTable ( polynomial ) ; }
"Class" for calculating CRC8 checksums...
Class for calculating CRC8 checksums ...