\doxysection{src/gsm/rlp.c File Reference}
\label{rlp_8c}\index{src/gsm/rlp.c@{src/gsm/rlp.c}}
{\ttfamily \#include $<$stdint.\+h$>$}\newline
{\ttfamily \#include $<$stddef.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/gsm/rlp.\+h$>$}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \textbf{ FCS\+\_\+\+SIZE\+\_\+\+BYTES}~3
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ osmo\+\_\+rlp\+\_\+decode} (struct \textbf{ osmo\+\_\+rlp\+\_\+frame\+\_\+decoded} $\ast$out, uint8\+\_\+t \textbf{ version}, const uint8\+\_\+t $\ast$\textbf{ data}, size\+\_\+t data\+\_\+len)
\begin{DoxyCompactList}\small\item\em decode a RLP frame into its abstract representation. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+rlp\+\_\+encode} (uint8\+\_\+t $\ast$out, size\+\_\+t out\+\_\+size, const struct \textbf{ osmo\+\_\+rlp\+\_\+frame\+\_\+decoded} $\ast$in)
\begin{DoxyCompactList}\small\item\em encode a RLP frame from its abstract representation. \end{DoxyCompactList}\item 
uint32\+\_\+t \textbf{ osmo\+\_\+rlp\+\_\+fcs\+\_\+compute} (const uint8\+\_\+t $\ast$in, size\+\_\+t in\+\_\+len)
\begin{DoxyCompactList}\small\item\em compute RLP FCS according to 3GPP TS 24.\+022 Section 4.\+4. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
const struct \textbf{ value\+\_\+string} \textbf{ osmo\+\_\+rlp\+\_\+ftype\+\_\+vals} [$\,$]
\item 
const struct \textbf{ value\+\_\+string} \textbf{ osmo\+\_\+rlp\+\_\+ftype\+\_\+u\+\_\+vals} [$\,$]
\item 
const struct \textbf{ value\+\_\+string} \textbf{ osmo\+\_\+rlp\+\_\+ftype\+\_\+s\+\_\+vals} [$\,$]
\item 
static const uint32\+\_\+t \textbf{ rlp\+\_\+fcs\+\_\+table} [256]
\end{DoxyCompactItemize}
