\doxysection{serial.\+h}
\label{serial_8h_source}\index{include/osmocom/core/serial.h@{include/osmocom/core/serial.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{3 \textcolor{comment}{/*}}
\DoxyCodeLine{4 \textcolor{comment}{ * Copyright (C) 2011  Sylvain Munaut <tnt@246tNt.com>}}
\DoxyCodeLine{5 \textcolor{comment}{ *}}
\DoxyCodeLine{6 \textcolor{comment}{ * All Rights Reserved}}
\DoxyCodeLine{7 \textcolor{comment}{ *}}
\DoxyCodeLine{8 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{9 \textcolor{comment}{ * it under the terms of the GNU General Public License as published by}}
\DoxyCodeLine{10 \textcolor{comment}{ * the Free Software Foundation; either version 2 of the License, or}}
\DoxyCodeLine{11 \textcolor{comment}{ * (at your option) any later version.}}
\DoxyCodeLine{12 \textcolor{comment}{ *}}
\DoxyCodeLine{13 \textcolor{comment}{ * This program is distributed in the hope that it will be useful,}}
\DoxyCodeLine{14 \textcolor{comment}{ * but WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{15 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the}}
\DoxyCodeLine{16 \textcolor{comment}{ * GNU General Public License for more details.}}
\DoxyCodeLine{17 \textcolor{comment}{ */}}
\DoxyCodeLine{18 }
\DoxyCodeLine{23 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{24 }
\DoxyCodeLine{25 \textcolor{preprocessor}{\#include <termios.h>}}
\DoxyCodeLine{26 }
\DoxyCodeLine{27 \textcolor{keywordtype}{int} osmo\_serial\_init(\textcolor{keyword}{const} \textcolor{keywordtype}{char} *dev, speed\_t baudrate);}
\DoxyCodeLine{28 \textcolor{keywordtype}{int} osmo\_serial\_set\_baudrate(\textcolor{keywordtype}{int} fd, speed\_t baudrate);}
\DoxyCodeLine{29 \textcolor{keywordtype}{int} osmo\_serial\_set\_custom\_baudrate(\textcolor{keywordtype}{int} fd, \textcolor{keywordtype}{int} baudrate);}
\DoxyCodeLine{30 \textcolor{keywordtype}{int} osmo\_serial\_clear\_custom\_baudrate(\textcolor{keywordtype}{int} fd);}
\DoxyCodeLine{31 \textcolor{keywordtype}{int} osmo\_serial\_speed\_t(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} baudrate, speed\_t *speed);}
\DoxyCodeLine{32 }

\end{DoxyCode}
