\doxysection{src/core/crc16.c File Reference}
\label{crc16_8c}\index{src/core/crc16.c@{src/core/crc16.c}}


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


{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\newline
{\ttfamily \#include $<$osmocom/core/crc16.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
uint16\+\_\+t \textbf{ osmo\+\_\+crc16} (uint16\+\_\+t crc, uint8\+\_\+t const $\ast$\textbf{ buffer}, size\+\_\+t \textbf{ len})
\begin{DoxyCompactList}\small\item\em Compute 16bit CCITT polynome 0x8408 (x$^\wedge$0 + x$^\wedge$5 + x$^\wedge$12) over given buffer. \end{DoxyCompactList}\item 
uint16\+\_\+t \textbf{ osmo\+\_\+crc16\+\_\+ccitt} (uint16\+\_\+t crc, uint8\+\_\+t const $\ast$\textbf{ buffer}, size\+\_\+t \textbf{ len})
\begin{DoxyCompactList}\small\item\em Compute 16bit CCITT polynome 0x8408 (x$^\wedge$0 + x$^\wedge$5 + x$^\wedge$12) over given buffer. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
uint16\+\_\+t const \textbf{ osmo\+\_\+crc16\+\_\+table} [256]
\begin{DoxyCompactList}\small\item\em CRC table for the CRC-\/16. \end{DoxyCompactList}\item 
uint16\+\_\+t const \textbf{ osmo\+\_\+crc16\+\_\+ccitt\+\_\+table} [256]
\begin{DoxyCompactList}\small\item\em CRC table for the CCITT CRC-\/6. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This was copied from the linux kernel and adjusted for our types. 

