\hypertarget{gGEMSc_8h}{
\section{g\-GEMSc.h File Reference}
\label{gGEMSc_8h}\index{gGEMSc.h@{gGEMSc.h}}
}
command/response methods for the GEM Scheduler register block  


{\tt \#include \char`\"{}GDAB/gdab.h\char`\"{}}\par
{\tt \#include \char`\"{}GDAB/ggem\_\-structs.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{gGEMSc_8h_a0}{g\-GEMScload} (\hyperlink{struct__gdab}{gdab\-Handle} gdab, unsigned short reg\-Id, \hyperlink{struct__gemSched}{gem\-Sched\-Handle} val)
\begin{CompactList}\small\item\em Loads a register with value. \item\end{CompactList}\item 
int \hyperlink{gGEMSc_8h_a1}{g\-GEMScread} (\hyperlink{struct__gdab}{gdab\-Handle} gdab, unsigned short reg\-Id, \hyperlink{struct__gemSched}{gem\-Sched\-Handle} value)
\begin{CompactList}\small\item\em Reads a register returing value in {\em val\/}. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
command/response methods for the GEM Scheduler register block 

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


\subsection{Function Documentation}
\hypertarget{gGEMSc_8h_a0}{
\index{gGEMSc.h@{g\-GEMSc.h}!gGEMScload@{gGEMScload}}
\index{gGEMScload@{gGEMScload}!gGEMSc.h@{g\-GEMSc.h}}
\subsubsection[gGEMScload]{\setlength{\rightskip}{0pt plus 5cm}int g\-GEMScload (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em reg}, \hyperlink{struct__gemSched}{gem\-Sched\-Handle} {\em value})}}
\label{gGEMSc_8h_a0}


Loads a register with value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle containing the COM I/O (gnat) handle \item[{\em reg}]register to load \item[{\em value}]64-bit value to load \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success\end{Desc}
Loads the register {\em reg\/} from the GEM Scheduler register block with {\em value\/} \hypertarget{gGEMSc_8h_a1}{
\index{gGEMSc.h@{g\-GEMSc.h}!gGEMScread@{gGEMScread}}
\index{gGEMScread@{gGEMScread}!gGEMSc.h@{g\-GEMSc.h}}
\subsubsection[gGEMScread]{\setlength{\rightskip}{0pt plus 5cm}int g\-GEMScread (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em reg}, \hyperlink{struct__gemSched}{gem\-Sched\-Handle} {\em val})}}
\label{gGEMSc_8h_a1}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle containing the COM I/O (gnat) handle \item[{\em reg}]register to read \item[{\em val}]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 GEMSc 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}
