\hypertarget{namespaceDG__Firmware__Simulator}{}\section{D\+G\+\_\+\+Firmware\+\_\+\+Simulator Namespace Reference}
\label{namespaceDG__Firmware__Simulator}\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{namespaceDG__Firmware__Simulator_aa6803b1b5fc8b7dacf1a17f0d991a799}{calculate\+\_\+crc} (message)
\item 
def \hyperlink{namespaceDG__Firmware__Simulator_aca9578311f878dd8c4e38ac48439484a}{build\+\_\+message} (message)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
string \hyperlink{namespaceDG__Firmware__Simulator_a8688e985ffbf3dfa996d2cc845ef5068}{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE} = b\textquotesingle{}\textbackslash{}x\+A5\textquotesingle{}
\item 
\hyperlink{namespaceDG__Firmware__Simulator_ace1e45404e65a0ea9377062a529560bb}{serial\+\_\+port} = serial.\+Serial(port=\textquotesingle{}/dev/tty\+U\+S\+B1\textquotesingle{}, baudrate=115200)
\item 
def \hyperlink{namespaceDG__Firmware__Simulator_a0a0b737d86e93f1271aabb92db529cb8}{response\+\_\+message} = \hyperlink{namespaceDG__Firmware__Simulator_aca9578311f878dd8c4e38ac48439484a}{build\+\_\+message}(\hyperlink{namespaceDG__Firmware__Simulator_a8688e985ffbf3dfa996d2cc845ef5068}{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE} + b\textquotesingle{}\textbackslash{}x00\textbackslash{}x01\textquotesingle{} + b\textquotesingle{}\textbackslash{}x01\textquotesingle{} + b\textquotesingle{}\textbackslash{}x00\textquotesingle{} + b\textquotesingle{}\textbackslash{}x00\textquotesingle{})
\item 
def \hyperlink{namespaceDG__Firmware__Simulator_a5122eafc184080896f8e519811a9a396}{async\+\_\+message} = \hyperlink{namespaceDG__Firmware__Simulator_aca9578311f878dd8c4e38ac48439484a}{build\+\_\+message}(\hyperlink{namespaceDG__Firmware__Simulator_a8688e985ffbf3dfa996d2cc845ef5068}{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE} + b\textquotesingle{}\textbackslash{}x00\textbackslash{}x01\textquotesingle{} + b\textquotesingle{}\textbackslash{}x02\textquotesingle{} + b\textquotesingle{}\textbackslash{}x01\textbackslash{}x02\textquotesingle{} + b\textquotesingle{}\textbackslash{}x00\textquotesingle{})
\item 
def \hyperlink{namespaceDG__Firmware__Simulator_a884bd82fe79098e91d226c20c297c977}{sync\+\_\+message} = \hyperlink{namespaceDG__Firmware__Simulator_aca9578311f878dd8c4e38ac48439484a}{build\+\_\+message}(\hyperlink{namespaceDG__Firmware__Simulator_a8688e985ffbf3dfa996d2cc845ef5068}{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE} + b\textquotesingle{}\textbackslash{}x00\textbackslash{}x02\textquotesingle{} + b\textquotesingle{}\textbackslash{}x02\textquotesingle{} + b\textquotesingle{}\textbackslash{}x05\textbackslash{}x06\textquotesingle{} + b\textquotesingle{}\textbackslash{}x00\textquotesingle{})
\item 
int \hyperlink{namespaceDG__Firmware__Simulator_a5f3de1cbccff8339d98ae83075e63ff6}{counter} = 0
\item 
\hyperlink{namespaceDG__Firmware__Simulator_a86b580f84b58a14348958a124117456d}{bytes\+\_\+in\+\_\+serial\+\_\+port} = serial\+\_\+port.\+in\+\_\+waiting;
\item 
\hyperlink{namespaceDG__Firmware__Simulator_a5fb1a34301e648b012ba0b16466e2ad5}{end}
\item 
\hyperlink{namespaceDG__Firmware__Simulator_ab547d6fec7d99e2b519cc8a279ee2e17}{flush}
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_aca9578311f878dd8c4e38ac48439484a}\label{namespaceDG__Firmware__Simulator_aca9578311f878dd8c4e38ac48439484a}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!build\+\_\+message@{build\+\_\+message}}
\index{build\+\_\+message@{build\+\_\+message}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{build\+\_\+message()}{build\_message()}}
{\footnotesize\ttfamily def D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+build\+\_\+message (\begin{DoxyParamCaption}\item[{}]{message }\end{DoxyParamCaption})}

\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_aa6803b1b5fc8b7dacf1a17f0d991a799}\label{namespaceDG__Firmware__Simulator_aa6803b1b5fc8b7dacf1a17f0d991a799}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!calculate\+\_\+crc@{calculate\+\_\+crc}}
\index{calculate\+\_\+crc@{calculate\+\_\+crc}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{calculate\+\_\+crc()}{calculate\_crc()}}
{\footnotesize\ttfamily def D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+calculate\+\_\+crc (\begin{DoxyParamCaption}\item[{}]{message }\end{DoxyParamCaption})}



