\doxysection{osmo\+\_\+soft\+\_\+uart Struct Reference}
\label{structosmo__soft__uart}\index{osmo\_soft\_uart@{osmo\_soft\_uart}}


Internal state of a soft-\/\+UART.  


\doxysubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+cfg} \textbf{ cfg}
\item 
const char $\ast$ \textbf{ name}
\item 
unsigned int \textbf{ status}
\item 
\begin{tabbing}
xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=\kill
struct \{\\
\>bool \textbf{ running}\\
\>uint8\_t \textbf{ bit\_count}\\
\>uint8\_t \textbf{ shift\_reg}\\
\>struct \textbf{ msgb} $\ast$ \textbf{ msg}\\
\>\textbf{ ubit\_t} \textbf{ parity\_bit}\\
\>unsigned int \textbf{ flags}\\
\>struct \textbf{ osmo\_timer\_list} \textbf{ timer}\\
\>enum \textbf{ suart\_flow\_state} \textbf{ flow\_state}\\
\} \textbf{ rx}\\

\end{tabbing}\item 
\begin{tabbing}
xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=\kill
struct \{\\
\>bool \textbf{ running}\\
\>uint8\_t \textbf{ bit\_count}\\
\>uint8\_t \textbf{ shift\_reg}\\
\>\textbf{ ubit\_t} \textbf{ parity\_bit}\\
\>enum \textbf{ suart\_flow\_state} \textbf{ flow\_state}\\
\} \textbf{ tx}\\

\end{tabbing}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Internal state of a soft-\/\+UART. 

\doxysubsection{Field Documentation}
\mbox{\label{structosmo__soft__uart_a59d5bc565ac179cb4109f68c7dd7caa4}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!bit\_count@{bit\_count}}
\index{bit\_count@{bit\_count}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{bit\_count}
{\footnotesize\ttfamily uint8\+\_\+t osmo\+\_\+soft\+\_\+uart\+::bit\+\_\+count}



Referenced by \textbf{ suart\+\_\+rx\+\_\+bit()}, and \textbf{ suart\+\_\+tx\+\_\+bit()}.

\mbox{\label{structosmo__soft__uart_a18eec6d110f474594908de271f8e23db}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!cfg@{cfg}}
\index{cfg@{cfg}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{cfg}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+cfg} osmo\+\_\+soft\+\_\+uart\+::cfg}



Referenced by \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+alloc()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+configure()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+flush\+\_\+rx()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+rx()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+status()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+tx\+\_\+ubits()}, \textbf{ suart\+\_\+rx\+\_\+bit()}, \textbf{ suart\+\_\+rx\+\_\+ch()}, and \textbf{ suart\+\_\+tx\+\_\+bit()}.

\mbox{\label{structosmo__soft__uart_aabf3ab2eb7601c8d95b08e98041139d2}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!flags@{flags}}
\index{flags@{flags}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{flags}
{\footnotesize\ttfamily unsigned int osmo\+\_\+soft\+\_\+uart\+::flags}



Referenced by \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+flush\+\_\+rx()}, \textbf{ suart\+\_\+rx\+\_\+bit()}, and \textbf{ suart\+\_\+rx\+\_\+ch()}.

\mbox{\label{structosmo__soft__uart_a2744b3e1f99827b969b1b6e39261951c}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!flow\_state@{flow\_state}}
\index{flow\_state@{flow\_state}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{flow\_state}
{\footnotesize\ttfamily enum \textbf{ suart\+\_\+flow\+\_\+state} osmo\+\_\+soft\+\_\+uart\+::flow\+\_\+state}



Referenced by \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+rx()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+tx()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+tx\+\_\+ubits()}, \textbf{ suart\+\_\+rx\+\_\+bit()}, \textbf{ suart\+\_\+tx\+\_\+bit()}, and \textbf{ suart\+\_\+tx\+\_\+pending()}.

\mbox{\label{structosmo__soft__uart_a780c9c258e4f6f22634d09b96026096f}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!msg@{msg}}
\index{msg@{msg}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{msg}
{\footnotesize\ttfamily struct \textbf{ msgb}$\ast$ osmo\+\_\+soft\+\_\+uart\+::msg}



Referenced by \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+flush\+\_\+rx()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+free()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+rx()}, \textbf{ suart\+\_\+rx\+\_\+ch()}, and \textbf{ suart\+\_\+tx\+\_\+bit()}.

