\doxysection{include/osmocom/gsm/protocol/gsm\+\_\+03\+\_\+40.h File Reference}
\label{gsm__03__40_8h}\index{include/osmocom/gsm/protocol/gsm\_03\_40.h@{include/osmocom/gsm/protocol/gsm\_03\_40.h}}


GSM TS 03.\+40.  


\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \textbf{ GSM340\+\_\+\+UDL\+\_\+\+OCT\+\_\+\+MAX}~140
\begin{DoxyCompactList}\small\item\em Maximum TP-\/\+UD length (in octets) for 7-\/bit encoding. \end{DoxyCompactList}\item 
\#define \textbf{ GSM340\+\_\+\+UDL\+\_\+\+SPT\+\_\+\+MAX}~160
\begin{DoxyCompactList}\small\item\em Maximum TP-\/\+UD length (in seplets) for 8-\/bit and UCS-\/2 encoding. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \{ \newline
\textbf{ GSM340\+\_\+\+TYPE\+\_\+\+UNKNOWN} = 0
, \newline
\textbf{ GSM340\+\_\+\+TYPE\+\_\+\+INTERNATIONAL} = 1
, \newline
\textbf{ GSM340\+\_\+\+TYPE\+\_\+\+NATIONAL} = 2
, \newline
\textbf{ GSM340\+\_\+\+TYPE\+\_\+\+NETWORK} = 3
, \newline
\textbf{ GSM340\+\_\+\+TYPE\+\_\+\+SUBSCRIBER} = 4
, \newline
\textbf{ GSM340\+\_\+\+TYPE\+\_\+\+ALPHA\+\_\+\+NUMERIC} = 5
, \newline
\textbf{ GSM340\+\_\+\+TYPE\+\_\+\+ABBREVIATED} = 6
, \newline
\textbf{ GSM340\+\_\+\+TYPE\+\_\+\+RESERVED} = 7
 \}
\begin{DoxyCompactList}\small\item\em 9.\+1.\+2.\+5 Type Of Number \end{DoxyCompactList}\item 
enum \{ \newline
\textbf{ GSM340\+\_\+\+PLAN\+\_\+\+UNKNOWN} = 0
, \newline
\textbf{ GSM340\+\_\+\+PLAN\+\_\+\+ISDN} = 1
, \newline
\textbf{ GSM340\+\_\+\+PLAN\+\_\+\+DATA} = 3
, \newline
\textbf{ GSM340\+\_\+\+PLAN\+\_\+\+TELEX} = 4
, \newline
\textbf{ GSM340\+\_\+\+PLAN\+\_\+\+NATIONAL} = 8
, \newline
\textbf{ GSM340\+\_\+\+PLAN\+\_\+\+PRIVATE} = 9
, \newline
\textbf{ GSM340\+\_\+\+PLAN\+\_\+\+ERMES} = 10
, \newline
\textbf{ GSM340\+\_\+\+PLAN\+\_\+\+RESERVED} = 15
 \}
\begin{DoxyCompactList}\small\item\em 9.\+1.\+2.\+5 Type of Numbering plan. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
GSM TS 03.\+40. 



