libosmocore 1.10.0.62-c31e0
Osmocom core library
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
crc16.c File Reference

This was copied from the linux kernel and adjusted for our types. More...

Functions

uint16_t osmo_crc16 (uint16_t crc, uint8_t const *buffer, size_t len)
 Compute 16bit CCITT polynome 0x8408 (x^0 + x^5 + x^12) over given buffer. More...
 
uint16_t osmo_crc16_ccitt (uint16_t crc, uint8_t const *buffer, size_t len)
 Compute 16bit CCITT polynome 0x8408 (x^0 + x^5 + x^12) over given buffer. More...
 

Variables

uint16_t const osmo_crc16_table [256]
 CRC table for the CRC-16. More...
 
uint16_t const osmo_crc16_ccitt_table [256]
 CRC table for the CCITT CRC-6. More...
 

Detailed Description

This was copied from the linux kernel and adjusted for our types.