\mbox{\label{structosmo__soft__uart_acb290af95b35206f31e889af25be0d30}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!name@{name}}
\index{name@{name}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{name}
{\footnotesize\ttfamily const char$\ast$ osmo\+\_\+soft\+\_\+uart\+::name}



Referenced by \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+alloc()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+free()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+get\+\_\+name()}, and \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+name()}.

\mbox{\label{structosmo__soft__uart_af12209eb76b5bc92bfa33b85615af7b4}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!parity\_bit@{parity\_bit}}
\index{parity\_bit@{parity\_bit}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{parity\_bit}
{\footnotesize\ttfamily \textbf{ ubit\+\_\+t} osmo\+\_\+soft\+\_\+uart\+::parity\+\_\+bit}



Referenced by \textbf{ suart\+\_\+rx\+\_\+bit()}, and \textbf{ suart\+\_\+tx\+\_\+bit()}.

\mbox{\label{structosmo__soft__uart_ac3c74e27396ddf1528cf1f99f791cd9d}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!running@{running}}
\index{running@{running}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{running}
{\footnotesize\ttfamily bool osmo\+\_\+soft\+\_\+uart\+::running}



Referenced by \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+rx\+\_\+ubits()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+rx()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+tx()}, and \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+tx\+\_\+ubits()}.

\mbox{\label{structosmo__soft__uart_a0d99f0732571b3ab5f2b1b236dd05697}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!rx@{rx}}
\index{rx@{rx}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{}
{\footnotesize\ttfamily struct  \{ ... \}  osmo\+\_\+soft\+\_\+uart\+::rx}



Referenced by \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+configure()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+flush\+\_\+rx()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+free()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+rx\+\_\+ubits()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+rx()}, \textbf{ suart\+\_\+rx\+\_\+bit()}, and \textbf{ suart\+\_\+rx\+\_\+ch()}.

\mbox{\label{structosmo__soft__uart_a0d803184e0e11d4b1f1ede35a20387b1}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!shift\_reg@{shift\_reg}}
\index{shift\_reg@{shift\_reg}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{shift\_reg}
{\footnotesize\ttfamily uint8\+\_\+t osmo\+\_\+soft\+\_\+uart\+::shift\+\_\+reg}



Referenced by \textbf{ suart\+\_\+rx\+\_\+bit()}, and \textbf{ suart\+\_\+tx\+\_\+bit()}.

\mbox{\label{structosmo__soft__uart_af5896d386a722d5b5ce33e1cad715f1b}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!status@{status}}
\index{status@{status}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{status}
{\footnotesize\ttfamily unsigned int osmo\+\_\+soft\+\_\+uart\+::status}



Referenced by \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+get\+\_\+status()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+status()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+status\+\_\+line()}, and \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+tx\+\_\+ubits()}.

\mbox{\label{structosmo__soft__uart_a9dce57416592b34b41ca34507ed5291f}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!timer@{timer}}
\index{timer@{timer}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{timer}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+timer\+\_\+list} osmo\+\_\+soft\+\_\+uart\+::timer}



Referenced by \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+configure()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+flush\+\_\+rx()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+free()}, and \textbf{ suart\+\_\+rx\+\_\+ch()}.

\mbox{\label{structosmo__soft__uart_aeffeec8dd8b01ae712994d0dff326c1d}} 
\index{osmo\_soft\_uart@{osmo\_soft\_uart}!tx@{tx}}
\index{tx@{tx}!osmo\_soft\_uart@{osmo\_soft\_uart}}
\doxysubsubsection{}
{\footnotesize\ttfamily struct  \{ ... \}  osmo\+\_\+soft\+\_\+uart\+::tx}



Referenced by \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+set\+\_\+tx()}, \textbf{ osmo\+\_\+soft\+\_\+uart\+\_\+tx\+\_\+ubits()}, \textbf{ suart\+\_\+tx\+\_\+bit()}, and \textbf{ suart\+\_\+tx\+\_\+pending()}.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
src/core/\textbf{ soft\+\_\+uart.\+c}\end{DoxyCompactItemize}