\doxysubsection{Macro Definition Documentation}
\mbox{\label{gsm__03__40_8h_a1dd42def7ecd073814a846671619fd7c}} 
\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_UDL\_OCT\_MAX@{GSM340\_UDL\_OCT\_MAX}}
\index{GSM340\_UDL\_OCT\_MAX@{GSM340\_UDL\_OCT\_MAX}!gsm\_03\_40.h@{gsm\_03\_40.h}}
\doxysubsubsection{GSM340\_UDL\_OCT\_MAX}
{\footnotesize\ttfamily \#define GSM340\+\_\+\+UDL\+\_\+\+OCT\+\_\+\+MAX~140}



Maximum TP-\/\+UD length (in octets) for 7-\/bit encoding. 

\mbox{\label{gsm__03__40_8h_abc17ece3b24fddd066aaf054f2debdad}} 
\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_UDL\_SPT\_MAX@{GSM340\_UDL\_SPT\_MAX}}
\index{GSM340\_UDL\_SPT\_MAX@{GSM340\_UDL\_SPT\_MAX}!gsm\_03\_40.h@{gsm\_03\_40.h}}
\doxysubsubsection{GSM340\_UDL\_SPT\_MAX}
{\footnotesize\ttfamily \#define GSM340\+\_\+\+UDL\+\_\+\+SPT\+\_\+\+MAX~160}



Maximum TP-\/\+UD length (in seplets) for 8-\/bit and UCS-\/2 encoding. 



\doxysubsection{Enumeration Type Documentation}
\mbox{\label{gsm__03__40_8h_a5d76b81b0ad4c19007a781d4edb8181f}} 
\doxysubsubsection{anonymous enum}
{\footnotesize\ttfamily anonymous enum}



9.\+1.\+2.\+5 Type Of Number 

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_TYPE\_UNKNOWN@{GSM340\_TYPE\_UNKNOWN}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_TYPE\_UNKNOWN@{GSM340\_TYPE\_UNKNOWN}}}\mbox{\label{gsm__03__40_8h_a5d76b81b0ad4c19007a781d4edb8181fa167c32797d3738ffca28c5fddd64a4aa}} 
GSM340\+\_\+\+TYPE\+\_\+\+UNKNOWN&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_TYPE\_INTERNATIONAL@{GSM340\_TYPE\_INTERNATIONAL}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_TYPE\_INTERNATIONAL@{GSM340\_TYPE\_INTERNATIONAL}}}\mbox{\label{gsm__03__40_8h_a5d76b81b0ad4c19007a781d4edb8181fab3968fd26ec057f0870948bfe8d51a2c}} 
GSM340\+\_\+\+TYPE\+\_\+\+INTERNATIONAL&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_TYPE\_NATIONAL@{GSM340\_TYPE\_NATIONAL}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_TYPE\_NATIONAL@{GSM340\_TYPE\_NATIONAL}}}\mbox{\label{gsm__03__40_8h_a5d76b81b0ad4c19007a781d4edb8181fa27d66368fd0f1c374bb89eb4782fc019}} 
GSM340\+\_\+\+TYPE\+\_\+\+NATIONAL&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_TYPE\_NETWORK@{GSM340\_TYPE\_NETWORK}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_TYPE\_NETWORK@{GSM340\_TYPE\_NETWORK}}}\mbox{\label{gsm__03__40_8h_a5d76b81b0ad4c19007a781d4edb8181fada12e3c3fd1a6e3a3802dfb648f7859d}} 
GSM340\+\_\+\+TYPE\+\_\+\+NETWORK&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_TYPE\_SUBSCRIBER@{GSM340\_TYPE\_SUBSCRIBER}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_TYPE\_SUBSCRIBER@{GSM340\_TYPE\_SUBSCRIBER}}}\mbox{\label{gsm__03__40_8h_a5d76b81b0ad4c19007a781d4edb8181fae811f5d249158ce8e559985f29540fda}} 
GSM340\+\_\+\+TYPE\+\_\+\+SUBSCRIBER&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_TYPE\_ALPHA\_NUMERIC@{GSM340\_TYPE\_ALPHA\_NUMERIC}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_TYPE\_ALPHA\_NUMERIC@{GSM340\_TYPE\_ALPHA\_NUMERIC}}}\mbox{\label{gsm__03__40_8h_a5d76b81b0ad4c19007a781d4edb8181fab8d917f68d5f2c6819ea7be0256b7f5e}} 
GSM340\+\_\+\+TYPE\+\_\+\+ALPHA\+\_\+\+NUMERIC&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_TYPE\_ABBREVIATED@{GSM340\_TYPE\_ABBREVIATED}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_TYPE\_ABBREVIATED@{GSM340\_TYPE\_ABBREVIATED}}}\mbox{\label{gsm__03__40_8h_a5d76b81b0ad4c19007a781d4edb8181fa9e8fedc00da8e582575c2238e2c20270}} 
GSM340\+\_\+\+TYPE\+\_\+\+ABBREVIATED&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_TYPE\_RESERVED@{GSM340\_TYPE\_RESERVED}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_TYPE\_RESERVED@{GSM340\_TYPE\_RESERVED}}}\mbox{\label{gsm__03__40_8h_a5d76b81b0ad4c19007a781d4edb8181fa839eaba3eee45e22a19106b480766c2c}} 
GSM340\+\_\+\+TYPE\+\_\+\+RESERVED&\\
\hline

