diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-07-25 08:57:33 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-07-25 08:57:33 +0000 |
commit | 967a3c9ce423993a696b27aa179e5f4a8329a275 (patch) | |
tree | da4095c3b88edb7c43785c08747de3a9e107a1e5 /wsutil/crc16-plain.h | |
parent | 11c86ec476f363c8e8eac9ccc7e827a3c92943c8 (diff) |
From Rishie Sharma:
Add a new CRC16 routine.
svn path=/trunk/; revision=43982
Diffstat (limited to 'wsutil/crc16-plain.h')
-rw-r--r-- | wsutil/crc16-plain.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/wsutil/crc16-plain.h b/wsutil/crc16-plain.h index 63c6c714f7..155ec6cc66 100644 --- a/wsutil/crc16-plain.h +++ b/wsutil/crc16-plain.h @@ -79,6 +79,26 @@ static inline crc16_plain_t crc16_plain_finalize(crc16_plain_t crc) return crc ^ 0x0000; } +/* Generated on Tue Jul 24 09:08:46 2012, + * by pycrc v0.7.10, http://www.tty1.net/pycrc/ + * using the configuration: + * Width = 16 + * Poly = 0x8005 + * XorIn = 0x0000 + * ReflectIn = False + * XorOut = 0x0000 + * ReflectOut = False + * Algorithm = table-driven + * + * Calculate the crc-16 (x^16 + x^15 + x^2 + 1) value for data. Note that this + * CRC is not equal to crc16_plain. + * + * \param data Pointer to a buffer of \a data_len bytes. + * \param data_len Number of bytes in the \a data buffer. + * \return The crc value. + *****************************************************************************/ +guint16 crc16_8005_noreflect_noxor(const guint8 *data, guint64 data_len); + #ifdef __cplusplus } /* closing brace for extern "C" */ |