\hypertarget{gDAB_8h}{
\section{g\-DAB.h File Reference}
\label{gDAB_8h}\index{gDAB.h@{gDAB.h}}
}
Defines the command and response methods for the DAB.  


{\tt \#include \char`\"{}GDAB/gdab.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{gDAB_8h_a0}{g\-DABlam} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short local\-Addr)
\begin{CompactList}\small\item\em Sends the \char`\"{}Look At Me\char`\"{} message to the DAB. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a1}{set\-Cell\-Header\-Parity} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short p)
\begin{CompactList}\small\item\em {\em p\/} determines if the LATp Cell\-Header Parity is inverted \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a2}{get\-Cell\-Header\-Parity} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short $\ast$p)
\begin{CompactList}\small\item\em Returns the current LATp cell header parity setting in {\em p\/}. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a3}{set\-Cell\-Body\-Parity} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short p)
\begin{CompactList}\small\item\em {\em p\/} determines if the LATp Cell Body Parity is inverted \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a4}{get\-Cell\-Body\-Parity} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short $\ast$p)
\begin{CompactList}\small\item\em Returns the current LATp cell body parity setting in {\em p\/}. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a5}{set\-Cmd\-Str\-Parity\-DAB} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short p)
\begin{CompactList}\small\item\em {\em p\/} determines if the DAB command string parity is inverted \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a6}{get\-Cmd\-Str\-Parity\-DAB} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short $\ast$p)
\begin{CompactList}\small\item\em Returns the current DAB command string parity. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a7}{set\-Access\-Desc\-Parity\-DAB} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short p)
\begin{CompactList}\small\item\em {\em p\/} determines if the DAB access descriptor parity is inverted \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a8}{get\-Access\-Desc\-Parity\-DAB} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short $\ast$p)
\begin{CompactList}\small\item\em Returns the current DAB access descriptor parity. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a9}{set\-Cmd\-Payload\-Parity\-DAB} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short p)
\begin{CompactList}\small\item\em {\em p\/} determines if the DAB command payload parity is inverted \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a10}{get\-Cmd\-Payload\-Parity\-DAB} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short $\ast$p)
\begin{CompactList}\small\item\em Returns current DAB command payload parity. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a11}{g\-DAB\_\-Set\-GEMAddr} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short addr)
\begin{CompactList}\small\item\em Address of GEM on the C/R fabric. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a12}{g\-DAB\_\-Get\-GEMAddr} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short $\ast$addr)
\begin{CompactList}\small\item\em Gets system wide LATp address of GEM. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a13}{g\-DAB\_\-Set\-EBMAddr} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short addr)
\begin{CompactList}\small\item\em Address of EBM on the C/R fabric. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a14}{g\-DAB\_\-Get\-EBMAddr} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short $\ast$addr)
\begin{CompactList}\small\item\em Gets system wide LATp address of EBM. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a15}{g\-DAB\_\-Set\-CRUAddr} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short addr)
\begin{CompactList}\small\item\em Address of CRU on the C/R fabric. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a16}{g\-DAB\_\-Get\-CRUAddr} (\hyperlink{struct__gdab}{gdab\-Handle}, unsigned short $\ast$addr)
\begin{CompactList}\small\item\em Gets system wide LATp address of CRU. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a17}{g\-DAB\_\-Set\-Block\-Addr} (\hyperlink{struct__gdab}{gdab\-Handle}, short addr)
\begin{CompactList}\small\item\em Block address for registers. \item\end{CompactList}\item 
int \hyperlink{gDAB_8h_a18}{g\-DAB\_\-Get\-Block\-Addr} (\hyperlink{struct__gdab}{gdab\-Handle}, short $\ast$addr)
\begin{CompactList}\small\item\em Gets the block address being used to overide default values (as used inside eg CRU functions). \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Defines the command and response methods for the DAB. 

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


