\hypertarget{structuartbus}{}\section{uartbus Struct Reference}
\label{structuartbus}\index{uartbus@{uartbus}}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
int16\+\_\+t($\ast$ \hyperlink{structuartbus_ad2bddfe37d611159c873d55854e5f51e}{do\+\_\+receive\+\_\+byte} )(struct \hyperlink{structuartbus}{uartbus} $\ast$bus)
\item 
void($\ast$ \hyperlink{structuartbus_adf38b262fc8b60aeb298dd15da43270d}{serial\+\_\+byte\+\_\+received} )(struct \hyperlink{structuartbus}{uartbus} $\ast$bus, uint8\+\_\+t data\+\_\+byte)
\item 
\mbox{\Hypertarget{structuartbus_a2bcba5452c851c90250585f8ec251a0a}\label{structuartbus_a2bcba5452c851c90250585f8ec251a0a}} 
void($\ast$ {\bfseries serial\+\_\+event} )(struct \hyperlink{structuartbus}{uartbus} $\ast$bus, enum uartbus\+\_\+event event)
\item 
\mbox{\Hypertarget{structuartbus_ae23d4ab9ad2e449ef9ad56a7aa1904fb}\label{structuartbus_ae23d4ab9ad2e449ef9ad56a7aa1904fb}} 
uint8\+\_\+t($\ast$ {\bfseries do\+\_\+send\+\_\+byte} )(struct \hyperlink{structuartbus}{uartbus} $\ast$bus, uint8\+\_\+t)
\item 
\mbox{\Hypertarget{structuartbus_a37b7821c24c207ae93020129bf416197}\label{structuartbus_a37b7821c24c207ae93020129bf416197}} 
uint32\+\_\+t($\ast$ {\bfseries current\+\_\+usec} )(struct \hyperlink{structuartbus}{uartbus} $\ast$bus)
\item 
\mbox{\Hypertarget{structuartbus_a52c8522f0f0ad2ba5c4af36f49064b48}\label{structuartbus_a52c8522f0f0ad2ba5c4af36f49064b48}} 
uint8\+\_\+t($\ast$ {\bfseries rand} )(struct \hyperlink{structuartbus}{uartbus} $\ast$bus)
\item 
\mbox{\Hypertarget{structuartbus_a45de6831516522fdeab20bd188fa74ce}\label{structuartbus_a45de6831516522fdeab20bd188fa74ce}} 
void $\ast$ {\bfseries user\+\_\+data}
\item 
\mbox{\Hypertarget{structuartbus_ab7682157baa8925887d8057953e84cc0}\label{structuartbus_ab7682157baa8925887d8057953e84cc0}} 
uint8\+\_\+t $\ast$ {\bfseries to\+\_\+send}
\item 
\mbox{\Hypertarget{structuartbus_ab822f50318280791cb36a1f8d59f1309}\label{structuartbus_ab822f50318280791cb36a1f8d59f1309}} 
volatile uint16\+\_\+t {\bfseries to\+\_\+send\+\_\+size}
\item 
\mbox{\Hypertarget{structuartbus_ac224d689cead403512e2633ca9d27baa}\label{structuartbus_ac224d689cead403512e2633ca9d27baa}} 
enum uartbus\+\_\+status {\bfseries status}
\item 
\mbox{\Hypertarget{structuartbus_a7d0716a9f8f9d6d0775c49a6fe428e62}\label{structuartbus_a7d0716a9f8f9d6d0775c49a6fe428e62}} 
uint16\+\_\+t {\bfseries byte\+\_\+time\+\_\+us}
\item 
\mbox{\Hypertarget{structuartbus_afc991f12a94dc29314382c8378a80125}\label{structuartbus_afc991f12a94dc29314382c8378a80125}} 
uint8\+\_\+t {\bfseries packet\+\_\+timeout}
\item 
\mbox{\Hypertarget{structuartbus_a19cad94f1d4e767694f416b6b7c042be}\label{structuartbus_a19cad94f1d4e767694f416b6b7c042be}} 
uint8\+\_\+t {\bfseries cfg}
\item 
\mbox{\Hypertarget{structuartbus_affc51f5b423d6778d5f5c5f83581714e}\label{structuartbus_affc51f5b423d6778d5f5c5f83581714e}} 
uint32\+\_\+t {\bfseries last\+\_\+bus\+\_\+activity}
\item 
\mbox{\Hypertarget{structuartbus_a2f97222e7bd1831792ad2efcd57e6b1b}\label{structuartbus_a2f97222e7bd1831792ad2efcd57e6b1b}} 
volatile int16\+\_\+t {\bfseries wi}
\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 49 of file direct.\+c.



\subsection{Member Data Documentation}
\mbox{\Hypertarget{structuartbus_ad2bddfe37d611159c873d55854e5f51e}\label{structuartbus_ad2bddfe37d611159c873d55854e5f51e}} 
\index{uartbus@{uartbus}!do\+\_\+receive\+\_\+byte@{do\+\_\+receive\+\_\+byte}}
\index{do\+\_\+receive\+\_\+byte@{do\+\_\+receive\+\_\+byte}!uartbus@{uartbus}}
\subsubsection{\texorpdfstring{do\+\_\+receive\+\_\+byte}{do\_receive\_byte}}
{\footnotesize\ttfamily int16\+\_\+t($\ast$ uartbus\+::do\+\_\+receive\+\_\+byte) (struct \hyperlink{structuartbus}{uartbus} $\ast$bus)}

receive one byte (0-\/255) on error\+: any negative value or higher than 255 

Definition at line 83 of file ub.\+h.

\mbox{\Hypertarget{structuartbus_adf38b262fc8b60aeb298dd15da43270d}\label{structuartbus_adf38b262fc8b60aeb298dd15da43270d}} 
\index{uartbus@{uartbus}!serial\+\_\+byte\+\_\+received@{serial\+\_\+byte\+\_\+received}}
\index{serial\+\_\+byte\+\_\+received@{serial\+\_\+byte\+\_\+received}!uartbus@{uartbus}}
\subsubsection{\texorpdfstring{serial\+\_\+byte\+\_\+received}{serial\_byte\_received}}
{\footnotesize\ttfamily void($\ast$ uartbus\+::serial\+\_\+byte\+\_\+received) (struct \hyperlink{structuartbus}{uartbus} $\ast$bus, uint8\+\_\+t data\+\_\+byte)}

function called when a byte received from serial line. 

Definition at line 90 of file ub.\+h.



The documentation for this struct was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
/home/javaexperience/git-\/repositories/javaexperience/uartbus/source/uc/bootloader/direct.\+c\item 
/home/javaexperience/git-\/repositories/javaexperience/uartbus/source/uc/bus/lib/common/ub.\+h\end{DoxyCompactItemize}
