\hypertarget{tpg_8h}{
\section{tpg.h File Reference}
\label{tpg_8h}\index{tpg.h@{tpg.h}}
}
Trigger Pattern Generator command-line user interface.  


\subsection*{Typedefs}
\begin{CompactItemize}
\item 
\hypertarget{tpg_8h_a0}{
typedef \hyperlink{struct__TPG}{\_\-TPG} \hyperlink{tpg_8h_a0}{TPG}}
\label{tpg_8h_a0}

\begin{CompactList}\small\item\em typedef for the TPG structure containing pattern buffers and gnat\-Handles for the COMM boards \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hypertarget{tpg_8h_a7}{
\hyperlink{struct__TPG}{TPG} $\ast$ {\bf TPGnew} (unsigned $\ast$comm\-Addr)}
\label{tpg_8h_a7}

\item 
\hypertarget{tpg_8h_a8}{
void {\bf TPGclear} (\hyperlink{struct__TPG}{TPG} $\ast$this)}
\label{tpg_8h_a8}

\item 
\hypertarget{tpg_8h_a9}{
void {\bf TPGclear\-Buf} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned buffer\-Id)}
\label{tpg_8h_a9}

\item 
\hypertarget{tpg_8h_a10}{
unsigned {\bf TPGset\-TEM} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned tem\_\-id, unsigned trg, unsigned start, unsigned pattern, unsigned pat\_\-len, unsigned repetitions)}
\label{tpg_8h_a10}

\item 
\hypertarget{tpg_8h_a11}{
unsigned {\bf TPGset\-VETO} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned free\_\-id, unsigned veto\_\-id, unsigned start, unsigned pattern, unsigned pat\_\-len, unsigned repetitions)}
\label{tpg_8h_a11}

\item 
\hypertarget{tpg_8h_a12}{
unsigned {\bf TPGset\-CNO} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned free\_\-id, unsigned start, unsigned pattern, unsigned pat\_\-len, unsigned repetitions)}
\label{tpg_8h_a12}

\item 
\hypertarget{tpg_8h_a13}{
unsigned {\bf TPGset\-TEMv} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned tem\_\-id, unsigned trg, unsigned start, unsigned $\ast$pattern, unsigned pat\_\-len, unsigned repetitions)}
\label{tpg_8h_a13}

\item 
\hypertarget{tpg_8h_a14}{
unsigned {\bf TPGset\-VETOv} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned free\_\-id, unsigned veto\_\-id, unsigned start, unsigned $\ast$pattern, unsigned pat\_\-len, unsigned repetitions)}
\label{tpg_8h_a14}

\item 
\hypertarget{tpg_8h_a15}{
unsigned {\bf TPGset\-CNOv} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned free\_\-id, unsigned start, unsigned $\ast$pattern, unsigned pat\_\-len, unsigned repetitions)}
\label{tpg_8h_a15}

\item 
\hypertarget{tpg_8h_a16}{
unsigned {\bf TPGset\-TEMsticky} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned tem\_\-id, unsigned trg)}
\label{tpg_8h_a16}

\item 
\hypertarget{tpg_8h_a17}{
unsigned {\bf TPGset\-VETOsticky} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned free\_\-id, unsigned veto\_\-id)}
\label{tpg_8h_a17}

\item 
\hypertarget{tpg_8h_a18}{
unsigned {\bf TPGset\-CNOsticky} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned free\_\-id)}
\label{tpg_8h_a18}

\item 
\hypertarget{tpg_8h_a19}{
unsigned {\bf TPGclr\-TEMsticky} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned tem\_\-id, unsigned trg)}
\label{tpg_8h_a19}

\item 
\hypertarget{tpg_8h_a20}{
unsigned {\bf TPGclr\-VETOsticky} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned free\_\-id, unsigned veto\_\-id)}
\label{tpg_8h_a20}

\item 
\hypertarget{tpg_8h_a21}{
unsigned {\bf TPGclr\-CNOsticky} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned free\_\-id)}
\label{tpg_8h_a21}

\item 
\hypertarget{tpg_8h_a22}{
unsigned {\bf TPGload} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned char $\ast$clk\-Delay)}
\label{tpg_8h_a22}

\item 
\hypertarget{tpg_8h_a23}{
unsigned {\bf TPGstart} (\hyperlink{struct__TPG}{TPG} $\ast$this)}
\label{tpg_8h_a23}

\item 
\hypertarget{tpg_8h_a24}{
unsigned {\bf TPGdump\-FREE} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned free\_\-id, unsigned start, unsigned len)}
\label{tpg_8h_a24}