\subsection{Function Documentation}
\hypertarget{gDAB_8h_a18}{
\index{gDAB.h@{g\-DAB.h}!gDAB_GetBlockAddr@{gDAB\_\-GetBlockAddr}}
\index{gDAB_GetBlockAddr@{gDAB\_\-GetBlockAddr}!gDAB.h@{g\-DAB.h}}
\subsubsection[gDAB\_\-GetBlockAddr]{\setlength{\rightskip}{0pt plus 5cm}int g\-DAB\_\-Get\-Block\-Addr (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, short $\ast$ {\em addr})}}
\label{gDAB_8h_a18}


Gets the block address being used to overide default values (as used inside eg CRU functions). 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for cpt on the DAB \item[{\em addr}]pointer to hold address \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success \end{Desc}
\begin{Desc}
\item[See also:]\hyperlink{gDAB_8h_a17}{g\-DAB\_\-Set\-Block\-Addr()} \end{Desc}
\hypertarget{gDAB_8h_a16}{
\index{gDAB.h@{g\-DAB.h}!gDAB_GetCRUAddr@{gDAB\_\-GetCRUAddr}}
\index{gDAB_GetCRUAddr@{gDAB\_\-GetCRUAddr}!gDAB.h@{g\-DAB.h}}
\subsubsection[gDAB\_\-GetCRUAddr]{\setlength{\rightskip}{0pt plus 5cm}int g\-DAB\_\-Get\-CRUAddr (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short $\ast$ {\em addr})}}
\label{gDAB_8h_a16}


Gets system wide LATp address of CRU. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for cpt on the DAB \item[{\em addr}]pointer to hold address \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success \end{Desc}
\begin{Desc}
\item[See also:]\hyperlink{gDAB_8h_a15}{g\-DAB\_\-Set\-CRUAddr()}\end{Desc}
Gets the system-wide LATp address of CRU \hypertarget{gDAB_8h_a14}{
\index{gDAB.h@{g\-DAB.h}!gDAB_GetEBMAddr@{gDAB\_\-GetEBMAddr}}
\index{gDAB_GetEBMAddr@{gDAB\_\-GetEBMAddr}!gDAB.h@{g\-DAB.h}}
\subsubsection[gDAB\_\-GetEBMAddr]{\setlength{\rightskip}{0pt plus 5cm}int g\-DAB\_\-Get\-EBMAddr (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short $\ast$ {\em addr})}}
\label{gDAB_8h_a14}


Gets system wide LATp address of EBM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for cpt on the DAB \item[{\em addr}]pointer to hold address \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success \end{Desc}
\begin{Desc}
\item[See also:]\hyperlink{gDAB_8h_a13}{g\-DAB\_\-Set\-EBMAddr()}\end{Desc}
Gets the system-wide LATp address of EBM \hypertarget{gDAB_8h_a12}{
\index{gDAB.h@{g\-DAB.h}!gDAB_GetGEMAddr@{gDAB\_\-GetGEMAddr}}
\index{gDAB_GetGEMAddr@{gDAB\_\-GetGEMAddr}!gDAB.h@{g\-DAB.h}}
\subsubsection[gDAB\_\-GetGEMAddr]{\setlength{\rightskip}{0pt plus 5cm}int g\-DAB\_\-Get\-GEMAddr (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short $\ast$ {\em addr})}}
\label{gDAB_8h_a12}


Gets system wide LATp address of GEM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for cpt on the DAB \item[{\em addr}]pointer to hold address \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success \end{Desc}
\begin{Desc}
\item[See also:]\hyperlink{gDAB_8h_a11}{g\-DAB\_\-Set\-GEMAddr()}\end{Desc}
Gets the system-wide LATp address of GEM \hypertarget{gDAB_8h_a17}{
\index{gDAB.h@{g\-DAB.h}!gDAB_SetBlockAddr@{gDAB\_\-SetBlockAddr}}
\index{gDAB_SetBlockAddr@{gDAB\_\-SetBlockAddr}!gDAB.h@{g\-DAB.h}}
\subsubsection[gDAB\_\-SetBlockAddr]{\setlength{\rightskip}{0pt plus 5cm}int g\-DAB\_\-Set\-Block\-Addr (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, short {\em addr})}}
\label{gDAB_8h_a17}


