\doxysection{mtp\+\_\+sap.\+h}
\label{mtp__sap_8h_source}\index{include/osmocom/sigtran/mtp\_sap.h@{include/osmocom/sigtran/mtp\_sap.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ }
\DoxyCodeLine{00003\ \textcolor{comment}{/*\ MTP\ User\ SAP\ description\ in\ accordance\ with\ ITU\ Q.701\ */}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{comment}{/*\ (C)\ 2017\ by\ Harald\ Welte\ <laforge@gnumonks.org>}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ All\ Rights\ Reserved}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ This\ program\ is\ free\ software;\ you\ can\ redistribute\ it\ and/or\ modify}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ it\ under\ the\ terms\ of\ the\ GNU\ General\ Public\ License\ as\ published\ by}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ the\ Free\ Software\ Foundation;\ either\ version\ 2\ of\ the\ License,\ or}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ (at\ your\ option)\ any\ later\ version.}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ This\ program\ is\ distributed\ in\ the\ hope\ that\ it\ will\ be\ useful,}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ but\ WITHOUT\ ANY\ WARRANTY;\ without\ even\ the\ implied\ warranty\ of}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ MERCHANTABILITY\ or\ FITNESS\ FOR\ A\ PARTICULAR\ PURPOSE.\ \ See\ the}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ GNU\ General\ Public\ License\ for\ more\ details.}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ You\ should\ have\ received\ a\ copy\ of\ the\ GNU\ General\ Public\ License}}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ along\ with\ this\ program.\ \ If\ not,\ see\ <http://www.gnu.org/licenses/>.}}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#include\ <stdint.h>}}
\DoxyCodeLine{00024\ \textcolor{preprocessor}{\#include\ <osmocom/core/prim.h>}}
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#include\ <osmocom/sigtran/sigtran\_sap.h>}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{keyword}{enum}\ osmo\_mtp\_prim\_type\ \{}
\DoxyCodeLine{00028\ \ \ \ \ \ \ \ \ OSMO\_MTP\_PRIM\_TRANSFER,}
\DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ OSMO\_MTP\_PRIM\_PAUSE,}
\DoxyCodeLine{00030\ \ \ \ \ \ \ \ \ OSMO\_MTP\_PRIM\_RESUME,}
\DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ OSMO\_MTP\_PRIM\_STATUS,}
\DoxyCodeLine{00032\ \};}
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#define\ MTP\_SIO(service,\ net\_ind)\ \ \ \ \ \ \ (((net\_ind\ \&\ 0x3)\ <<\ 6)\ |\ (service\ \&\ 0xF))}}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ \textcolor{keyword}{struct\ }osmo\_mtp\_transfer\_param\ \{}
\DoxyCodeLine{00037\ \ \ \ \ \ \ \ \ uint32\_t\ opc;}
\DoxyCodeLine{00038\ \ \ \ \ \ \ \ \ uint32\_t\ dpc;}
\DoxyCodeLine{00039\ \ \ \ \ \ \ \ \ uint8\_t\ sls;}
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ uint8\_t\ sio;}
\DoxyCodeLine{00041\ \};}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \textcolor{keyword}{struct\ }osmo\_mtp\_pause\_param\ \{}
\DoxyCodeLine{00044\ \ \ \ \ \ \ \ \ uint32\_t\ affected\_dpc;}
\DoxyCodeLine{00045\ \};}
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00047\ \textcolor{keyword}{struct\ }osmo\_mtp\_resume\_param\ \{}
\DoxyCodeLine{00048\ \ \ \ \ \ \ \ \ uint32\_t\ affected\_dpc;}
\DoxyCodeLine{00049\ \};}
\DoxyCodeLine{00050\ }
\DoxyCodeLine{00051\ \textcolor{keyword}{struct\ }osmo\_mtp\_status\_param\ \{}
\DoxyCodeLine{00052\ \ \ \ \ \ \ \ \ uint32\_t\ affected\_dpc;}
\DoxyCodeLine{00053\ \ \ \ \ \ \ \ \ uint32\_t\ cause;}
\DoxyCodeLine{00054\ \};}
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00056\ \textcolor{keyword}{struct\ }osmo\_mtp\_prim\ \{}
\DoxyCodeLine{00057\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_prim\_hdr\ oph;}
\DoxyCodeLine{00058\ \ \ \ \ \ \ \ \ \textcolor{keyword}{union\ }\{}
\DoxyCodeLine{00059\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_mtp\_transfer\_param\ transfer;}
\DoxyCodeLine{00060\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_mtp\_pause\_param\ pause;}
\DoxyCodeLine{00061\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_mtp\_resume\_param\ resume;}
\DoxyCodeLine{00062\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_mtp\_status\_param\ status;}
\DoxyCodeLine{00063\ \ \ \ \ \ \ \ \ \}\ u;}
\DoxyCodeLine{00064\ \};}
\DoxyCodeLine{00065\ }
\DoxyCodeLine{00066\ \textcolor{preprocessor}{\#define\ msgb\_mtp\_prim(msg)\ ((struct\ osmo\_mtp\_prim\ *)(msg)-\/>l1h)}}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00068\ \textcolor{keywordtype}{char}\ *osmo\_mtp\_prim\_name(\textcolor{keyword}{struct}\ osmo\_prim\_hdr\ *oph);}

\end{DoxyCode}
