|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dalsemi.onewire.utils.CRC8
CRC8 is a class to contain an implementation of the Cyclic-Redundency-Check CRC8 for the iButton. The CRC8 is used in the 1-Wire Network address of all iButtons and 1-Wire devices.
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
| Method Summary | |
static int |
compute(byte[] dataToCrc)
Perform the CRC8 on an array of data elements based on a zero seed. |
static int |
compute(byte[] dataToCrc,
int seed)
Perform the CRC8 on an array of data elements based on the provided seed. |
static int |
compute(byte[] dataToCrc,
int off,
int len)
Perform the CRC8 on an array of data elements based on a zero seed. |
static int |
compute(byte[] dataToCrc,
int off,
int len,
int seed)
Perform the CRC8 on an array of data elements based on the provided seed. |
static int |
compute(int dataToCRC)
Perform the CRC8 on the data element based on a zero seed. |
static int |
compute(int dataToCRC,
int seed)
Perform the CRC8 on the data element based on the provided seed. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public static int compute(int dataToCRC,
int seed)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCrc - data element on which to perform the crc8dataToCRC - seed - seed the crc8 with this valuepublic static int compute(int dataToCRC)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCrc - data element on which to perform the crc8public static int compute(byte[] dataToCrc)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCrc - array of data elements on which to perform the crc8
public static int compute(byte[] dataToCrc,
int off,
int len)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCrc - array of data elements on which to perform the crc8off - offset into arraylen - length of data to crc
public static int compute(byte[] dataToCrc,
int off,
int len,
int seed)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCrc - array of data elements on which to perform the crc8off - offset into arraylen - length of data to crcseed - seed to use for crc8
public static int compute(byte[] dataToCrc,
int seed)
CRC8 is based on the polynomial = X^8 + X^5 + X^4 + 1.
dataToCrc - array of data elements on which to perform the crc8seed - seed to use for crc8
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||