\hypertarget{gGCCC_8h}{
\section{g\-GCCC.h File Reference}
\label{gGCCC_8h}\index{gGCCC.h@{gGCCC.h}}
}
command/response methods for the GCCC  


\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{gGCCC_8h_a0}{g\-GCCCcmd} (\hyperlink{struct__gtem}{gtem\-Handle} gt, unsigned short tem\-Addr, unsigned short gccc\-Addr, unsigned short opcode)
\begin{CompactList}\small\item\em Sends a dataless command to the TEM address. \item\end{CompactList}\item 
int \hyperlink{gGCCC_8h_a1}{g\-GCCCload} (\hyperlink{struct__gtem}{gtem\-Handle} gt, unsigned short tem\-Addr, unsigned short gccc\-Addr, unsigned short reg\-Id, unsigned int val)
\begin{CompactList}\small\item\em Loads a register with value. \item\end{CompactList}\item 
int \hyperlink{gGCCC_8h_a2}{g\-GCCCread} (\hyperlink{struct__gtem}{gtem\-Handle} gt, unsigned short tem\-Addr, unsigned short gccc\-Addr, unsigned short reg\-Id, unsigned int $\ast$val)
\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 GCCC 

\begin{Desc}
\item[Author:]Curt Brune -- \href{mailto:curt@slac.stanford.edu}{\tt curt@slac.stanford.edu}\end{Desc}


\subsection{Function Documentation}
\hypertarget{gGCCC_8h_a0}{
\index{gGCCC.h@{g\-GCCC.h}!gGCCCcmd@{gGCCCcmd}}
\index{gGCCCcmd@{gGCCCcmd}!gGCCC.h@{g\-GCCC.h}}
\subsubsection[gGCCCcmd]{\setlength{\rightskip}{0pt plus 5cm}int g\-GCCCcmd (\hyperlink{struct__gtem}{gtem\-Handle} {\em gt}, unsigned short {\em tem\-Addr}, unsigned short {\em gccc\-Addr}, unsigned short {\em opcode})}}
\label{gGCCC_8h_a0}


Sends a dataless command to the TEM address. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gt}]gtem\-Handle for TEM \item[{\em tem\-Addr}]TEM address of command \item[{\em gccc\-Addr}]GCCC address \item[{\em opcode}]opcode of command to send \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success\end{Desc}
Sends the dataless command specified by {\em opcode\/} to the TEM address specified by {\em tem\-Addr\/}. \hypertarget{gGCCC_8h_a1}{
\index{gGCCC.h@{g\-GCCC.h}!gGCCCload@{gGCCCload}}
\index{gGCCCload@{gGCCCload}!gGCCC.h@{g\-GCCC.h}}
\subsubsection[gGCCCload]{\setlength{\rightskip}{0pt plus 5cm}int g\-GCCCload (\hyperlink{struct__gtem}{gtem\-Handle} {\em gt}, unsigned short {\em tem\-Addr}, unsigned short {\em gccc\-Addr}, unsigned short {\em reg}, unsigned int {\em value})}}
\label{gGCCC_8h_a1}


Loads a register with value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gt}]gtem\-Handle for TEM \item[{\em tem\-Addr}]TEM address of command \item[{\em gccc\-Addr}]GCCC address \item[{\em reg}]register of GCCC to load \item[{\em value}]32-bit value to load into GCCC register \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success\end{Desc}
Loads the GCCC register specified by {\em reg\/} with {\em value\/} \hypertarget{gGCCC_8h_a2}{
\index{gGCCC.h@{g\-GCCC.h}!gGCCCread@{gGCCCread}}
\index{gGCCCread@{gGCCCread}!gGCCC.h@{g\-GCCC.h}}
\subsubsection[gGCCCread]{\setlength{\rightskip}{0pt plus 5cm}int g\-GCCCread (\hyperlink{struct__gtem}{gtem\-Handle} {\em gt}, unsigned short {\em tem\-Addr}, unsigned short {\em gccc\-Addr}, unsigned short {\em reg}, unsigned int $\ast$ {\em val})}}
\label{gGCCC_8h_a2}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gt}]gtem\-Handle for TEM \item[{\em tem\-Addr}]TEM address of command \item[{\em gccc\-Addr}]GCCC address \item[{\em reg}]register of GCCC 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 GCCC 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}
