\doxysection{osmo\+\_\+crc8gen\+\_\+code Struct Reference}
\label{structosmo__crc8gen__code}\index{osmo\_crc8gen\_code@{osmo\_crc8gen\_code}}


structure describing a given CRC code of max 8 bits  




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

\doxysubsection{Field Documentation}
\mbox{\label{structosmo__crc8gen__code_a9a2de2bd7a3809d82b83a25641129520}} 
\index{osmo\_crc8gen\_code@{osmo\_crc8gen\_code}!bits@{bits}}
\index{bits@{bits}!osmo\_crc8gen\_code@{osmo\_crc8gen\_code}}
\doxysubsubsection{bits}
{\footnotesize\ttfamily int osmo\+\_\+crc8gen\+\_\+code\+::bits}



Actual number of bits of the CRC. 



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

\mbox{\label{structosmo__crc8gen__code_ade3db78e0cda5fdae402c734d5977f1f}} 
\index{osmo\_crc8gen\_code@{osmo\_crc8gen\_code}!init@{init}}
\index{init@{init}!osmo\_crc8gen\_code@{osmo\_crc8gen\_code}}
\doxysubsubsection{init}
{\footnotesize\ttfamily uint8\+\_\+t osmo\+\_\+crc8gen\+\_\+code\+::init}



Initialization value of the CRC state. 



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

\mbox{\label{structosmo__crc8gen__code_a40cbd268cfea5c97f8380def8fd7baf2}} 
\index{osmo\_crc8gen\_code@{osmo\_crc8gen\_code}!poly@{poly}}
\index{poly@{poly}!osmo\_crc8gen\_code@{osmo\_crc8gen\_code}}
\doxysubsubsection{poly}
{\footnotesize\ttfamily uint8\+\_\+t osmo\+\_\+crc8gen\+\_\+code\+::poly}



Polynom (normal representation, MSB omitted. 



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

\mbox{\label{structosmo__crc8gen__code_afe19aa4b075e3438d90c7ba46542d779}} 
\index{osmo\_crc8gen\_code@{osmo\_crc8gen\_code}!remainder@{remainder}}
\index{remainder@{remainder}!osmo\_crc8gen\_code@{osmo\_crc8gen\_code}}
\doxysubsubsection{remainder}
{\footnotesize\ttfamily uint8\+\_\+t osmo\+\_\+crc8gen\+\_\+code\+::remainder}



Remainder of the CRC (final XOR) 



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



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