\doxysection{include/osmocom/core/crc32gen.h File Reference}
\label{crc32gen_8h}\index{include/osmocom/core/crc32gen.h@{include/osmocom/core/crc32gen.h}}


Osmocom generic CRC routines (for max 32 bits poly) header.  


{\ttfamily \#include $<$stdint.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/bits.\+h$>$}\newline
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ osmo\+\_\+crc32gen\+\_\+code}
\begin{DoxyCompactList}\small\item\em structure describing a given CRC code of max 32 bits \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
uint32\+\_\+t \textbf{ osmo\+\_\+crc32gen\+\_\+compute\+\_\+bits} (const struct \textbf{ osmo\+\_\+crc32gen\+\_\+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\+\_\+crc32gen\+\_\+check\+\_\+bits} (const struct \textbf{ osmo\+\_\+crc32gen\+\_\+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\+\_\+crc32gen\+\_\+set\+\_\+bits} (const struct \textbf{ osmo\+\_\+crc32gen\+\_\+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 32 bits poly) header. 

