\hypertarget{VSTST_8c}{
\section{VSTST.c File Reference}
\label{VSTST_8c}\index{VSTST.c@{VSTST.c}}
}
{\tt \#include \char`\"{}vx\-Works.h\char`\"{}}\par
{\tt \#include \char`\"{}stdio.h\char`\"{}}\par
{\tt \#include \char`\"{}sem\-Lib.h\char`\"{}}\par
{\tt \#include \char`\"{}wd\-Lib.h\char`\"{}}\par
{\tt \#include \char`\"{}io\-Lib.h\char`\"{}}\par
{\tt \#include \char`\"{}sys\-Lib.h\char`\"{}}\par
{\tt \#include \char`\"{}sock\-Lib.h\char`\"{}}\par
{\tt \#include \char`\"{}netinet/in.h\char`\"{}}\par
{\tt \#include \char`\"{}VSAM/VSTST.h\char`\"{}}\par
{\tt \#include \char`\"{}VSAM/VSAM\_\-readout.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{VSTST_8c_a0}{VTEST} (char $\ast$vme\-Addr, unsigned ip\-Addr, unsigned port)
\end{CompactItemize}


\subsection{Detailed Description}




\subsection{Function Documentation}
\hypertarget{VSTST_8c_a0}{
\index{VSTST.c@{VSTST.c}!VTEST@{VTEST}}
\index{VTEST@{VTEST}!VSTST.c@{VSTST.c}}
\subsubsection[VTEST]{\setlength{\rightskip}{0pt plus 5cm}int VTEST (char $\ast$ {\em vme\-Addr}, unsigned {\em ip\-Addr}, unsigned {\em port})}}
\label{VSTST_8c_a0}


Runs the VSTST application. After initializing resources, the function pends on the one second timer. When the timer expires, the function reads all of the VSAM channels into a buffer and sends the contents as a UDP packet.\begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
vme\-Addr}]The VME Bus physical address the VSAM board hardware is  set to. \item[{\em 
ip\-Addr}]The IP address to send the VSAM packet to. \item[{\em 
port}]The UDP/IP port number to send to at machine {\em ip\-Addr}.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values: ]\par
\begin{description}
\item[{\em 
0}]Success. \item[{\em 
-1}]Failure. \end{description}
\end{Desc}