\subsection{Variable Documentation}
\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_a5122eafc184080896f8e519811a9a396}\label{namespaceDG__Firmware__Simulator_a5122eafc184080896f8e519811a9a396}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!async\+\_\+message@{async\+\_\+message}}
\index{async\+\_\+message@{async\+\_\+message}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{async\+\_\+message}{async\_message}}
{\footnotesize\ttfamily def D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+async\+\_\+message = \hyperlink{namespaceDG__Firmware__Simulator_aca9578311f878dd8c4e38ac48439484a}{build\+\_\+message}(\hyperlink{namespaceDG__Firmware__Simulator_a8688e985ffbf3dfa996d2cc845ef5068}{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE} + b\textquotesingle{}\textbackslash{}x00\textbackslash{}x01\textquotesingle{} + b\textquotesingle{}\textbackslash{}x02\textquotesingle{} + b\textquotesingle{}\textbackslash{}x01\textbackslash{}x02\textquotesingle{} + b\textquotesingle{}\textbackslash{}x00\textquotesingle{})}

\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_a86b580f84b58a14348958a124117456d}\label{namespaceDG__Firmware__Simulator_a86b580f84b58a14348958a124117456d}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!bytes\+\_\+in\+\_\+serial\+\_\+port@{bytes\+\_\+in\+\_\+serial\+\_\+port}}
\index{bytes\+\_\+in\+\_\+serial\+\_\+port@{bytes\+\_\+in\+\_\+serial\+\_\+port}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{bytes\+\_\+in\+\_\+serial\+\_\+port}{bytes\_in\_serial\_port}}
{\footnotesize\ttfamily D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+bytes\+\_\+in\+\_\+serial\+\_\+port = serial\+\_\+port.\+in\+\_\+waiting;}

\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_a5f3de1cbccff8339d98ae83075e63ff6}\label{namespaceDG__Firmware__Simulator_a5f3de1cbccff8339d98ae83075e63ff6}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!counter@{counter}}
\index{counter@{counter}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{counter}{counter}}
{\footnotesize\ttfamily int D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+counter = 0}

\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_a5fb1a34301e648b012ba0b16466e2ad5}\label{namespaceDG__Firmware__Simulator_a5fb1a34301e648b012ba0b16466e2ad5}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!end@{end}}
\index{end@{end}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{end}{end}}
{\footnotesize\ttfamily D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+end}

\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_ab547d6fec7d99e2b519cc8a279ee2e17}\label{namespaceDG__Firmware__Simulator_ab547d6fec7d99e2b519cc8a279ee2e17}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!flush@{flush}}
\index{flush@{flush}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{flush}{flush}}
{\footnotesize\ttfamily D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+flush}

\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_a0a0b737d86e93f1271aabb92db529cb8}\label{namespaceDG__Firmware__Simulator_a0a0b737d86e93f1271aabb92db529cb8}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!response\+\_\+message@{response\+\_\+message}}
\index{response\+\_\+message@{response\+\_\+message}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{response\+\_\+message}{response\_message}}
{\footnotesize\ttfamily def D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+response\+\_\+message = \hyperlink{namespaceDG__Firmware__Simulator_aca9578311f878dd8c4e38ac48439484a}{build\+\_\+message}(\hyperlink{namespaceDG__Firmware__Simulator_a8688e985ffbf3dfa996d2cc845ef5068}{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE} + b\textquotesingle{}\textbackslash{}x00\textbackslash{}x01\textquotesingle{} + b\textquotesingle{}\textbackslash{}x01\textquotesingle{} + b\textquotesingle{}\textbackslash{}x00\textquotesingle{} + b\textquotesingle{}\textbackslash{}x00\textquotesingle{})}

\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_ace1e45404e65a0ea9377062a529560bb}\label{namespaceDG__Firmware__Simulator_ace1e45404e65a0ea9377062a529560bb}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!serial\+\_\+port@{serial\+\_\+port}}
\index{serial\+\_\+port@{serial\+\_\+port}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{serial\+\_\+port}{serial\_port}}
{\footnotesize\ttfamily D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+serial\+\_\+port = serial.\+Serial(port=\textquotesingle{}/dev/tty\+U\+S\+B1\textquotesingle{}, baudrate=115200)}

\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_a8688e985ffbf3dfa996d2cc845ef5068}\label{namespaceDG__Firmware__Simulator_a8688e985ffbf3dfa996d2cc845ef5068}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE@{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE}}
\index{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE@{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE}{START\_BYTE}}
{\footnotesize\ttfamily string D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE = b\textquotesingle{}\textbackslash{}x\+A5\textquotesingle{}}

\mbox{\Hypertarget{namespaceDG__Firmware__Simulator_a884bd82fe79098e91d226c20c297c977}\label{namespaceDG__Firmware__Simulator_a884bd82fe79098e91d226c20c297c977}} 
\index{D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}!sync\+\_\+message@{sync\+\_\+message}}
\index{sync\+\_\+message@{sync\+\_\+message}!D\+G\+\_\+\+Firmware\+\_\+\+Simulator@{D\+G\+\_\+\+Firmware\+\_\+\+Simulator}}
\subsubsection{\texorpdfstring{sync\+\_\+message}{sync\_message}}
{\footnotesize\ttfamily def D\+G\+\_\+\+Firmware\+\_\+\+Simulator.\+sync\+\_\+message = \hyperlink{namespaceDG__Firmware__Simulator_aca9578311f878dd8c4e38ac48439484a}{build\+\_\+message}(\hyperlink{namespaceDG__Firmware__Simulator_a8688e985ffbf3dfa996d2cc845ef5068}{S\+T\+A\+R\+T\+\_\+\+B\+Y\+TE} + b\textquotesingle{}\textbackslash{}x00\textbackslash{}x02\textquotesingle{} + b\textquotesingle{}\textbackslash{}x02\textquotesingle{} + b\textquotesingle{}\textbackslash{}x05\textbackslash{}x06\textquotesingle{} + b\textquotesingle{}\textbackslash{}x00\textquotesingle{})}

