![]() |
Wireshark
4.3.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 in@g mail. com
Wireshark - Network traffic analyzer By Gerald Combs geral Copyright 1998 Gerald Combs d@wi resha rk.o rg
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. |