\doxysection{rtrlib/lib/utils\+\_\+private.h File Reference}
\hypertarget{utils__private_8h}{}\label{utils__private_8h}\index{rtrlib/lib/utils\_private.h@{rtrlib/lib/utils\_private.h}}
{\ttfamily \#include $<$stdint.\+h$>$}\newline
{\ttfamily \#include $<$time.\+h$>$}\newline
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{utils__private_8h_a4cbd933df9a2d1e2f2ee11bfba805086}{lrtr\+\_\+get\+\_\+monotonic\+\_\+time}} (time\+\_\+t \texorpdfstring{$\ast$}{*}seconds)
\begin{DoxyCompactList}\small\item\em Returns the current time of the CLOCK\+\_\+\+MONOTONIC clock. \end{DoxyCompactList}\item 
uint32\+\_\+t \mbox{\hyperlink{utils__private_8h_a777cc1ba0aab2fe81a45658f4f206434}{lrtr\+\_\+get\+\_\+bits}} (const uint32\+\_\+t val, const uint8\+\_\+t from, const uint8\+\_\+t number)
\begin{DoxyCompactList}\small\item\em Extracts number bits from the passed uint32\+\_\+t, starting at bit number from. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\Hypertarget{utils__private_8h_a777cc1ba0aab2fe81a45658f4f206434}\label{utils__private_8h_a777cc1ba0aab2fe81a45658f4f206434} 
\index{utils\_private.h@{utils\_private.h}!lrtr\_get\_bits@{lrtr\_get\_bits}}
\index{lrtr\_get\_bits@{lrtr\_get\_bits}!utils\_private.h@{utils\_private.h}}
\doxysubsubsection{\texorpdfstring{lrtr\_get\_bits()}{lrtr\_get\_bits()}}
{\footnotesize\ttfamily uint32\+\_\+t lrtr\+\_\+get\+\_\+bits (\begin{DoxyParamCaption}\item[{const uint32\+\_\+t}]{val,  }\item[{const uint8\+\_\+t}]{from,  }\item[{const uint8\+\_\+t}]{number }\end{DoxyParamCaption})}



Extracts number bits from the passed uint32\+\_\+t, starting at bit number from. 

The bit with the highest significance is bit 0. All bits that aren\textquotesingle{}t in the specified range will be 0. 
\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em val} & uint32\+\_\+t \\
\hline
\mbox{\texttt{ in}}  & {\em from} & Position of the first bit that is extracted. \\
\hline
\mbox{\texttt{ in}}  & {\em number} & How many bits will be extracted. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a uint32\+\_\+t, where all bits that aren\textquotesingle{}t in the specified range are set to 0. 
\end{DoxyReturn}
\Hypertarget{utils__private_8h_a4cbd933df9a2d1e2f2ee11bfba805086}\label{utils__private_8h_a4cbd933df9a2d1e2f2ee11bfba805086} 
\index{utils\_private.h@{utils\_private.h}!lrtr\_get\_monotonic\_time@{lrtr\_get\_monotonic\_time}}
\index{lrtr\_get\_monotonic\_time@{lrtr\_get\_monotonic\_time}!utils\_private.h@{utils\_private.h}}
\doxysubsubsection{\texorpdfstring{lrtr\_get\_monotonic\_time()}{lrtr\_get\_monotonic\_time()}}
{\footnotesize\ttfamily int lrtr\+\_\+get\+\_\+monotonic\+\_\+time (\begin{DoxyParamCaption}\item[{time\+\_\+t \texorpdfstring{$\ast$}{*}}]{seconds }\end{DoxyParamCaption})}



Returns the current time of the CLOCK\+\_\+\+MONOTONIC clock. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em seconds} & Time in seconds since some unspecified starting point. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on successs 

-\/1 on error 
\end{DoxyReturn}
