\doxysection{src/core/crc16gen.c File Reference} \label{crc16gen_8c}\index{src/core/crc16gen.c@{src/core/crc16gen.c}} Osmocom generic CRC routines (for max 16 bits poly). {\ttfamily \#include $<$stdint.\+h$>$}\newline {\ttfamily \#include $<$osmocom/core/bits.\+h$>$}\newline {\ttfamily \#include $<$osmocom/core/crc16gen.\+h$>$}\newline \doxysubsection*{Functions} \begin{DoxyCompactItemize} \item uint16\+\_\+t \textbf{ osmo\+\_\+crc16gen\+\_\+compute\+\_\+bits} (const struct \textbf{ osmo\+\_\+crc16gen\+\_\+code} $\ast$code, const \textbf{ ubit\+\_\+t} $\ast$in, int \textbf{ len}) \begin{DoxyCompactList}\small\item\em Compute the CRC value of a given array of hard-\/bits. \end{DoxyCompactList}\item int \textbf{ osmo\+\_\+crc16gen\+\_\+check\+\_\+bits} (const struct \textbf{ osmo\+\_\+crc16gen\+\_\+code} $\ast$code, const \textbf{ ubit\+\_\+t} $\ast$in, int \textbf{ len}, const \textbf{ ubit\+\_\+t} $\ast$crc\+\_\+bits) \begin{DoxyCompactList}\small\item\em Checks the CRC value of a given array of hard-\/bits. \end{DoxyCompactList}\item void \textbf{ osmo\+\_\+crc16gen\+\_\+set\+\_\+bits} (const struct \textbf{ osmo\+\_\+crc16gen\+\_\+code} $\ast$code, const \textbf{ ubit\+\_\+t} $\ast$in, int \textbf{ len}, \textbf{ ubit\+\_\+t} $\ast$crc\+\_\+bits) \begin{DoxyCompactList}\small\item\em Computes and writes the CRC value of a given array of bits. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection{Detailed Description} Osmocom generic CRC routines (for max 16 bits poly).