|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lsst.ccs.drivers.modbus.CRC16
public class CRC16
Routines for generating 16-bit cyclic redundancy checksums
| Constructor Summary | |
|---|---|
CRC16(int poly)
Constructor |
|
| Method Summary | |
|---|---|
int |
generate(byte[] data)
Generates the custom CRC for some data |
void |
generate(byte[] data,
byte[] output,
int outoff)
|
int |
generate(byte[] data,
int offset,
int length)
|
void |
generate(byte[] data,
int offset,
int length,
byte[] output,
int outoff)
|
static int |
generateStd(byte[] data)
Generates the standard CRC for some data |
static void |
generateStd(byte[] data,
byte[] output,
int outoff)
|
static int |
generateStd(byte[] data,
int offset,
int length)
|
static void |
generateStd(byte[] data,
int offset,
int length,
byte[] output,
int outoff)
|
static void |
main(String[] args)
Test program |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRC16(int poly)
| Method Detail |
|---|
public int generate(byte[] data)
public int generate(byte[] data,
int offset,
int length)
public void generate(byte[] data,
byte[] output,
int outoff)
public void generate(byte[] data,
int offset,
int length,
byte[] output,
int outoff)
public static int generateStd(byte[] data)
public static int generateStd(byte[] data,
int offset,
int length)
public static void generateStd(byte[] data,
byte[] output,
int outoff)
public static void generateStd(byte[] data,
int offset,
int length,
byte[] output,
int outoff)
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||