\hypertarget{gEBMSt_8h}{
\section{g\-EBMSt.h File Reference}
\label{gEBMSt_8h}\index{gEBMSt.h@{gEBMSt.h}}
}
command/response methods for the Event Builder Statistics register block  


{\tt \#include \char`\"{}GDAB/gdab.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{gEBMSt_8h_a0}{g\-EBMStcmd} (\hyperlink{struct__gdab}{gdab\-Handle} gdab, unsigned short opcode)
\begin{CompactList}\small\item\em Sends a dataless command to the EBM address. \item\end{CompactList}\item 
int \hyperlink{gEBMSt_8h_a1}{g\-EBMStread} (\hyperlink{struct__gdab}{gdab\-Handle} gdab, unsigned short reg\-Id, unsigned $\ast$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 Event Builder Statistics 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{gEBMSt_8h_a0}{
\index{gEBMSt.h@{g\-EBMSt.h}!gEBMStcmd@{gEBMStcmd}}
\index{gEBMStcmd@{gEBMStcmd}!gEBMSt.h@{g\-EBMSt.h}}
\subsubsection[gEBMStcmd]{\setlength{\rightskip}{0pt plus 5cm}int g\-EBMStcmd (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em opcode})}}
\label{gEBMSt_8h_a0}


Sends a dataless command to the EBM address. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for EBM \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 EBM. \hypertarget{gEBMSt_8h_a1}{
\index{gEBMSt.h@{g\-EBMSt.h}!gEBMStread@{gEBMStread}}
\index{gEBMStread@{gEBMStread}!gEBMSt.h@{g\-EBMSt.h}}
\subsubsection[gEBMStread]{\setlength{\rightskip}{0pt plus 5cm}int g\-EBMStread (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em reg}, unsigned $\ast$ {\em value})}}
\label{gEBMSt_8h_a1}


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for EBM \item[{\em reg}]register of EBMSt 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 EBMSt 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}
