\doxysection{gsm48\+\_\+arfcn\+\_\+range\+\_\+encode.\+h}
\label{gsm48__arfcn__range__encode_8h_source}\index{include/osmocom/gsm/gsm48\_arfcn\_range\_encode.h@{include/osmocom/gsm/gsm48\_arfcn\_range\_encode.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}{\#include <stdint.h>}}
\DoxyCodeLine{6 }
\DoxyCodeLine{7 \textcolor{keyword}{enum} osmo\_gsm48\_range \{}
\DoxyCodeLine{8         OSMO\_GSM48\_ARFCN\_RANGE\_INVALID    = -\/1,}
\DoxyCodeLine{9         OSMO\_GSM48\_ARFCN\_RANGE\_128            = 127,}
\DoxyCodeLine{10         OSMO\_GSM48\_ARFCN\_RANGE\_256            = 255,}
\DoxyCodeLine{11         OSMO\_GSM48\_ARFCN\_RANGE\_512            = 511,}
\DoxyCodeLine{12         OSMO\_GSM48\_ARFCN\_RANGE\_1024          = 1023,}
\DoxyCodeLine{13 \};}
\DoxyCodeLine{14 }
\DoxyCodeLine{15 \textcolor{preprocessor}{\#define OSMO\_GSM48\_RANGE\_ENC\_MAX\_ARFCNS 29}}
\DoxyCodeLine{16 }
\DoxyCodeLine{17 \textcolor{keywordtype}{int} osmo\_gsm48\_range\_enc\_determine\_range(\textcolor{keyword}{const} \textcolor{keywordtype}{int} *arfcns, \textcolor{keywordtype}{int} size, \textcolor{keywordtype}{int} *f0\_out);}
\DoxyCodeLine{18 \textcolor{keywordtype}{int} osmo\_gsm48\_range\_enc\_arfcns(\textcolor{keyword}{enum} osmo\_gsm48\_range rng, \textcolor{keyword}{const} \textcolor{keywordtype}{int} *arfcns, \textcolor{keywordtype}{int} sze, \textcolor{keywordtype}{int} *out, \textcolor{keywordtype}{int} idx);}
\DoxyCodeLine{19 \textcolor{keywordtype}{int} osmo\_gsm48\_range\_enc\_find\_index(\textcolor{keyword}{enum} osmo\_gsm48\_range rng, \textcolor{keyword}{const} \textcolor{keywordtype}{int} *arfcns, \textcolor{keywordtype}{int} size);}
\DoxyCodeLine{20 \textcolor{keywordtype}{int} osmo\_gsm48\_range\_enc\_filter\_arfcns(\textcolor{keywordtype}{int} *arfcns, \textcolor{keyword}{const} \textcolor{keywordtype}{int} sze, \textcolor{keyword}{const} \textcolor{keywordtype}{int} f0, \textcolor{keywordtype}{int} *f0\_included);}
\DoxyCodeLine{21 }
\DoxyCodeLine{22 \textcolor{keywordtype}{int} osmo\_gsm48\_range\_enc\_128(uint8\_t *chan\_list, \textcolor{keywordtype}{int} f0, \textcolor{keywordtype}{int} *w);}
\DoxyCodeLine{23 \textcolor{keywordtype}{int} osmo\_gsm48\_range\_enc\_256(uint8\_t *chan\_list, \textcolor{keywordtype}{int} f0, \textcolor{keywordtype}{int} *w);}
\DoxyCodeLine{24 \textcolor{keywordtype}{int} osmo\_gsm48\_range\_enc\_512(uint8\_t *chan\_list, \textcolor{keywordtype}{int} f0, \textcolor{keywordtype}{int} *w);}
\DoxyCodeLine{25 \textcolor{keywordtype}{int} osmo\_gsm48\_range\_enc\_1024(uint8\_t *chan\_list, \textcolor{keywordtype}{int} f0, \textcolor{keywordtype}{int} f0\_incl, \textcolor{keywordtype}{int} *w);}

\end{DoxyCode}
