\doxysection{include/osmocom/gsm/gsm0411\+\_\+utils.h File Reference}
\label{gsm0411__utils_8h}\index{include/osmocom/gsm/gsm0411\_utils.h@{include/osmocom/gsm/gsm0411\_utils.h}}
{\ttfamily \#include $<$time.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
uint8\+\_\+t \textbf{ gsm411\+\_\+bcdify} (uint8\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Turn int into semi-\/octet representation\+: 98 =$>$ 0x89. \end{DoxyCompactList}\item 
uint8\+\_\+t \textbf{ gsm411\+\_\+unbcdify} (uint8\+\_\+t value)
\begin{DoxyCompactList}\small\item\em Turn semi-\/octet representation into int\+: 0x89 =$>$ 98. \end{DoxyCompactList}\item 
struct \textbf{ msgb} $\ast$ \textbf{ gsm411\+\_\+msgb\+\_\+alloc} (void)
\begin{DoxyCompactList}\small\item\em Allocate a message buffer for use as TS 04.\+11 message. \end{DoxyCompactList}\item 
void \textbf{ gsm340\+\_\+gen\+\_\+scts} (uint8\+\_\+t $\ast$scts, time\+\_\+t \textbf{ time})
\begin{DoxyCompactList}\small\item\em Generate 03.\+40 TP-\/\+SCTS. \end{DoxyCompactList}\item 
time\+\_\+t \textbf{ gsm340\+\_\+scts} (uint8\+\_\+t $\ast$scts)
\begin{DoxyCompactList}\small\item\em Decode 03.\+40 TP-\/\+SCTS (into utc/gmt timestamp) \end{DoxyCompactList}\item 
unsigned long \textbf{ gsm340\+\_\+validity\+\_\+period} (uint8\+\_\+t sms\+\_\+vpf, uint8\+\_\+t $\ast$sms\+\_\+vp)
\begin{DoxyCompactList}\small\item\em decode validity period. \end{DoxyCompactList}\item 
enum \textbf{ sms\+\_\+alphabet} \textbf{ gsm338\+\_\+get\+\_\+sms\+\_\+alphabet} (uint8\+\_\+t \textbf{ dcs})
\begin{DoxyCompactList}\small\item\em determine coding alphabet dependent on GSM 03.\+38 Section 4 DCS \end{DoxyCompactList}\item 
int \textbf{ gsm340\+\_\+gen\+\_\+oa} (uint8\+\_\+t $\ast$oa, unsigned int oa\+\_\+len, uint8\+\_\+t \textbf{ type}, uint8\+\_\+t plan, const char $\ast$number)
\begin{DoxyCompactList}\small\item\em generate a TPDU address field compliant with 03.\+40 sec. \end{DoxyCompactList}\item 
int \textbf{ gsm411\+\_\+push\+\_\+rp\+\_\+header} (struct \textbf{ msgb} $\ast$\textbf{ msg}, uint8\+\_\+t rp\+\_\+msg\+\_\+type, uint8\+\_\+t rp\+\_\+msg\+\_\+ref)
\begin{DoxyCompactList}\small\item\em Prefix \textbf{ Message buffers} with a RP header. \end{DoxyCompactList}\item 
int \textbf{ gsm411\+\_\+push\+\_\+cp\+\_\+header} (struct \textbf{ msgb} $\ast$\textbf{ msg}, uint8\+\_\+t \textbf{ proto}, uint8\+\_\+t trans, uint8\+\_\+t \textbf{ msg\+\_\+type})
\begin{DoxyCompactList}\small\item\em Prefix \textbf{ Message buffers} with a 04.\+08/04.11 CP header. \end{DoxyCompactList}\end{DoxyCompactItemize}
