public class CRC16
extends java.lang.Object
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
Modifier and Type | Method and Description |
---|---|
static int |
compute(byte[] dataToCrc)
Perform the CRC16 on an array of data elements based on a
zero seed.
|
static int |
compute(byte[] dataToCrc,
int seed)
Perform the CRC16 on an array of data elements based on the
provided seed.
|
static int |
compute(byte[] dataToCrc,
int off,
int len)
Perform the CRC16 on an array of data elements based on a
zero seed.
|
static int |
compute(byte[] dataToCrc,
int off,
int len,
int seed)
Perform the CRC16 on an array of data elements based on the
provided seed.
|
static int |
compute(int dataToCrc)
Perform the CRC16 on the data element based on a zero seed.
|
static int |
compute(int dataToCrc,
int seed)
Perform the CRC16 on the data element based on the provided seed.
|
public static int compute(int dataToCrc)
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
dataToCrc
- data element on which to perform the CRC16public static int compute(int dataToCrc, int seed)
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
dataToCrc
- data element on which to perform the CRC16public static int compute(byte[] dataToCrc)
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
dataToCrc
- array of data elements on which to perform the CRC16public static int compute(byte[] dataToCrc, int off, int len)
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
dataToCrc
- array of data elements on which to perform the CRC16off
- offset into the data arraylen
- length of data to CRC16public static int compute(byte[] dataToCrc, int off, int len, int seed)
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
dataToCrc
- array of data elements on which to perform the CRC16off
- offset into the data arraylen
- length of data to CRC16seed
- seed to use for CRC16public static int compute(byte[] dataToCrc, int seed)
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
dataToCrc
- array of data elements on which to perform the CRC16seed
- seed to use for CRC16Copyright © 1999-2012 Maxim Integrated Products. All Rights Reserved.