\doxysection{osmo\+\_\+crc32gen\+\_\+code Struct Reference}
\label{structosmo__crc32gen__code}\index{osmo\_crc32gen\_code@{osmo\_crc32gen\_code}}


structure describing a given CRC code of max 32 bits  




{\ttfamily \#include $<$crc32gen.\+h$>$}

\doxysubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
int \textbf{ bits}
\begin{DoxyCompactList}\small\item\em Actual number of bits of the CRC. \end{DoxyCompactList}\item 
uint32\+\_\+t \textbf{ poly}
\begin{DoxyCompactList}\small\item\em Polynom (normal representation, MSB omitted. \end{DoxyCompactList}\item 
uint32\+\_\+t \textbf{ init}
\begin{DoxyCompactList}\small\item\em Initialization value of the CRC state. \end{DoxyCompactList}\item 
uint32\+\_\+t \textbf{ remainder}
\begin{DoxyCompactList}\small\item\em Remainder of the CRC (final XOR) \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
structure describing a given CRC code of max 32 bits 

\doxysubsection{Field Documentation}
\mbox{\label{structosmo__crc32gen__code_ab7ea0542721265f02d540fc95fb48fda}} 
\index{osmo\_crc32gen\_code@{osmo\_crc32gen\_code}!bits@{bits}}
\index{bits@{bits}!osmo\_crc32gen\_code@{osmo\_crc32gen\_code}}
\doxysubsubsection{bits}
{\footnotesize\ttfamily int osmo\+\_\+crc32gen\+\_\+code\+::bits}



Actual number of bits of the CRC. 



Referenced by \textbf{ osmo\+\_\+crc32gen\+\_\+check\+\_\+bits()}, \textbf{ osmo\+\_\+crc32gen\+\_\+compute\+\_\+bits()}, and \textbf{ osmo\+\_\+crc32gen\+\_\+set\+\_\+bits()}.

\mbox{\label{structosmo__crc32gen__code_ad139d035aff276d724db17c41b2147d8}} 
\index{osmo\_crc32gen\_code@{osmo\_crc32gen\_code}!init@{init}}
\index{init@{init}!osmo\_crc32gen\_code@{osmo\_crc32gen\_code}}
\doxysubsubsection{init}
{\footnotesize\ttfamily uint32\+\_\+t osmo\+\_\+crc32gen\+\_\+code\+::init}



Initialization value of the CRC state. 



Referenced by \textbf{ osmo\+\_\+crc32gen\+\_\+compute\+\_\+bits()}.

\mbox{\label{structosmo__crc32gen__code_a38fbc53e41d3181a2123c62253f9ee25}} 
\index{osmo\_crc32gen\_code@{osmo\_crc32gen\_code}!poly@{poly}}
\index{poly@{poly}!osmo\_crc32gen\_code@{osmo\_crc32gen\_code}}
\doxysubsubsection{poly}
{\footnotesize\ttfamily uint32\+\_\+t osmo\+\_\+crc32gen\+\_\+code\+::poly}



Polynom (normal representation, MSB omitted. 



Referenced by \textbf{ osmo\+\_\+crc32gen\+\_\+compute\+\_\+bits()}.

\mbox{\label{structosmo__crc32gen__code_aa0fc5a5c0a648855bae5d975fc8829c1}} 
\index{osmo\_crc32gen\_code@{osmo\_crc32gen\_code}!remainder@{remainder}}
\index{remainder@{remainder}!osmo\_crc32gen\_code@{osmo\_crc32gen\_code}}
\doxysubsubsection{remainder}
{\footnotesize\ttfamily uint32\+\_\+t osmo\+\_\+crc32gen\+\_\+code\+::remainder}



Remainder of the CRC (final XOR) 



Referenced by \textbf{ osmo\+\_\+crc32gen\+\_\+compute\+\_\+bits()}.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
include/osmocom/core/\textbf{ crc32gen.\+h}\end{DoxyCompactItemize}
