\doxysection{osmo\+\_\+crc16gen\+\_\+code Struct Reference}
\label{structosmo__crc16gen__code}\index{osmo\_crc16gen\_code@{osmo\_crc16gen\_code}}


structure describing a given CRC code of max 16 bits  




{\ttfamily \#include $<$crc16gen.\+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 
uint16\+\_\+t \textbf{ poly}
\begin{DoxyCompactList}\small\item\em Polynom (normal representation, MSB omitted. \end{DoxyCompactList}\item 
uint16\+\_\+t \textbf{ init}
\begin{DoxyCompactList}\small\item\em Initialization value of the CRC state. \end{DoxyCompactList}\item 
uint16\+\_\+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 16 bits 

\doxysubsection{Field Documentation}
\mbox{\label{structosmo__crc16gen__code_a96292309cf771e1086f86ccfd4bac9b2}} 
\index{osmo\_crc16gen\_code@{osmo\_crc16gen\_code}!bits@{bits}}
\index{bits@{bits}!osmo\_crc16gen\_code@{osmo\_crc16gen\_code}}
\doxysubsubsection{bits}
{\footnotesize\ttfamily int osmo\+\_\+crc16gen\+\_\+code\+::bits}



Actual number of bits of the CRC. 



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

\mbox{\label{structosmo__crc16gen__code_aecf697df2c87f82d77273fc3170f06b2}} 
\index{osmo\_crc16gen\_code@{osmo\_crc16gen\_code}!init@{init}}
\index{init@{init}!osmo\_crc16gen\_code@{osmo\_crc16gen\_code}}
\doxysubsubsection{init}
{\footnotesize\ttfamily uint16\+\_\+t osmo\+\_\+crc16gen\+\_\+code\+::init}



Initialization value of the CRC state. 



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

\mbox{\label{structosmo__crc16gen__code_aedd08f5b95d016f3f09fc8bd7941c4e3}} 
\index{osmo\_crc16gen\_code@{osmo\_crc16gen\_code}!poly@{poly}}
\index{poly@{poly}!osmo\_crc16gen\_code@{osmo\_crc16gen\_code}}
\doxysubsubsection{poly}
{\footnotesize\ttfamily uint16\+\_\+t osmo\+\_\+crc16gen\+\_\+code\+::poly}



Polynom (normal representation, MSB omitted. 



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

\mbox{\label{structosmo__crc16gen__code_aeff1e62578a8f7b2474aa8765b9b874d}} 
\index{osmo\_crc16gen\_code@{osmo\_crc16gen\_code}!remainder@{remainder}}
\index{remainder@{remainder}!osmo\_crc16gen\_code@{osmo\_crc16gen\_code}}
\doxysubsubsection{remainder}
{\footnotesize\ttfamily uint16\+\_\+t osmo\+\_\+crc16gen\+\_\+code\+::remainder}



Remainder of the CRC (final XOR) 



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



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