\doxysection{rxlev\+\_\+stat.\+h}
\label{rxlev__stat_8h_source}\index{include/osmocom/gsm/rxlev\_stat.h@{include/osmocom/gsm/rxlev\_stat.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{4 }
\DoxyCodeLine{5 \textcolor{preprocessor}{\#define NUM\_RXLEVS 32}}
\DoxyCodeLine{6 \textcolor{preprocessor}{\#define NUM\_ARFCNS 1024}}
\DoxyCodeLine{7 }
\DoxyCodeLine{8 \textcolor{keyword}{struct }rxlev\_stats \{}
\DoxyCodeLine{9         \textcolor{comment}{/* the maximum number of ARFCN's is 1024, and there are 32 RxLevels,}}
\DoxyCodeLine{10 \textcolor{comment}{         * so in we keep one 1024bit-\/bitvec for each RxLev */}}
\DoxyCodeLine{11         uint8\_t rxlev\_buckets[NUM\_RXLEVS][NUM\_ARFCNS/8];}
\DoxyCodeLine{12 \};}
\DoxyCodeLine{13 }
\DoxyCodeLine{14 \textcolor{keywordtype}{void} rxlev\_stat\_input(\textcolor{keyword}{struct} rxlev\_stats *st, uint16\_t arfcn, uint8\_t rxlev);}
\DoxyCodeLine{15 }
\DoxyCodeLine{16 \textcolor{comment}{/* get the next ARFCN that has the specified Rxlev */}}
\DoxyCodeLine{17 int16\_t rxlev\_stat\_get\_next(\textcolor{keyword}{const} \textcolor{keyword}{struct} rxlev\_stats *st, uint8\_t rxlev, int16\_t arfcn);}
\DoxyCodeLine{18 }
\DoxyCodeLine{19 \textcolor{keywordtype}{void} rxlev\_stat\_reset(\textcolor{keyword}{struct} rxlev\_stats *st);}
\DoxyCodeLine{20 }
\DoxyCodeLine{21 \textcolor{keywordtype}{void} rxlev\_stat\_dump(\textcolor{keyword}{const} \textcolor{keyword}{struct} rxlev\_stats *st);}

\end{DoxyCode}
