\doxysection{prbs.\+h}
\label{prbs_8h_source}\index{include/osmocom/core/prbs.h@{include/osmocom/core/prbs.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{3 \textcolor{preprocessor}{\#include <osmocom/core/bits.h>}}
\DoxyCodeLine{4 }
\DoxyCodeLine{6 \textcolor{keyword}{struct }osmo\_prbs \{}
\DoxyCodeLine{7         \textcolor{keyword}{const} \textcolor{keywordtype}{char} *name;   }
\DoxyCodeLine{8         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} len;    }
\DoxyCodeLine{9         uint64\_t coeff;            }
\DoxyCodeLine{10 \};}
\DoxyCodeLine{11 }
\DoxyCodeLine{13 \textcolor{keyword}{struct }osmo\_prbs\_state \{}
\DoxyCodeLine{14         \textcolor{keyword}{const} \textcolor{keyword}{struct }osmo\_prbs *prbs;}
\DoxyCodeLine{15         uint64\_t state;}
\DoxyCodeLine{16 \};}
\DoxyCodeLine{17 }
\DoxyCodeLine{18 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }osmo\_prbs osmo\_prbs7;}
\DoxyCodeLine{19 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }osmo\_prbs osmo\_prbs9;}
\DoxyCodeLine{20 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }osmo\_prbs osmo\_prbs11;}
\DoxyCodeLine{21 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }osmo\_prbs osmo\_prbs15;}
\DoxyCodeLine{22 }
\DoxyCodeLine{23 \textcolor{keywordtype}{void} osmo\_prbs\_state\_init(\textcolor{keyword}{struct} osmo\_prbs\_state *st, \textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_prbs *prbs);}
\DoxyCodeLine{24 ubit\_t osmo\_prbs\_get\_ubit(\textcolor{keyword}{struct} osmo\_prbs\_state *state);}
\DoxyCodeLine{25 \textcolor{keywordtype}{int} osmo\_prbs\_get\_ubits(ubit\_t *out, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} out\_len, \textcolor{keyword}{struct} osmo\_prbs\_state *state);}

\end{DoxyCode}