\end{DoxyEnumFields}
\mbox{\label{gsm__03__40_8h_aac34dfe6c6b73b43a4656c9dce041034}} 
\doxysubsubsection{anonymous enum}
{\footnotesize\ttfamily anonymous enum}



9.\+1.\+2.\+5 Type of Numbering plan. 

Applies for numbering plans (Unknown, International, National) \begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_PLAN\_UNKNOWN@{GSM340\_PLAN\_UNKNOWN}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_PLAN\_UNKNOWN@{GSM340\_PLAN\_UNKNOWN}}}\mbox{\label{gsm__03__40_8h_aac34dfe6c6b73b43a4656c9dce041034adcbe89e6383b7367e752d6123fdbc28c}} 
GSM340\+\_\+\+PLAN\+\_\+\+UNKNOWN&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_PLAN\_ISDN@{GSM340\_PLAN\_ISDN}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_PLAN\_ISDN@{GSM340\_PLAN\_ISDN}}}\mbox{\label{gsm__03__40_8h_aac34dfe6c6b73b43a4656c9dce041034a12a5bd979087aafc8407f5c9e69f1ab0}} 
GSM340\+\_\+\+PLAN\+\_\+\+ISDN&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_PLAN\_DATA@{GSM340\_PLAN\_DATA}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_PLAN\_DATA@{GSM340\_PLAN\_DATA}}}\mbox{\label{gsm__03__40_8h_aac34dfe6c6b73b43a4656c9dce041034ad8ec734e8315f1a72107f2e5aa353dde}} 
GSM340\+\_\+\+PLAN\+\_\+\+DATA&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_PLAN\_TELEX@{GSM340\_PLAN\_TELEX}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_PLAN\_TELEX@{GSM340\_PLAN\_TELEX}}}\mbox{\label{gsm__03__40_8h_aac34dfe6c6b73b43a4656c9dce041034ab7f06336d7a1aab2840476edd0033f84}} 
GSM340\+\_\+\+PLAN\+\_\+\+TELEX&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_PLAN\_NATIONAL@{GSM340\_PLAN\_NATIONAL}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_PLAN\_NATIONAL@{GSM340\_PLAN\_NATIONAL}}}\mbox{\label{gsm__03__40_8h_aac34dfe6c6b73b43a4656c9dce041034af7601d18de22a290ac3c976c3767ed8c}} 
GSM340\+\_\+\+PLAN\+\_\+\+NATIONAL&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_PLAN\_PRIVATE@{GSM340\_PLAN\_PRIVATE}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_PLAN\_PRIVATE@{GSM340\_PLAN\_PRIVATE}}}\mbox{\label{gsm__03__40_8h_aac34dfe6c6b73b43a4656c9dce041034a75b4bfd095537481d1772b25aa523b29}} 
GSM340\+\_\+\+PLAN\+\_\+\+PRIVATE&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_PLAN\_ERMES@{GSM340\_PLAN\_ERMES}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_PLAN\_ERMES@{GSM340\_PLAN\_ERMES}}}\mbox{\label{gsm__03__40_8h_aac34dfe6c6b73b43a4656c9dce041034aa666fcd9f9745b903a54df62ed5791db}} 
GSM340\+\_\+\+PLAN\+\_\+\+ERMES&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{GSM340\_PLAN\_RESERVED@{GSM340\_PLAN\_RESERVED}!gsm\_03\_40.h@{gsm\_03\_40.h}}\index{gsm\_03\_40.h@{gsm\_03\_40.h}!GSM340\_PLAN\_RESERVED@{GSM340\_PLAN\_RESERVED}}}\mbox{\label{gsm__03__40_8h_aac34dfe6c6b73b43a4656c9dce041034a1d94a9428ff45f7bfc9507efb622d0b4}} 
GSM340\+\_\+\+PLAN\+\_\+\+RESERVED&\\
\hline

\end{DoxyEnumFields}
