\hypertarget{version_8c}{
\section{version.c File Reference}
\label{version_8c}\index{version.c@{version.c}}
}
Provides function to extract the firmware/hardware version.  


{\tt \#include \char`\"{}DUTIL/version.h\char`\"{}}\par
{\tt \#include \char`\"{}DAB/sgem.h\char`\"{}}\par
{\tt \#include \char`\"{}DAB/sebm.h\char`\"{}}\par
{\tt \#include \char`\"{}DAB/scru.h\char`\"{}}\par
{\tt \#include \char`\"{}DAB/reg.h\char`\"{}}\par
{\tt \#include \char`\"{}DEM/AEM\_\-CC\_\-sync.h\char`\"{}}\par
{\tt \#include \char`\"{}MSG/MSG\_\-pubdefs.h\char`\"{}}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par


Include dependency graph for version.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=135pt]{version_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{version_8c_a0}{do\-Print} (const char $\ast$tgt, unsigned payload)
\begin{CompactList}\small\item\em Prints out a pretty statement about the version information in {\em payload\/}. \item\end{CompactList}\item 
void \hyperlink{version_8c_a1}{print\-GEM} (unsigned payload)
\begin{CompactList}\small\item\em Prints out the additional version information for the GEM. \item\end{CompactList}\item 
int \hyperlink{version_8c_a2}{print\-Version} (LIOXs slh, const char $\ast$tgt)
\begin{CompactList}\small\item\em Reads the version information from the ASICs on the target component. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Provides function to extract the firmware/hardware version. 

\begin{Desc}
\item[Author:]James Swain -- \href{mailto:jswain@slac.stanford.edu}{\tt jswain@slac.stanford.edu} \end{Desc}


\subsection{Function Documentation}
\hypertarget{version_8c_a0}{
\index{version.c@{version.c}!doPrint@{doPrint}}
\index{doPrint@{doPrint}!version.c@{version.c}}
\subsubsection[doPrint]{\setlength{\rightskip}{0pt plus 5cm}void do\-Print (const char $\ast$ {\em tgt}, unsigned {\em payload})}}
\label{version_8c_a0}


Prints out a pretty statement about the version information in {\em payload\/}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tgt}]Name of the target component \item[{\em payload}]Value of register containing the version information \end{description}
\end{Desc}
\hypertarget{version_8c_a1}{
\index{version.c@{version.c}!printGEM@{printGEM}}
\index{printGEM@{printGEM}!version.c@{version.c}}
\subsubsection[printGEM]{\setlength{\rightskip}{0pt plus 5cm}void print\-GEM (unsigned {\em payload})}}
\label{version_8c_a1}


Prints out the additional version information for the GEM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em payload}]Value of register containing the version information \end{description}
\end{Desc}
\hypertarget{version_8c_a2}{
\index{version.c@{version.c}!printVersion@{printVersion}}
\index{printVersion@{printVersion}!version.c@{version.c}}
\subsubsection[printVersion]{\setlength{\rightskip}{0pt plus 5cm}int print\-Version (LIOXs {\em slh}, const char $\ast$ {\em tgt})}}
\label{version_8c_a2}


Reads the version information from the ASICs on the target component. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em slh}]Synchronous LIOX handle \item[{\em tgt}]Name of the target component \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]0 on success, -1 on error \end{Desc}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=111pt]{version_8c_a2_cgraph}
\end{center}
\end{figure}
