Crate crc16 [−] [src]
crc16
Installation
[dependencies]
crc16 = "*"
Usage
use crc16::*; // In one pass assert_eq!(State::<ARC>::calculate(b"123456789"), 0xBB3D); // Incrementally let mut state = State::<ARC>::new(); state.update(b"12345"); state.update(b"6789"); assert_eq!(state.get(), 0xBB3D);
Structs
State |
State of crc calculation. |
Enums
ARC |
ARC |
AUG_CCITT |
CRC-16/AUG-CCITT |
BUYPASS |
CRC-16/BUYPASS |
CCITT_FALSE |
CRC-16/CCITT-FALSE |
CDMA2000 |
CRC-16/CDMA2000 |
CRC_A |
CRC-A |
DDS_110 |
CRC-16/DDS-110 |
DECT_R |
CRC-16/DECT-R |
DECT_X |
CRC-16/DECT-X |
DNP |
CRC-16/DNP |
EN_13757 |
CRC-16/EN-13757 |
GENIBUS |
CRC-16/GENIBUS |
KERMIT |
KERMIT |
MAXIM |
CRC-16/MAXIM |
MCRF4XX |
CRC-16/MCRF4XX |
MODBUS |
MODBUS |
RIELLO |
CRC-16/RIELLO |
T10_DIF |
CRC-16/T10-DIF |
TELEDISK |
CRC-16/TELEDISK |
TMS37157 |
CRC-16/TMS37157 |
USB |
CRC-16/USB |
XMODEM |
XMODEM |
X_25 |
X-25 |
Traits
CrcType |