\hypertarget{gGEMVG_8c}{
\section{g\-GEMVG.c File Reference}
\label{gGEMVG_8c}\index{gGEMVG.c@{gGEMVG.c}}
}
Implements command/response for the GEMVG.  


{\tt \#include $<$string.h$>$}\par
{\tt \#include \char`\"{}GDAB/g\-GEMVG.h\char`\"{}}\par
{\tt \#include \char`\"{}GDAB/g\-DAB.h\char`\"{}}\par
{\tt \#include \char`\"{}g\-GEM\_\-p.h\char`\"{}}\par
{\tt \#include \char`\"{}g\-DAB\_\-p.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{gGEMVG_8c_a0}{g\-GEMVGload} (\hyperlink{struct__gdab}{gdab\-Handle} gdab, unsigned short reg, \hyperlink{struct__gemVG}{gem\-VGHandle} value)
\begin{CompactList}\small\item\em Loads a register with value. \item\end{CompactList}\item 
int \hyperlink{gGEMVG_8c_a1}{g\-GEMVGread} (\hyperlink{struct__gdab}{gdab\-Handle} gdab, unsigned short reg, \hyperlink{struct__gemVG}{gem\-VGHandle} value)
\begin{CompactList}\small\item\em Reads a register returing value in {\em val\/}. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Implements command/response for the GEMVG. 

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


\subsection{Function Documentation}
\hypertarget{gGEMVG_8c_a0}{
\index{gGEMVG.c@{g\-GEMVG.c}!gGEMVGload@{gGEMVGload}}
\index{gGEMVGload@{gGEMVGload}!gGEMVG.c@{g\-GEMVG.c}}
\subsubsection[gGEMVGload]{\setlength{\rightskip}{0pt plus 5cm}int g\-GEMVGload (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em reg}, \hyperlink{struct__gemVG}{gem\-VGHandle} {\em value})}}
\label{gGEMVG_8c_a0}


Loads a register with value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for GEM \item[{\em reg}]register of GEMVG to load \item[{\em value}]96-bit value to load into GEMVG register \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success\end{Desc}
Loads the GEMVG register specified by {\em reg\/} with {\em value\/} \hypertarget{gGEMVG_8c_a1}{
\index{gGEMVG.c@{g\-GEMVG.c}!gGEMVGread@{gGEMVGread}}
\index{gGEMVGread@{gGEMVGread}!gGEMVG.c@{g\-GEMVG.c}}
\subsubsection[gGEMVGread]{\setlength{\rightskip}{0pt plus 5cm}int g\-GEMVGread (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em reg}, \hyperlink{struct__gemVG}{gem\-VGHandle} {\em value})}}
\label{gGEMVG_8c_a1}


Reads a register returing value in {\em val\/}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for GEM \item[{\em reg}]register of GEMVG to read \item[{\em value}]pointer to storage to hold the response of the read command \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success\end{Desc}
Reads the GEMVG register specified by {\em reg\/}. {\em val\/} is filled on return.

The following error codes are returned when LATp errors occur:

\begin{itemize}
\item GERR\_\-LATP\_\-HEADER\_\-PARITY \item GERR\_\-LATP\_\-CELL\_\-PARITY \item GERR\_\-LATP\_\-TRUNCATE \end{itemize}
