Wireshark 4.5.0
The Wireshark network protocol analyzer
|
#include <wireshark.h>
Go to the source code of this file.
Functions | |
WS_DLL_PUBLIC uint8_t | crc5_usb_11bit_input (uint16_t input) |
WS_DLL_PUBLIC uint8_t | crc5_usb_19bit_input (uint32_t input) |
Declaration of CRC-5 routines and table
2019 Tomasz Mon desow.nosp@m.in@g.nosp@m.mail..nosp@m.com
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
WS_DLL_PUBLIC uint8_t crc5_usb_11bit_input | ( | uint16_t | input | ) |
Compute the 5-bit CRC value of a input value matching the CRC-5 defined in USB 2.0 Specification. This function calculates the CRC on low 11 bits of the input value. High bits are ignored.
input | Source data for which the CRC-5 should be calculated. |
WS_DLL_PUBLIC uint8_t crc5_usb_19bit_input | ( | uint32_t | input | ) |
Compute the 5-bit CRC value of a input value matching the CRC-5 defined in USB 2.0 Specification. This function calculates the CRC on low 19 bits of the input value. High bits are ignored.
input | Source data for which the CRC-5 should be calculated. |