\hypertarget{trigger_8h}{
\section{trigger.h File Reference}
\label{trigger_8h}\index{trigger.h@{trigger.h}}
}
Provides a few simple functions to configure and use the trigger.  


{\tt \#include \char`\"{}LCB/LIOX\_\-sync\_\-handle.h\char`\"{}}\par


Include dependency graph for trigger.h:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=90pt]{trigger_8h__incl}
\end{center}
\end{figure}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=45pt]{trigger_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{trigger_8h_a0}{config\-GEM} (LIOXs slh, unsigned cpt\-Mask)
\begin{CompactList}\small\item\em Configure the GEM. \item\end{CompactList}\item 
void \hyperlink{trigger_8h_a1}{trigger} (LIOXs slh, unsigned dest, unsigned n)
\begin{CompactList}\small\item\em Solicit a trigger from the GEM. \item\end{CompactList}\item 
void \hyperlink{trigger_8h_a2}{trigger\-Cnt} (LIOXs slh, unsigned dest, unsigned period, unsigned $\ast$n)
\begin{CompactList}\small\item\em Solicit a trigger from the GEM. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Provides a few simple functions to configure and use the trigger. 

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


\subsection{Function Documentation}
\hypertarget{trigger_8h_a0}{
\index{trigger.h@{trigger.h}!configGEM@{configGEM}}
\index{configGEM@{configGEM}!trigger.h@{trigger.h}}
\subsubsection[configGEM]{\setlength{\rightskip}{0pt plus 5cm}int config\-GEM (LIOXs {\em slh}, unsigned {\em cpt\-Mask})}}
\label{trigger_8h_a0}


Configure the GEM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em slh}]Synchronous LIOX handle \item[{\em cpt\-Mask}]Indicates how the GEM should be configured \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]0 on success, -1 on failure \end{Desc}
\hypertarget{trigger_8h_a1}{
\index{trigger.h@{trigger.h}!trigger@{trigger}}
\index{trigger@{trigger}!trigger.h@{trigger.h}}
\subsubsection[trigger]{\setlength{\rightskip}{0pt plus 5cm}void trigger (LIOXs {\em slh}, unsigned {\em dest}, unsigned {\em n})}}
\label{trigger_8h_a1}


Solicit a trigger from the GEM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em slh}]Synchronous LIOX handle \item[{\em dest}]Destination LCB address \item[{\em n}]Number of triggers to send \end{description}
\end{Desc}
\hypertarget{trigger_8h_a2}{
\index{trigger.h@{trigger.h}!triggerCnt@{triggerCnt}}
\index{triggerCnt@{triggerCnt}!trigger.h@{trigger.h}}
\subsubsection[triggerCnt]{\setlength{\rightskip}{0pt plus 5cm}void trigger\-Cnt (LIOXs {\em slh}, unsigned {\em dest}, unsigned {\em period}, unsigned $\ast$ {\em n})}}
\label{trigger_8h_a2}


Solicit a trigger from the GEM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em slh}]Synchronous LIOX handle \item[{\em dest}]Destination LCB address \item[{\em n}]Pointer to counter for number of triggers sent \item[{\em period}]Period of the trigger \end{description}
\end{Desc}