Block address for registers. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for cpt on the DAB \item[{\em addr}]Block address to be used instead of default inside CRU functions \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success\end{Desc}
This overides the usual settings for block address in some commands. Used for testing the LATp engine using the CRU as a test bed. Should be set to -1 for normal operation. \hypertarget{gDAB_8h_a15}{
\index{gDAB.h@{g\-DAB.h}!gDAB_SetCRUAddr@{gDAB\_\-SetCRUAddr}}
\index{gDAB_SetCRUAddr@{gDAB\_\-SetCRUAddr}!gDAB.h@{g\-DAB.h}}
\subsubsection[gDAB\_\-SetCRUAddr]{\setlength{\rightskip}{0pt plus 5cm}int g\-DAB\_\-Set\-CRUAddr (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em addr})}}
\label{gDAB_8h_a15}


Address of CRU on the C/R fabric. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for cpt on the DAB \item[{\em addr}]LATp address of CRU \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success\end{Desc}
Sets the system-wide LATp address of CRU. This function is intended to be called once during system initialization. It might also be useful during testing. \hypertarget{gDAB_8h_a13}{
\index{gDAB.h@{g\-DAB.h}!gDAB_SetEBMAddr@{gDAB\_\-SetEBMAddr}}
\index{gDAB_SetEBMAddr@{gDAB\_\-SetEBMAddr}!gDAB.h@{g\-DAB.h}}
\subsubsection[gDAB\_\-SetEBMAddr]{\setlength{\rightskip}{0pt plus 5cm}int g\-DAB\_\-Set\-EBMAddr (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em addr})}}
\label{gDAB_8h_a13}


Address of EBM on the C/R fabric. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for cpt on the DAB \item[{\em addr}]LATp address of EBM \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success\end{Desc}
Sets the system-wide LATp address of EBM. This function is intended to be called once during system initialization. It might also be useful during testing. \hypertarget{gDAB_8h_a11}{
\index{gDAB.h@{g\-DAB.h}!gDAB_SetGEMAddr@{gDAB\_\-SetGEMAddr}}
\index{gDAB_SetGEMAddr@{gDAB\_\-SetGEMAddr}!gDAB.h@{g\-DAB.h}}
\subsubsection[gDAB\_\-SetGEMAddr]{\setlength{\rightskip}{0pt plus 5cm}int g\-DAB\_\-Set\-GEMAddr (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em addr})}}
\label{gDAB_8h_a11}


Address of GEM on the C/R fabric. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for cpt on the DAB \item[{\em addr}]LATp address of GEM \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success\end{Desc}
Sets the system-wide LATp address of GEM. This function is intended to be called once during system initialization. It might also be useful during testing. \hypertarget{gDAB_8h_a0}{
\index{gDAB.h@{g\-DAB.h}!gDABlam@{gDABlam}}
\index{gDABlam@{gDABlam}!gDAB.h@{g\-DAB.h}}
\subsubsection[gDABlam]{\setlength{\rightskip}{0pt plus 5cm}int g\-DABlam (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em dab\-Addr})}}
\label{gDAB_8h_a0}


