\doxysection{include/osmocom/core/serial.h File Reference}
\label{serial_8h}\index{include/osmocom/core/serial.h@{include/osmocom/core/serial.h}}


Osmocom serial port helpers.  


{\ttfamily \#include $<$termios.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ osmo\+\_\+serial\+\_\+init} (const char $\ast$dev, speed\+\_\+t baudrate)
\begin{DoxyCompactList}\small\item\em Open serial device and does base init. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+serial\+\_\+set\+\_\+baudrate} (int fd, speed\+\_\+t baudrate)
\begin{DoxyCompactList}\small\item\em Change current baudrate. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+serial\+\_\+set\+\_\+custom\+\_\+baudrate} (int fd, int baudrate)
\begin{DoxyCompactList}\small\item\em Change current baudrate to a custom one using OS specific method. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+serial\+\_\+clear\+\_\+custom\+\_\+baudrate} (int fd)
\begin{DoxyCompactList}\small\item\em Clear any custom baudrate. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+serial\+\_\+speed\+\_\+t} (unsigned int baudrate, speed\+\_\+t $\ast$speed)
\begin{DoxyCompactList}\small\item\em Convert unsigned integer value to speed\+\_\+t. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Osmocom serial port helpers. 

