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

\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef \_OSMO\_RS232\_H\_}}
\DoxyCodeLine{2 \textcolor{preprocessor}{\#define \_OSMO\_RS232\_H\_}}
\DoxyCodeLine{3 }
\DoxyCodeLine{4 \textcolor{keyword}{struct }osmo\_rs232;}
\DoxyCodeLine{5 }
\DoxyCodeLine{6 \textcolor{keyword}{struct }osmo\_rs232 *osmo\_rs232\_create(\textcolor{keywordtype}{void} *ctx);}
\DoxyCodeLine{7 }
\DoxyCodeLine{8 \textcolor{keywordtype}{void} osmo\_rs232\_set\_serial\_port(\textcolor{keyword}{struct} osmo\_rs232 *, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *serial\_port);}
\DoxyCodeLine{9 \textcolor{keywordtype}{void} osmo\_rs232\_set\_delay\_us(\textcolor{keyword}{struct} osmo\_rs232 *, \textcolor{keywordtype}{int} delay\_us);}
\DoxyCodeLine{10 \textcolor{keywordtype}{void} osmo\_rs232\_set\_baudrate(\textcolor{keyword}{struct} osmo\_rs232 *, \textcolor{keywordtype}{int} baudrate);}
\DoxyCodeLine{11 \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{12 }
\DoxyCodeLine{13 \textcolor{keywordtype}{int} osmo\_rs232\_open(\textcolor{keyword}{struct} osmo\_rs232 *r);}
\DoxyCodeLine{14 }
\DoxyCodeLine{15 \textcolor{keywordtype}{int} osmo\_rs232\_read(\textcolor{keyword}{struct} osmo\_rs232 *r, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{16 \textcolor{keywordtype}{int} osmo\_rs232\_write(\textcolor{keyword}{struct} osmo\_rs232 *r, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{17 }
\DoxyCodeLine{18 \textcolor{keywordtype}{void} osmo\_rs232\_close(\textcolor{keyword}{struct} osmo\_rs232 *r);}
\DoxyCodeLine{19 \textcolor{keywordtype}{void} osmo\_rs232\_destroy(\textcolor{keyword}{struct} osmo\_rs232 *r);}
\DoxyCodeLine{20 }
\DoxyCodeLine{21 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_OSMO\_RS232\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