Sends the \char`\"{}Look At Me\char`\"{} message to the DAB. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em dab\-Addr}]DAB address of command \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK on success\end{Desc}
Sends the \char`\"{}Look At Me\char`\"{} message to the DAB. This is used to switch the command/response wire used by the DAB. If the DAB decodes the \char`\"{}Look At Me\char`\"{} message on either it's A or B command channel it will switch to that channel for future commanding. \hypertarget{gDAB_8h_a8}{
\index{gDAB.h@{g\-DAB.h}!getAccessDescParityDAB@{getAccessDescParityDAB}}
\index{getAccessDescParityDAB@{getAccessDescParityDAB}!gDAB.h@{g\-DAB.h}}
\subsubsection[getAccessDescParityDAB]{\setlength{\rightskip}{0pt plus 5cm}int get\-Access\-Desc\-Parity\-DAB (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short $\ast$ {\em p})}}
\label{gDAB_8h_a8}


Returns the current DAB access descriptor parity. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em p}]pointer to hold boolean value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]STATUS\end{Desc}
if {\em p\/} is non-zero then all out going DAB commands will have their access descriptor parity inverted. This is used for testing parity errors. The default value is 0. \hypertarget{gDAB_8h_a4}{
\index{gDAB.h@{g\-DAB.h}!getCellBodyParity@{getCellBodyParity}}
\index{getCellBodyParity@{getCellBodyParity}!gDAB.h@{g\-DAB.h}}
\subsubsection[getCellBodyParity]{\setlength{\rightskip}{0pt plus 5cm}int get\-Cell\-Body\-Parity (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short $\ast$ {\em p})}}
\label{gDAB_8h_a4}


Returns the current LATp cell body parity setting in {\em p\/}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em p}]pointer to hold boolean value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]STATUS\end{Desc}
If {\em p\/} is non-zero then all out going LATp packets will have their cell body parity inverted. This is used for testing parity errors. The default value is 0. \hypertarget{gDAB_8h_a2}{
\index{gDAB.h@{g\-DAB.h}!getCellHeaderParity@{getCellHeaderParity}}
\index{getCellHeaderParity@{getCellHeaderParity}!gDAB.h@{g\-DAB.h}}
\subsubsection[getCellHeaderParity]{\setlength{\rightskip}{0pt plus 5cm}int get\-Cell\-Header\-Parity (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short $\ast$ {\em p})}}
\label{gDAB_8h_a2}


Returns the current LATp cell header parity setting in {\em p\/}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em p}]pointer to hold boolean value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]STATUS\end{Desc}
If {\em p\/} is non-zero then all out going LATp packets will have their cell header parity inverted. This is used for testing parity errors. The default value is 0. \hypertarget{gDAB_8h_a10}{
\index{gDAB.h@{g\-DAB.h}!getCmdPayloadParityDAB@{getCmdPayloadParityDAB}}
\index{getCmdPayloadParityDAB@{getCmdPayloadParityDAB}!gDAB.h@{g\-DAB.h}}
\subsubsection[getCmdPayloadParityDAB]{\setlength{\rightskip}{0pt plus 5cm}int get\-Cmd\-Payload\-Parity\-DAB (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short $\ast$ {\em p})}}
\label{gDAB_8h_a10}


Returns current DAB command payload parity. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em p}]pointer to hold boolean value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]STATUS\end{Desc}
if {\em p\/} is non-zero then all out going DAB commands will have their command payload parity inverted. This is used for testing parity errors. The default value is 0. \hypertarget{gDAB_8h_a6}{
\index{gDAB.h@{g\-DAB.h}!getCmdStrParityDAB@{getCmdStrParityDAB}}
\index{getCmdStrParityDAB@{getCmdStrParityDAB}!gDAB.h@{g\-DAB.h}}
\subsubsection[getCmdStrParityDAB]{\setlength{\rightskip}{0pt plus 5cm}int get\-Cmd\-Str\-Parity\-DAB (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short $\ast$ {\em p})}}
\label{gDAB_8h_a6}


