\doxysection{include/osmocom/gsm/bssmap\+\_\+le.h File Reference}
\label{bssmap__le_8h}\index{include/osmocom/gsm/bssmap\_le.h@{include/osmocom/gsm/bssmap\_le.h}}


Message encoding and decoding for 3GPP TS 49.\+031 BSSMAP-\/\+LE.  


{\ttfamily \#include $<$osmocom/gsm/protocol/gsm\+\_\+49\+\_\+031.\+h$>$}\newline
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ osmo\+\_\+bssmap\+\_\+le\+\_\+err}
\item 
struct \textbf{ osmo\+\_\+bssap\+\_\+le\+\_\+err}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
enum \textbf{ bssmap\+\_\+le\+\_\+msgt} \textbf{ osmo\+\_\+bssmap\+\_\+le\+\_\+msgt} (const uint8\+\_\+t $\ast$\textbf{ data}, uint8\+\_\+t \textbf{ len})
\begin{DoxyCompactList}\small\item\em Return the BSSMAP-\/\+LE msg\+\_\+type from a BSSAP-\/\+LE PDU, e.\+g. \end{DoxyCompactList}\item 
static const char $\ast$ \textbf{ osmo\+\_\+bssmap\+\_\+le\+\_\+msgt\+\_\+name} (enum \textbf{ bssmap\+\_\+le\+\_\+msgt} val)
\item 
static const char $\ast$ \textbf{ osmo\+\_\+bssmap\+\_\+le\+\_\+iei\+\_\+name} (enum \textbf{ bssmap\+\_\+le\+\_\+iei} val)
\item 
int \textbf{ osmo\+\_\+lcs\+\_\+cause\+\_\+enc} (struct \textbf{ msgb} $\ast$\textbf{ msg}, const struct \textbf{ lcs\+\_\+cause\+\_\+ie} $\ast$\textbf{ lcs\+\_\+cause})
\begin{DoxyCompactList}\small\item\em Encode the value part of 3GPP TS 49.\+031 10.\+13 LCS Cause, without IEI and len. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+lcs\+\_\+cause\+\_\+dec} (struct \textbf{ lcs\+\_\+cause\+\_\+ie} $\ast$\textbf{ lcs\+\_\+cause}, enum \textbf{ bssmap\+\_\+le\+\_\+msgt} msgt, enum \textbf{ bssmap\+\_\+le\+\_\+iei} \textbf{ iei}, struct \textbf{ osmo\+\_\+bssmap\+\_\+le\+\_\+err} $\ast$$\ast$err, void $\ast$err\+\_\+ctx, const uint8\+\_\+t $\ast$\textbf{ data}, uint8\+\_\+t \textbf{ len})
\begin{DoxyCompactList}\small\item\em Decode the value part of 3GPP TS 49.\+031 10.\+13 LCS Cause, without IEI and len. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+bssap\+\_\+le\+\_\+pdu\+\_\+to\+\_\+str\+\_\+buf} (char $\ast$buf, size\+\_\+t buflen, const struct \textbf{ bssap\+\_\+le\+\_\+pdu} $\ast$bssap\+\_\+le)
\begin{DoxyCompactList}\small\item\em Return a human readable string describing a BSSAP-\/\+LE PDU. \end{DoxyCompactList}\item 
char $\ast$ \textbf{ osmo\+\_\+bssap\+\_\+le\+\_\+pdu\+\_\+to\+\_\+str\+\_\+c} (void $\ast$ctx, const struct \textbf{ bssap\+\_\+le\+\_\+pdu} $\ast$bssap\+\_\+le)
\begin{DoxyCompactList}\small\item\em Return a human readable string describing a BSSAP-\/\+LE PDU. \end{DoxyCompactList}\item 
struct \textbf{ msgb} $\ast$ \textbf{ osmo\+\_\+bssap\+\_\+le\+\_\+enc} (const struct \textbf{ bssap\+\_\+le\+\_\+pdu} $\ast$pdu)
\begin{DoxyCompactList}\small\item\em Encode BSSAP-\/\+LE PDU returned in new msgb (3GPP TS 49.\+031). \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+bssap\+\_\+le\+\_\+dec} (struct \textbf{ bssap\+\_\+le\+\_\+pdu} $\ast$pdu, struct \textbf{ osmo\+\_\+bssap\+\_\+le\+\_\+err} $\ast$$\ast$err, void $\ast$err\+\_\+ctx, struct \textbf{ msgb} $\ast$\textbf{ msg})
\begin{DoxyCompactList}\small\item\em Decode BSSAP-\/\+LE PDU (3GPP TS 49.\+031). \end{DoxyCompactList}\item 
uint8\+\_\+t \textbf{ osmo\+\_\+bssmap\+\_\+le\+\_\+ie\+\_\+enc\+\_\+location\+\_\+type} (struct \textbf{ msgb} $\ast$\textbf{ msg}, const struct \textbf{ bssmap\+\_\+le\+\_\+location\+\_\+type} $\ast$location\+\_\+type)
\begin{DoxyCompactList}\small\item\em Encode full BSSMAP-\/\+LE Location Type IE, including IEI tag and length. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+bssmap\+\_\+le\+\_\+ie\+\_\+dec\+\_\+location\+\_\+type} (struct \textbf{ bssmap\+\_\+le\+\_\+location\+\_\+type} $\ast$lt, enum \textbf{ bssmap\+\_\+le\+\_\+msgt} msgt, enum \textbf{ bssmap\+\_\+le\+\_\+iei} \textbf{ iei}, struct \textbf{ osmo\+\_\+bssmap\+\_\+le\+\_\+err} $\ast$$\ast$err, void $\ast$err\+\_\+ctx, const uint8\+\_\+t $\ast$elem, uint8\+\_\+t \textbf{ len})
\begin{DoxyCompactList}\small\item\em Decode BSSMAP-\/\+LE Location Type IE value part. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
const struct \textbf{ value\+\_\+string} \textbf{ osmo\+\_\+bssmap\+\_\+le\+\_\+msgt\+\_\+names} [$\,$]
\item 
const struct \textbf{ value\+\_\+string} \textbf{ osmo\+\_\+bssmap\+\_\+le\+\_\+iei\+\_\+names} [$\,$]
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Message encoding and decoding for 3GPP TS 49.\+031 BSSMAP-\/\+LE. 

