| Modifier and Type | Field and Description |
|---|---|
| private short | |
| private static short |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public short |
| crc | back to summary |
|---|---|
| private short crc | |
| polynomial | back to summary |
|---|---|
| private static short polynomial | |
| Crc16 | back to summary |
|---|---|
| public Crc16() Dummy Constructor | |
| add_bits | back to summary |
|---|---|
| public void add_bits(int bitstring, int length) Feed a bitstring to the crc calculation (0 < length <= 32). | |
| checksum | back to summary |
|---|---|
| public short checksum() Return the calculated checksum. Erase it for next calls to add_bits(). | |