aboutsummaryrefslogtreecommitdiffstats
path: root/epan/crc16-tvb.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/crc16-tvb.h')
-rw-r--r--epan/crc16-tvb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/crc16-tvb.h b/epan/crc16-tvb.h
index 203ca23652..454cfbc992 100644
--- a/epan/crc16-tvb.h
+++ b/epan/crc16-tvb.h
@@ -72,6 +72,13 @@ WS_DLL_PUBLIC guint16 crc16_ccitt_tvb_offset_seed(tvbuff_t *tvb, guint offset,
@return The calculated CRC_A. */
WS_DLL_PUBLIC guint16 crc16_iso14443a_tvb_offset(tvbuff_t *tvb, guint offset, guint len);
+/** Compute the 16bit CRC value of a tv buffer as defined in USB Standard.
+ @param tvb The tv buffer containing the data.
+ @param offset The offset into the tv buffer.
+ @param len The number of bytes to include in the computation.
+ @return The calculated CRC. */
+WS_DLL_PUBLIC guint16 crc16_usb_tvb_offset(tvbuff_t *tvb, guint offset, guint len);
+
/** Compute the "plain" CRC16 checksum of a tv buffer using the following
* parameters:
* Width = 16