\doxysection{include/osmocom/core/prbs.h File Reference}
\label{prbs_8h}\index{include/osmocom/core/prbs.h@{include/osmocom/core/prbs.h}}
{\ttfamily \#include $<$stdint.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/bits.\+h$>$}\newline
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ osmo\+\_\+prbs}
\begin{DoxyCompactList}\small\item\em definition of a PRBS sequence \end{DoxyCompactList}\item 
struct \textbf{ osmo\+\_\+prbs\+\_\+state}
\begin{DoxyCompactList}\small\item\em state of a given PRBS sequence generator \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \textbf{ osmo\+\_\+prbs\+\_\+state\+\_\+init} (struct \textbf{ osmo\+\_\+prbs\+\_\+state} $\ast$st, const struct \textbf{ osmo\+\_\+prbs} $\ast$prbs)
\begin{DoxyCompactList}\small\item\em Initialize the given caller-\/allocated PRBS state. \end{DoxyCompactList}\item 
\textbf{ ubit\+\_\+t} \textbf{ osmo\+\_\+prbs\+\_\+get\+\_\+ubit} (struct \textbf{ osmo\+\_\+prbs\+\_\+state} $\ast$state)
\begin{DoxyCompactList}\small\item\em Get the next bit out of given PRBS instance. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+prbs\+\_\+get\+\_\+ubits} (\textbf{ ubit\+\_\+t} $\ast$out, unsigned int out\+\_\+len, struct \textbf{ osmo\+\_\+prbs\+\_\+state} $\ast$state)
\begin{DoxyCompactList}\small\item\em Fill buffer of unpacked bits with next bits out of given PRBS instance. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
const struct \textbf{ osmo\+\_\+prbs} \textbf{ osmo\+\_\+prbs7}
\begin{DoxyCompactList}\small\item\em PRBS-\/7 according ITU-\/T O.\+150. \end{DoxyCompactList}\item 
const struct \textbf{ osmo\+\_\+prbs} \textbf{ osmo\+\_\+prbs9}
\begin{DoxyCompactList}\small\item\em PRBS-\/9 according ITU-\/T O.\+150. \end{DoxyCompactList}\item 
const struct \textbf{ osmo\+\_\+prbs} \textbf{ osmo\+\_\+prbs11}
\begin{DoxyCompactList}\small\item\em PRBS-\/11 according ITU-\/T O.\+150. \end{DoxyCompactList}\item 
const struct \textbf{ osmo\+\_\+prbs} \textbf{ osmo\+\_\+prbs15}
\begin{DoxyCompactList}\small\item\em PRBS-\/15 according ITU-\/T O.\+150. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\label{prbs_8h_a525d10aa4287f6da7f1fe62f0482f7e2}} 
\index{prbs.h@{prbs.h}!osmo\_prbs\_get\_ubit@{osmo\_prbs\_get\_ubit}}
\index{osmo\_prbs\_get\_ubit@{osmo\_prbs\_get\_ubit}!prbs.h@{prbs.h}}
\doxysubsubsection{osmo\_prbs\_get\_ubit()}
{\footnotesize\ttfamily \textbf{ ubit\+\_\+t} osmo\+\_\+prbs\+\_\+get\+\_\+ubit (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+prbs\+\_\+state} $\ast$}]{state }\end{DoxyParamCaption})}



Get the next bit out of given PRBS instance. 



References \textbf{ osmo\+\_\+prbs\+\_\+process\+\_\+bit()}, and \textbf{ osmo\+\_\+prbs\+\_\+state\+::state}.



Referenced by \textbf{ osmo\+\_\+prbs\+\_\+get\+\_\+ubits()}.