Returns the current DAB command string parity. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em p}]pointer to hold boolean value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]STATUS\end{Desc}
if {\em p\/} is non-zero then all out going DAB commands will have their command string parity inverted. This is used for testing parity errors. The default value is 0. \hypertarget{gDAB_8h_a7}{
\index{gDAB.h@{g\-DAB.h}!setAccessDescParityDAB@{setAccessDescParityDAB}}
\index{setAccessDescParityDAB@{setAccessDescParityDAB}!gDAB.h@{g\-DAB.h}}
\subsubsection[setAccessDescParityDAB]{\setlength{\rightskip}{0pt plus 5cm}int set\-Access\-Desc\-Parity\-DAB (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em p})}}
\label{gDAB_8h_a7}


{\em p\/} determines if the DAB access descriptor parity is inverted 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em p}]boolean value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK\end{Desc}
if {\em p\/} is non-zero then all out going DAB commands will have their access descriptor parity inverted. This is used for testing parity errors. The default value is 0. \hypertarget{gDAB_8h_a3}{
\index{gDAB.h@{g\-DAB.h}!setCellBodyParity@{setCellBodyParity}}
\index{setCellBodyParity@{setCellBodyParity}!gDAB.h@{g\-DAB.h}}
\subsubsection[setCellBodyParity]{\setlength{\rightskip}{0pt plus 5cm}int set\-Cell\-Body\-Parity (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em p})}}
\label{gDAB_8h_a3}


{\em p\/} determines if the LATp Cell Body Parity is inverted 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em p}]boolean value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]STATUS\end{Desc}
If {\em p\/} is non-zero then all out going LATp packets will have their cell body parity inverted. This is used for testing parity errors. The default value is 0. \hypertarget{gDAB_8h_a1}{
\index{gDAB.h@{g\-DAB.h}!setCellHeaderParity@{setCellHeaderParity}}
\index{setCellHeaderParity@{setCellHeaderParity}!gDAB.h@{g\-DAB.h}}
\subsubsection[setCellHeaderParity]{\setlength{\rightskip}{0pt plus 5cm}int set\-Cell\-Header\-Parity (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em p})}}
\label{gDAB_8h_a1}


{\em p\/} determines if the LATp Cell\-Header Parity is inverted 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em p}]boolean value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]STATUS\end{Desc}
If {\em p\/} is non-zero then all out going LATp packets will have their cell header parity inverted. This is used for testing parity errors. The default value is 0. \hypertarget{gDAB_8h_a9}{
\index{gDAB.h@{g\-DAB.h}!setCmdPayloadParityDAB@{setCmdPayloadParityDAB}}
\index{setCmdPayloadParityDAB@{setCmdPayloadParityDAB}!gDAB.h@{g\-DAB.h}}
\subsubsection[setCmdPayloadParityDAB]{\setlength{\rightskip}{0pt plus 5cm}int set\-Cmd\-Payload\-Parity\-DAB (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em p})}}
\label{gDAB_8h_a9}


{\em p\/} determines if the DAB command payload parity is inverted 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em p}]boolean value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK\end{Desc}
if {\em p\/} is non-zero then all out going DAB commands will have their command payload parity inverted. This is used for testing parity errors. The default value is 0. \hypertarget{gDAB_8h_a5}{
\index{gDAB.h@{g\-DAB.h}!setCmdStrParityDAB@{setCmdStrParityDAB}}
\index{setCmdStrParityDAB@{setCmdStrParityDAB}!gDAB.h@{g\-DAB.h}}
\subsubsection[setCmdStrParityDAB]{\setlength{\rightskip}{0pt plus 5cm}int set\-Cmd\-Str\-Parity\-DAB (\hyperlink{struct__gdab}{gdab\-Handle} {\em gdab}, unsigned short {\em p})}}
\label{gDAB_8h_a5}


{\em p\/} determines if the DAB command string parity is inverted 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em gdab}]gdab\-Handle for DAB \item[{\em p}]boolean value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]G\_\-OK\end{Desc}
if {\em p\/} is non-zero then all out going DAB commands will have their command string parity inverted. This is used for testing parity errors. The default value is 0. 