\section{examples/win32test/main.c File Reference}
\label{main_8c}\index{examples/win32test/main.c@{examples/win32test/main.c}}
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include \char`\"{}win32test.h\char`\"{}}\par
{\tt \#include \char`\"{}canfestival.h\char`\"{}}\par
{\tt \#include $<$time.h$>$}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf sleep\_\-proc}(ms)
\item 
\#define {\bf uptime\_\-ms\_\-proc}~(1000$\ast$(time()\%86400))
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
UNS8 {\bf Get\-Change\-State\-Results} (UNS8 node\_\-id, UNS8 expected\_\-state, unsigned long timeout\_\-ms)
\item 
UNS8 {\bf Read\-SDO} (UNS8 node\-Id, UNS16 index, UNS8 sub\-Index, UNS8 data\-Type, void $\ast$data, UNS8 $\ast$size)
\item 
int {\bf main} (int argc, char $\ast$argv[$\,$])
\end{CompactItemize}


\subsection{Define Documentation}
\index{main.c@{main.c}!sleep_proc@{sleep\_\-proc}}
\index{sleep_proc@{sleep\_\-proc}!main.c@{main.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define sleep\_\-proc(ms)}\label{main_8c_912c62bad87e954cee4b1733111a420b}


\index{main.c@{main.c}!uptime_ms_proc@{uptime\_\-ms\_\-proc}}
\index{uptime_ms_proc@{uptime\_\-ms\_\-proc}!main.c@{main.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define uptime\_\-ms\_\-proc~(1000$\ast$(time()\%86400))}\label{main_8c_6faddd33869dd1ccf360315b1f11b554}




\subsection{Function Documentation}
\index{main.c@{main.c}!GetChangeStateResults@{GetChangeStateResults}}
\index{GetChangeStateResults@{GetChangeStateResults}!main.c@{main.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}UNS8 Get\-Change\-State\-Results (UNS8 {\em node\_\-id}, UNS8 {\em expected\_\-state}, unsigned long {\em timeout\_\-ms})}\label{main_8c_b324a2fad227690e3da744b69f7a8119}


\index{main.c@{main.c}!main@{main}}
\index{main@{main}!main.c@{main.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{main_8c_0ddf1224851353fc92bfbff6f499fa97}


\index{main.c@{main.c}!ReadSDO@{ReadSDO}}
\index{ReadSDO@{ReadSDO}!main.c@{main.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}UNS8 Read\-SDO (UNS8 {\em node\-Id}, UNS16 {\em index}, UNS8 {\em sub\-Index}, UNS8 {\em data\-Type}, void $\ast$ {\em data}, UNS8 $\ast$ {\em size})}\label{main_8c_d4427585d0ce571277ff22b72adce526}