\item 
\hypertarget{tpg_8h_a25}{
unsigned {\bf TPGdump\-CNO} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned start, unsigned len)}
\label{tpg_8h_a25}

\item 
\hypertarget{tpg_8h_a26}{
unsigned {\bf TPGdump\-TEM} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned start, unsigned len)}
\label{tpg_8h_a26}

\item 
\hypertarget{tpg_8h_a27}{
unsigned {\bf TPGdump} (\hyperlink{struct__TPG}{TPG} $\ast$this, unsigned board\-Id, unsigned start, unsigned len)}
\label{tpg_8h_a27}

\item 
\hypertarget{tpg_8h_a28}{
int {\bf TPGmsg\-Init} (void)}
\label{tpg_8h_a28}

\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
unsigned \hyperlink{tpg_8h_a1}{TPG\_\-BUSY}
\item 
unsigned \hyperlink{tpg_8h_a2}{TPG\_\-TIAR}
\item 
unsigned \hyperlink{tpg_8h_a3}{TPG\_\-CALHI}
\item 
unsigned \hyperlink{tpg_8h_a4}{TPG\_\-CALLO}
\item 
unsigned \hyperlink{tpg_8h_a5}{TPG\_\-N\_\-TRG}
\item 
unsigned \hyperlink{tpg_8h_a6}{TPG\_\-LASTWORD}
\end{CompactItemize}


\subsection{Detailed Description}
Trigger Pattern Generator command-line user interface. 

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


\subsection{Variable Documentation}
\hypertarget{tpg_8h_a1}{
\index{tpg.h@{tpg.h}!TPG_BUSY@{TPG\_\-BUSY}}
\index{TPG_BUSY@{TPG\_\-BUSY}!tpg.h@{tpg.h}}
\subsubsection[TPG\_\-BUSY]{\setlength{\rightskip}{0pt plus 5cm}unsigned \hyperlink{tpg_8h_a1}{TPG\_\-BUSY}}}
\label{tpg_8h_a1}


Channel number for the TEM BUSY signal \hypertarget{tpg_8h_a3}{
\index{tpg.h@{tpg.h}!TPG_CALHI@{TPG\_\-CALHI}}
\index{TPG_CALHI@{TPG\_\-CALHI}!tpg.h@{tpg.h}}
\subsubsection[TPG\_\-CALHI]{\setlength{\rightskip}{0pt plus 5cm}unsigned \hyperlink{tpg_8h_a3}{TPG\_\-CALHI}}}
\label{tpg_8h_a3}


Channel number for the TEM CAL HE signal \hypertarget{tpg_8h_a4}{
\index{tpg.h@{tpg.h}!TPG_CALLO@{TPG\_\-CALLO}}
\index{TPG_CALLO@{TPG\_\-CALLO}!tpg.h@{tpg.h}}
\subsubsection[TPG\_\-CALLO]{\setlength{\rightskip}{0pt plus 5cm}unsigned \hyperlink{tpg_8h_a4}{TPG\_\-CALLO}}}
\label{tpg_8h_a4}


Channel number for the TEM CAL LE signal \hypertarget{tpg_8h_a6}{
\index{tpg.h@{tpg.h}!TPG_LASTWORD@{TPG\_\-LASTWORD}}
\index{TPG_LASTWORD@{TPG\_\-LASTWORD}!tpg.h@{tpg.h}}
\subsubsection[TPG\_\-LASTWORD]{\setlength{\rightskip}{0pt plus 5cm}unsigned \hyperlink{tpg_8h_a6}{TPG\_\-LASTWORD}}}
\label{tpg_8h_a6}


first bit of last word of a pattern \hypertarget{tpg_8h_a5}{
\index{tpg.h@{tpg.h}!TPG_N_TRG@{TPG\_\-N\_\-TRG}}
\index{TPG_N_TRG@{TPG\_\-N\_\-TRG}!tpg.h@{tpg.h}}
\subsubsection[TPG\_\-N\_\-TRG]{\setlength{\rightskip}{0pt plus 5cm}unsigned \hyperlink{tpg_8h_a5}{TPG\_\-N\_\-TRG}}}
\label{tpg_8h_a5}


Total number of TEM triggers \hypertarget{tpg_8h_a2}{
\index{tpg.h@{tpg.h}!TPG_TIAR@{TPG\_\-TIAR}}
\index{TPG_TIAR@{TPG\_\-TIAR}!tpg.h@{tpg.h}}
\subsubsection[TPG\_\-TIAR]{\setlength{\rightskip}{0pt plus 5cm}unsigned \hyperlink{tpg_8h_a2}{TPG\_\-TIAR}}}
\label{tpg_8h_a2}


Channel number for the TEM Three-in-a-row signal 