\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{1 \textcolor{preprocessor}{\#pragma once}} \DoxyCodeLine{2 } \DoxyCodeLine{3 \textcolor{comment}{/* MTP User SAP description in accordance with ITU Q.701 */}} \DoxyCodeLine{4 } \DoxyCodeLine{5 \textcolor{comment}{/* (C) 2017 by Harald Welte }} \DoxyCodeLine{6 \textcolor{comment}{ * All Rights Reserved}} \DoxyCodeLine{7 \textcolor{comment}{ *}} \DoxyCodeLine{8 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}} \DoxyCodeLine{9 \textcolor{comment}{ * it under the terms of the GNU General Public License as published by}} \DoxyCodeLine{10 \textcolor{comment}{ * the Free Software Foundation; either version 2 of the License, or}} \DoxyCodeLine{11 \textcolor{comment}{ * (at your option) any later version.}} \DoxyCodeLine{12 \textcolor{comment}{ *}} \DoxyCodeLine{13 \textcolor{comment}{ * This program is distributed in the hope that it will be useful,}} \DoxyCodeLine{14 \textcolor{comment}{ * but WITHOUT ANY WARRANTY; without even the implied warranty of}} \DoxyCodeLine{15 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the}} \DoxyCodeLine{16 \textcolor{comment}{ * GNU General Public License for more details.}} \DoxyCodeLine{17 \textcolor{comment}{ *}} \DoxyCodeLine{18 \textcolor{comment}{ * You should have received a copy of the GNU General Public License}} \DoxyCodeLine{19 \textcolor{comment}{ * along with this program. If not, see .}} \DoxyCodeLine{20 \textcolor{comment}{ *}} \DoxyCodeLine{21 \textcolor{comment}{ */}} \DoxyCodeLine{22 } \DoxyCodeLine{23 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{24 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{25 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{26 } \DoxyCodeLine{27 \textcolor{keyword}{enum} osmo\_mtp\_prim\_type \{} \DoxyCodeLine{28 OSMO\_MTP\_PRIM\_TRANSFER,} \DoxyCodeLine{29 OSMO\_MTP\_PRIM\_PAUSE,} \DoxyCodeLine{30 OSMO\_MTP\_PRIM\_RESUME,} \DoxyCodeLine{31 OSMO\_MTP\_PRIM\_STATUS,} \DoxyCodeLine{32 \};} \DoxyCodeLine{33 } \DoxyCodeLine{34 \textcolor{preprocessor}{\#define MTP\_SIO(service, net\_ind) (((net\_ind \& 0x3) << 6) | (service \& 0xF))}} \DoxyCodeLine{35 } \DoxyCodeLine{36 \textcolor{keyword}{struct }osmo\_mtp\_transfer\_param \{} \DoxyCodeLine{37 uint32\_t opc;} \DoxyCodeLine{38 uint32\_t dpc;} \DoxyCodeLine{39 uint8\_t sls;} \DoxyCodeLine{40 uint8\_t sio;} \DoxyCodeLine{41 \};} \DoxyCodeLine{42 } \DoxyCodeLine{43 \textcolor{keyword}{struct }osmo\_mtp\_pause\_param \{} \DoxyCodeLine{44 uint32\_t affected\_dpc;} \DoxyCodeLine{45 \};} \DoxyCodeLine{46 } \DoxyCodeLine{47 \textcolor{keyword}{struct }osmo\_mtp\_resume\_param \{} \DoxyCodeLine{48 uint32\_t affected\_dpc;} \DoxyCodeLine{49 \};} \DoxyCodeLine{50 } \DoxyCodeLine{51 \textcolor{keyword}{struct }osmo\_mtp\_status\_param \{} \DoxyCodeLine{52 uint32\_t affected\_dpc;} \DoxyCodeLine{53 uint32\_t cause;} \DoxyCodeLine{54 \};} \DoxyCodeLine{55 } \DoxyCodeLine{56 \textcolor{keyword}{struct }osmo\_mtp\_prim \{} \DoxyCodeLine{57 \textcolor{keyword}{struct }osmo\_prim\_hdr oph;} \DoxyCodeLine{58 \textcolor{keyword}{union }\{} \DoxyCodeLine{59 \textcolor{keyword}{struct }osmo\_mtp\_transfer\_param transfer;} \DoxyCodeLine{60 \textcolor{keyword}{struct }osmo\_mtp\_pause\_param pause;} \DoxyCodeLine{61 \textcolor{keyword}{struct }osmo\_mtp\_resume\_param resume;} \DoxyCodeLine{62 \textcolor{keyword}{struct }osmo\_mtp\_status\_param status;} \DoxyCodeLine{63 \} u;} \DoxyCodeLine{64 \};} \DoxyCodeLine{65 } \DoxyCodeLine{66 \textcolor{preprocessor}{\#define msgb\_mtp\_prim(msg) ((struct osmo\_mtp\_prim *)(msg)-\/>l1h)}} \DoxyCodeLine{67 } \DoxyCodeLine{68 \textcolor{keywordtype}{char} *osmo\_mtp\_prim\_name(\textcolor{keyword}{struct} osmo\_prim\_hdr *oph);} \end{DoxyCode}