\doxysection{rs232.\+h}
\label{rs232_8h_source}\index{include/osmocom/netif/rs232.h@{include/osmocom/netif/rs232.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ \_OSMO\_RS232\_H\_}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ \_OSMO\_RS232\_H\_}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{keyword}{struct\ }osmo\_rs232;}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00006\ \textcolor{keyword}{struct\ }osmo\_rs232\ *osmo\_rs232\_create(\textcolor{keywordtype}{void}\ *ctx);}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ \textcolor{keywordtype}{void}\ osmo\_rs232\_set\_serial\_port(\textcolor{keyword}{struct}\ osmo\_rs232\ *,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *serial\_port);}
\DoxyCodeLine{00009\ \textcolor{keywordtype}{void}\ osmo\_rs232\_set\_delay\_us(\textcolor{keyword}{struct}\ osmo\_rs232\ *,\ \textcolor{keywordtype}{int}\ delay\_us);}
\DoxyCodeLine{00010\ \textcolor{keywordtype}{void}\ osmo\_rs232\_set\_baudrate(\textcolor{keyword}{struct}\ osmo\_rs232\ *,\ \textcolor{keywordtype}{int}\ baudrate);}
\DoxyCodeLine{00011\ \textcolor{keywordtype}{void}\ osmo\_rs232\_set\_read\_cb(\textcolor{keyword}{struct}\ osmo\_rs232\ *r,\ \textcolor{keywordtype}{int}\ (*read\_cb)(\textcolor{keyword}{struct}\ osmo\_rs232\ *r));}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00013\ \textcolor{keywordtype}{int}\ osmo\_rs232\_open(\textcolor{keyword}{struct}\ osmo\_rs232\ *r);}
\DoxyCodeLine{00014\ }
\DoxyCodeLine{00015\ \textcolor{keywordtype}{int}\ osmo\_rs232\_read(\textcolor{keyword}{struct}\ osmo\_rs232\ *r,\ \textcolor{keyword}{struct}\ msgb\ *msg);}
\DoxyCodeLine{00016\ \textcolor{keywordtype}{int}\ osmo\_rs232\_write(\textcolor{keyword}{struct}\ osmo\_rs232\ *r,\ \textcolor{keyword}{struct}\ msgb\ *msg);}
\DoxyCodeLine{00017\ }
\DoxyCodeLine{00018\ \textcolor{keywordtype}{void}\ osmo\_rs232\_close(\textcolor{keyword}{struct}\ osmo\_rs232\ *r);}
\DoxyCodeLine{00019\ \textcolor{keywordtype}{void}\ osmo\_rs232\_destroy(\textcolor{keyword}{struct}\ osmo\_rs232\ *r);}
\DoxyCodeLine{00020\ }
\DoxyCodeLine{00021\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ \_OSMO\_RS232\_H\_\ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