\mbox{\label{prbs_8h_a6f0f56ecec20b7c1dde8e4eb2886572d}} 
\index{prbs.h@{prbs.h}!osmo\_prbs\_get\_ubits@{osmo\_prbs\_get\_ubits}}
\index{osmo\_prbs\_get\_ubits@{osmo\_prbs\_get\_ubits}!prbs.h@{prbs.h}}
\doxysubsubsection{osmo\_prbs\_get\_ubits()}
{\footnotesize\ttfamily int osmo\+\_\+prbs\+\_\+get\+\_\+ubits (\begin{DoxyParamCaption}\item[{\textbf{ ubit\+\_\+t} $\ast$}]{out,  }\item[{unsigned int}]{out\+\_\+len,  }\item[{struct \textbf{ osmo\+\_\+prbs\+\_\+state} $\ast$}]{state }\end{DoxyParamCaption})}



Fill buffer of unpacked bits with next bits out of given PRBS instance. 



References \textbf{ osmo\+\_\+prbs\+\_\+get\+\_\+ubit()}.

\mbox{\label{prbs_8h_a20d9d984ba6af30a2550950cb3134c63}} 
\index{prbs.h@{prbs.h}!osmo\_prbs\_state\_init@{osmo\_prbs\_state\_init}}
\index{osmo\_prbs\_state\_init@{osmo\_prbs\_state\_init}!prbs.h@{prbs.h}}
\doxysubsubsection{osmo\_prbs\_state\_init()}
{\footnotesize\ttfamily void osmo\+\_\+prbs\+\_\+state\+\_\+init (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+prbs\+\_\+state} $\ast$}]{st,  }\item[{const struct \textbf{ osmo\+\_\+prbs} $\ast$}]{prbs }\end{DoxyParamCaption})}



Initialize the given caller-\/allocated PRBS state. 



References \textbf{ osmo\+\_\+prbs\+\_\+state\+::prbs}, and \textbf{ osmo\+\_\+prbs\+\_\+state\+::state}.



\doxysubsection{Variable Documentation}
\mbox{\label{prbs_8h_a7ad14c2c22b4b92a3e176f9d1bd51701}} 
\index{prbs.h@{prbs.h}!osmo\_prbs11@{osmo\_prbs11}}
\index{osmo\_prbs11@{osmo\_prbs11}!prbs.h@{prbs.h}}
\doxysubsubsection{osmo\_prbs11}
{\footnotesize\ttfamily const struct \textbf{ osmo\+\_\+prbs} osmo\+\_\+prbs11\hspace{0.3cm}{\ttfamily [extern]}}



PRBS-\/11 according ITU-\/T O.\+150. 

\mbox{\label{prbs_8h_a3c3d26cc5c9bba987b72d0d05a06a8ba}} 
\index{prbs.h@{prbs.h}!osmo\_prbs15@{osmo\_prbs15}}
\index{osmo\_prbs15@{osmo\_prbs15}!prbs.h@{prbs.h}}
\doxysubsubsection{osmo\_prbs15}
{\footnotesize\ttfamily const struct \textbf{ osmo\+\_\+prbs} osmo\+\_\+prbs15\hspace{0.3cm}{\ttfamily [extern]}}



PRBS-\/15 according ITU-\/T O.\+150. 

\mbox{\label{prbs_8h_a0a484b320cfb1d0000ac78d4e7467565}} 
\index{prbs.h@{prbs.h}!osmo\_prbs7@{osmo\_prbs7}}
\index{osmo\_prbs7@{osmo\_prbs7}!prbs.h@{prbs.h}}
\doxysubsubsection{osmo\_prbs7}
{\footnotesize\ttfamily const struct \textbf{ osmo\+\_\+prbs} osmo\+\_\+prbs7\hspace{0.3cm}{\ttfamily [extern]}}



PRBS-\/7 according ITU-\/T O.\+150. 

\mbox{\label{prbs_8h_a592a20b5fc9dfe64a63059737234ca3f}} 
\index{prbs.h@{prbs.h}!osmo\_prbs9@{osmo\_prbs9}}
\index{osmo\_prbs9@{osmo\_prbs9}!prbs.h@{prbs.h}}
\doxysubsubsection{osmo\_prbs9}
{\footnotesize\ttfamily const struct \textbf{ osmo\+\_\+prbs} osmo\+\_\+prbs9\hspace{0.3cm}{\ttfamily [extern]}}



PRBS-\/9 according ITU-\/T O.\+150. 

