\hypertarget{LRA_8h}{
\section{LRA.h File Reference}
\label{LRA_8h}\index{LRA.h@{LRA.h}}
}
Public definitions for the register access routines.  


{\tt \#include $<$PBS/WCT.h$>$}\par
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \hyperlink{struct__LRA__regSpec}{\_\-LRA\_\-regSpec}
\begin{CompactList}\small\item\em Structure to specify a register, or set of registers. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__blkDesc}{\_\-LRA\_\-blkDesc}
\begin{CompactList}\small\item\em Structure for register block descriptor. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__cmptDesc}{\_\-LRA\_\-cmptDesc}
\begin{CompactList}\small\item\em Structure for component descriptor. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__regData}{\_\-LRA\_\-regData}
\begin{CompactList}\small\item\em Structure to hold returned register data. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__esrData}{\_\-LRA\_\-esrData}
\begin{CompactList}\small\item\em Structure to hold returned error and status register data. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__cmdStats}{\_\-LRA\_\-cmdStats}
\begin{CompactList}\small\item\em Structure to hold command statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__rcvStats}{\_\-LRA\_\-rcvStats}
\begin{CompactList}\small\item\em Structure to hold receive statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__trcvStats}{\_\-LRA\_\-trcvStats}
\begin{CompactList}\small\item\em Structure to hold TEM receive statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__xmtStats}{\_\-LRA\_\-xmtStats}
\begin{CompactList}\small\item\em Structure to hold transmit/response statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__aemTrgStats}{\_\-LRA\_\-aemTrgStats}
\begin{CompactList}\small\item\em Structure to hold AEM trigger statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__arcErrStats}{\_\-LRA\_\-arcErrStats}
\begin{CompactList}\small\item\em Structure to hold ARC event error statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__fifoStats}{\_\-LRA\_\-fifoStats}
\begin{CompactList}\small\item\em Structure to hold CC FIFO statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__cntrStats}{\_\-LRA\_\-cntrStats}
\begin{CompactList}\small\item\em Structure to hold simple counter statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__gemStats}{\_\-LRA\_\-gemStats}
\begin{CompactList}\small\item\em Structure to hold GEM statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__cruStats}{\_\-LRA\_\-cruStats}
\begin{CompactList}\small\item\em Structure to hold CRU statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__pduStats}{\_\-LRA\_\-pduStats}
\begin{CompactList}\small\item\em Structure to hold PDU statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__ebmStats}{\_\-LRA\_\-ebmStats}
\begin{CompactList}\small\item\em Structure to hold EBM statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__aemStats}{\_\-LRA\_\-aemStats}
\begin{CompactList}\small\item\em Structure to hold AEM statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__temStats}{\_\-LRA\_\-temStats}
\begin{CompactList}\small\item\em Structure to hold TEM statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__ticStats}{\_\-LRA\_\-ticStats}
\begin{CompactList}\small\item\em Structure to hold TIC statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__cccStats}{\_\-LRA\_\-cccStats}
\begin{CompactList}\small\item\em Structure to hold CCC statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__tccStats}{\_\-LRA\_\-tccStats}
\begin{CompactList}\small\item\em Structure to hold TCC statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__stats}{\_\-LRA\_\-stats}
\begin{CompactList}\small\item\em Structure to hold complete statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__ebmEventStats}{\_\-LRA\_\-ebmEventStats}
\begin{CompactList}\small\item\em Structure to hold extracted EBM event statistics. \item\end{CompactList}\item 
struct \hyperlink{struct__LRA__gemCntrStats}{\_\-LRA\_\-gemCntrStats}
\begin{CompactList}\small\item\em Structure to hold extracted GEM counter statistics. \item\end{CompactList}\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
\hypertarget{LRA_8h_5bf47593ce3983b754381ae1360b03ab}{
typedef enum \hyperlink{LRA_8h_3b2f7e3af222e0363058a90328fb30f1}{\_\-LRA\_\-misc} \hyperlink{LRA_8h_5bf47593ce3983b754381ae1360b03ab}{LRA\_\-misc}}
\label{LRA_8h_5bf47593ce3983b754381ae1360b03ab}

\begin{CompactList}\small\item\em Miscellaneous definitions. \item\end{CompactList}\item 
\hypertarget{LRA_8h_6b59f38bda3afe4c3c98a34034cb2dba}{
typedef enum \hyperlink{LRA_8h_31e67b7e3b6bb3ba82664306f4e3946e}{\_\-LRA\_\-component} \hyperlink{LRA_8h_6b59f38bda3afe4c3c98a34034cb2dba}{LRA\_\-component}}
\label{LRA_8h_6b59f38bda3afe4c3c98a34034cb2dba}

\begin{CompactList}\small\item\em Component identifiers. \item\end{CompactList}\item 
\hypertarget{LRA_8h_773c1c3c2eac9df9b26a56d334aab497}{
typedef enum \hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2}{\_\-LRA\_\-counts} \hyperlink{LRA_8h_773c1c3c2eac9df9b26a56d334aab497}{LRA\_\-counts}}
\label{LRA_8h_773c1c3c2eac9df9b26a56d334aab497}

\begin{CompactList}\small\item\em Conponent counts. \item\end{CompactList}\item 
\hypertarget{LRA_8h_fe30f34c83f860b92193c2c8db89c6cd}{
typedef enum \hyperlink{LRA_8h_2c79e1a019186e80f43f1bece10f2a9c}{\_\-LRA\_\-statsVersion} \hyperlink{LRA_8h_fe30f34c83f860b92193c2c8db89c6cd}{LRA\_\-statsVersion}}
\label{LRA_8h_fe30f34c83f860b92193c2c8db89c6cd}

\begin{CompactList}\small\item\em Statistics block version. \item\end{CompactList}\item 
\hypertarget{LRA_8h_ca292e8b21fbd650a19b08c3824e95e2}{
typedef struct \hyperlink{struct__LRA__regSpec}{\_\-LRA\_\-regSpec} \hyperlink{LRA_8h_ca292e8b21fbd650a19b08c3824e95e2}{LRA\_\-regSpec}}
\label{LRA_8h_ca292e8b21fbd650a19b08c3824e95e2}

\begin{CompactList}\small\item\em Structure to specify a register, or set of registers. \item\end{CompactList}\item 
\hypertarget{LRA_8h_f08fb02e80dc14104ed612ad7c8e23ad}{
typedef struct \hyperlink{struct__LRA__blkDesc}{\_\-LRA\_\-blkDesc} \hyperlink{LRA_8h_f08fb02e80dc14104ed612ad7c8e23ad}{LRA\_\-blkDesc}}
\label{LRA_8h_f08fb02e80dc14104ed612ad7c8e23ad}

\begin{CompactList}\small\item\em Structure for register block descriptor. \item\end{CompactList}\item 
\hypertarget{LRA_8h_d8541c4220fe610c6c536550fb3f1d39}{
typedef struct \hyperlink{struct__LRA__cmptDesc}{\_\-LRA\_\-cmptDesc} \hyperlink{LRA_8h_d8541c4220fe610c6c536550fb3f1d39}{LRA\_\-cmptDesc}}
\label{LRA_8h_d8541c4220fe610c6c536550fb3f1d39}

\begin{CompactList}\small\item\em Structure for component descriptor. \item\end{CompactList}\item 
\hypertarget{LRA_8h_02e272c276b7909196152cb3332248fe}{
typedef struct \hyperlink{struct__LRA__regData}{\_\-LRA\_\-regData} \hyperlink{LRA_8h_02e272c276b7909196152cb3332248fe}{LRA\_\-regData}}
\label{LRA_8h_02e272c276b7909196152cb3332248fe}

\begin{CompactList}\small\item\em Structure to hold returned register data. \item\end{CompactList}\item 
\hypertarget{LRA_8h_a60673f05c6be468a74ef125ae3bebee}{
typedef struct \hyperlink{struct__LRA__esrData}{\_\-LRA\_\-esrData} \hyperlink{LRA_8h_a60673f05c6be468a74ef125ae3bebee}{LRA\_\-esrData}}
\label{LRA_8h_a60673f05c6be468a74ef125ae3bebee}

\begin{CompactList}\small\item\em Structure to hold returned error and status register data. \item\end{CompactList}\item 
\hypertarget{LRA_8h_499866fcf2ed57297ba506f7b645eded}{
typedef struct \hyperlink{struct__LRA__cmdStats}{\_\-LRA\_\-cmdStats} \hyperlink{LRA_8h_499866fcf2ed57297ba506f7b645eded}{LRA\_\-cmdStats}}
\label{LRA_8h_499866fcf2ed57297ba506f7b645eded}

\begin{CompactList}\small\item\em Structure to hold command statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_33f79799eefc3c7a923283506f1f06d0}{
typedef struct \hyperlink{struct__LRA__rcvStats}{\_\-LRA\_\-rcvStats} \hyperlink{LRA_8h_33f79799eefc3c7a923283506f1f06d0}{LRA\_\-rcvStats}}
\label{LRA_8h_33f79799eefc3c7a923283506f1f06d0}

\begin{CompactList}\small\item\em Structure to hold receive statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_c83f095ffc00f58b4f33fe8b805f13c4}{
typedef struct \hyperlink{struct__LRA__trcvStats}{\_\-LRA\_\-trcvStats} \hyperlink{LRA_8h_c83f095ffc00f58b4f33fe8b805f13c4}{LRA\_\-trcvStats}}
\label{LRA_8h_c83f095ffc00f58b4f33fe8b805f13c4}

\begin{CompactList}\small\item\em Structure to hold TEM receive statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_1a36bff2adab26e45d7120ca6ac23822}{
typedef struct \hyperlink{struct__LRA__xmtStats}{\_\-LRA\_\-xmtStats} \hyperlink{LRA_8h_1a36bff2adab26e45d7120ca6ac23822}{LRA\_\-xmtStats}}
\label{LRA_8h_1a36bff2adab26e45d7120ca6ac23822}

\begin{CompactList}\small\item\em Structure to hold transmit/response statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_11112a887b570cff0c4df82782e3ebc8}{
typedef struct \hyperlink{struct__LRA__aemTrgStats}{\_\-LRA\_\-aemTrgStats} \hyperlink{LRA_8h_11112a887b570cff0c4df82782e3ebc8}{LRA\_\-aemTrgStats}}
\label{LRA_8h_11112a887b570cff0c4df82782e3ebc8}

\begin{CompactList}\small\item\em Structure to hold AEM trigger statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_821de91420cb923423056a6b91f3c116}{
typedef struct \hyperlink{struct__LRA__arcErrStats}{\_\-LRA\_\-arcErrStats} \hyperlink{LRA_8h_821de91420cb923423056a6b91f3c116}{LRA\_\-arcErrStats}}
\label{LRA_8h_821de91420cb923423056a6b91f3c116}

\begin{CompactList}\small\item\em Structure to hold ARC event error statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_ebf4551df73ac1be2322613922eaa2bd}{
typedef struct \hyperlink{struct__LRA__fifoStats}{\_\-LRA\_\-fifoStats} \hyperlink{LRA_8h_ebf4551df73ac1be2322613922eaa2bd}{LRA\_\-fifoStats}}
\label{LRA_8h_ebf4551df73ac1be2322613922eaa2bd}

\begin{CompactList}\small\item\em Structure to hold CC FIFO statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_4e5caf6e1b8f77c420a714b43ce5c479}{
typedef struct \hyperlink{struct__LRA__cntrStats}{\_\-LRA\_\-cntrStats} \hyperlink{LRA_8h_4e5caf6e1b8f77c420a714b43ce5c479}{LRA\_\-cntrStats}}
\label{LRA_8h_4e5caf6e1b8f77c420a714b43ce5c479}

\begin{CompactList}\small\item\em Structure to hold simple counter statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_893ca147f729e6aba9d5ce08e82c2964}{
typedef struct \hyperlink{struct__LRA__gemStats}{\_\-LRA\_\-gemStats} \hyperlink{LRA_8h_893ca147f729e6aba9d5ce08e82c2964}{LRA\_\-gemStats}}
\label{LRA_8h_893ca147f729e6aba9d5ce08e82c2964}

\begin{CompactList}\small\item\em Structure to hold GEM statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_8d78486fbd6f2a7956934245c5c5d08a}{
typedef struct \hyperlink{struct__LRA__cruStats}{\_\-LRA\_\-cruStats} \hyperlink{LRA_8h_8d78486fbd6f2a7956934245c5c5d08a}{LRA\_\-cruStats}}
\label{LRA_8h_8d78486fbd6f2a7956934245c5c5d08a}

\begin{CompactList}\small\item\em Structure to hold CRU statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_38785493654d598f6f7f01222bd745c4}{
typedef struct \hyperlink{struct__LRA__pduStats}{\_\-LRA\_\-pduStats} \hyperlink{LRA_8h_38785493654d598f6f7f01222bd745c4}{LRA\_\-pduStats}}
\label{LRA_8h_38785493654d598f6f7f01222bd745c4}

\begin{CompactList}\small\item\em Structure to hold PDU statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_f52d744667f5592d8dc1dd0cf0651831}{
typedef struct \hyperlink{struct__LRA__ebmStats}{\_\-LRA\_\-ebmStats} \hyperlink{LRA_8h_f52d744667f5592d8dc1dd0cf0651831}{LRA\_\-ebmStats}}
\label{LRA_8h_f52d744667f5592d8dc1dd0cf0651831}

\begin{CompactList}\small\item\em Structure to hold EBM statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_0fed640f7b990f4f149808e120236534}{
typedef struct \hyperlink{struct__LRA__aemStats}{\_\-LRA\_\-aemStats} \hyperlink{LRA_8h_0fed640f7b990f4f149808e120236534}{LRA\_\-aemStats}}
\label{LRA_8h_0fed640f7b990f4f149808e120236534}

\begin{CompactList}\small\item\em Structure to hold AEM statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_3ac13febac89bcc03713fb46eaa51178}{
typedef struct \hyperlink{struct__LRA__temStats}{\_\-LRA\_\-temStats} \hyperlink{LRA_8h_3ac13febac89bcc03713fb46eaa51178}{LRA\_\-temStats}}
\label{LRA_8h_3ac13febac89bcc03713fb46eaa51178}

\begin{CompactList}\small\item\em Structure to hold TEM statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_a20ea2bfa90bac07b20f4959f927c99f}{
typedef struct \hyperlink{struct__LRA__ticStats}{\_\-LRA\_\-ticStats} \hyperlink{LRA_8h_a20ea2bfa90bac07b20f4959f927c99f}{LRA\_\-ticStats}}
\label{LRA_8h_a20ea2bfa90bac07b20f4959f927c99f}

\begin{CompactList}\small\item\em Structure to hold TIC statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_7d5be5bfc315b9c4ec428ace98ce2e9d}{
typedef struct \hyperlink{struct__LRA__cccStats}{\_\-LRA\_\-cccStats} \hyperlink{LRA_8h_7d5be5bfc315b9c4ec428ace98ce2e9d}{LRA\_\-cccStats}}
\label{LRA_8h_7d5be5bfc315b9c4ec428ace98ce2e9d}

\begin{CompactList}\small\item\em Structure to hold CCC statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_6cef7022f608d80232e5f8f69554e2ed}{
typedef struct \hyperlink{struct__LRA__tccStats}{\_\-LRA\_\-tccStats} \hyperlink{LRA_8h_6cef7022f608d80232e5f8f69554e2ed}{LRA\_\-tccStats}}
\label{LRA_8h_6cef7022f608d80232e5f8f69554e2ed}

\begin{CompactList}\small\item\em Structure to hold TCC statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_39778ba69d31bb4ce7fe118d60a6ca38}{
typedef struct \hyperlink{struct__LRA__stats}{\_\-LRA\_\-stats} \hyperlink{LRA_8h_39778ba69d31bb4ce7fe118d60a6ca38}{LRA\_\-stats}}
\label{LRA_8h_39778ba69d31bb4ce7fe118d60a6ca38}

\begin{CompactList}\small\item\em Structure to hold complete statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_4320d5a8fe53b99d31516e44b8e4dff6}{
typedef struct \hyperlink{struct__LRA__ebmEventStats}{\_\-LRA\_\-ebmEventStats} \hyperlink{LRA_8h_4320d5a8fe53b99d31516e44b8e4dff6}{LRA\_\-ebmEventStats}}
\label{LRA_8h_4320d5a8fe53b99d31516e44b8e4dff6}

\begin{CompactList}\small\item\em Structure to hold extracted EBM event statistics. \item\end{CompactList}\item 
\hypertarget{LRA_8h_3fbeee6682227c8a22f965959625ced4}{
typedef struct \hyperlink{struct__LRA__gemCntrStats}{\_\-LRA\_\-gemCntrStats} \hyperlink{LRA_8h_3fbeee6682227c8a22f965959625ced4}{LRA\_\-gemCntrStats}}
\label{LRA_8h_3fbeee6682227c8a22f965959625ced4}

\begin{CompactList}\small\item\em Structure to hold extracted GEM counter statistics. \item\end{CompactList}\end{CompactItemize}
\subsection*{Enumerations}
\begin{CompactItemize}
\item 
enum \hyperlink{LRA_8h_3b2f7e3af222e0363058a90328fb30f1}{\_\-LRA\_\-misc} \{ \par
\hyperlink{LRA_8h_3b2f7e3af222e0363058a90328fb30f14979696448db6c54b079a1814eeb795c}{LRA\_\-WILD} =  255, 
\par
\hyperlink{LRA_8h_3b2f7e3af222e0363058a90328fb30f169dded3bce6c0f225ad2aca3cac548b2}{LRA\_\-ACTIVE} =  254
 \}
\begin{CompactList}\small\item\em Miscellaneous definitions. \item\end{CompactList}\item 
enum \hyperlink{LRA_8h_31e67b7e3b6bb3ba82664306f4e3946e}{\_\-LRA\_\-component} \{ \par
\textbf{LRA\_\-CPT\_\-GEM} =  1, 
\par
\textbf{LRA\_\-CPT\_\-EBM} =  2, 
\par
\textbf{LRA\_\-CPT\_\-PDU0} =  3, 
\par
\textbf{LRA\_\-CPT\_\-PDU1} =  4, 
\par
\textbf{LRA\_\-CPT\_\-CRU} =  5, 
\par
\textbf{LRA\_\-CPT\_\-TEM} =  6, 
\par
\textbf{LRA\_\-CPT\_\-TIC} =  7, 
\par
\textbf{LRA\_\-CPT\_\-CCC} =  8, 
\par
\textbf{LRA\_\-CPT\_\-CRC} =  9, 
\par
\textbf{LRA\_\-CPT\_\-CFE} =  10, 
\par
\textbf{LRA\_\-CPT\_\-TCC} =  11, 
\par
\textbf{LRA\_\-CPT\_\-TRC} =  12, 
\par
\textbf{LRA\_\-CPT\_\-TFE} =  13, 
\par
\textbf{LRA\_\-CPT\_\-AEM} =  14, 
\par
\textbf{LRA\_\-CPT\_\-ARC} =  15, 
\par
\textbf{LRA\_\-CPT\_\-AFE} =  16, 
\par
\textbf{LRA\_\-CPT\_\-SIUE} =  33, 
\par
\textbf{LRA\_\-CPT\_\-SIU0} =  34, 
\par
\textbf{LRA\_\-CPT\_\-SIU1} =  35, 
\par
\textbf{LRA\_\-CPT\_\-EPU0} =  36, 
\par
\textbf{LRA\_\-CPT\_\-EPU1} =  37, 
\par
\textbf{LRA\_\-CPT\_\-EPU2} =  38, 
\par
\textbf{LRA\_\-CPT\_\-BCST} =  LRA\_\-WILD
 \}
\begin{CompactList}\small\item\em Component identifiers. \item\end{CompactList}\item 
enum \hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2}{\_\-LRA\_\-counts} \{ \par
\hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e206f0fa8a639cb0b9ef76007828b89cd8}{LRA\_\-N\_\-TEM} =  16, 
\par
\hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2488076646077a3b5e1ed75f2aa26a806}{LRA\_\-N\_\-CCC} =  4, 
\par
\hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e224a68061c36fb35b854e52b8a3ac8524}{LRA\_\-N\_\-TCC} =  8, 
\par
\hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e29abfda248b7828c0fe9a83d0908b7302}{LRA\_\-N\_\-CRC} =  4, 
\par
\hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2f6d006ff67d67332fd38860c0171b198}{LRA\_\-N\_\-TRC} =  9, 
\par
\hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e210156bada96881e3e7fff0a932abdc15}{LRA\_\-N\_\-ARC} =  12, 
\par
\hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e24f5e68a19e19f7928e66e0bdb62ab16e}{LRA\_\-N\_\-CFE} =  12, 
\par
\hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2f88d47cab4c201ca27b70df2d8f447df}{LRA\_\-N\_\-TFE} =  24, 
\par
\hyperlink{LRA_8h_4cf6c9d84437e14a9c41a724916f32e20de9bb4911e6ab1b7050275529207973}{LRA\_\-N\_\-AFE} =  18
 \}
\begin{CompactList}\small\item\em Conponent counts. \item\end{CompactList}\item 
enum \hyperlink{LRA_8h_2c79e1a019186e80f43f1bece10f2a9c}{\_\-LRA\_\-statsVersion} \{ \par
\hyperlink{LRA_8h_2c79e1a019186e80f43f1bece10f2a9c09451270083bc8473d38cc287af1a904}{LRA\_\-STATS\_\-MAJOR} =  4, 
\par
\hyperlink{LRA_8h_2c79e1a019186e80f43f1bece10f2a9cd2bf0d4c2a666578e8cbc806f63e3a2f}{LRA\_\-STATS\_\-MINOR} =  0
 \}
\begin{CompactList}\small\item\em Statistics block version. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned \hyperlink{LRA_8h_68bd64e3fb2916126ee1d1d3158dc18a}{LRA\_\-bufSize} (const \hyperlink{struct__LRA__regSpec}{LRA\_\-regSpec} $\ast$rSpec, unsigned $\ast$size)
\begin{CompactList}\small\item\em Get the size needed for the returned data buffer. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_24c67a7f280ebed3a47122f3c679f830}{LRA\_\-clearStats} (void)
\begin{CompactList}\small\item\em Clear the register statistics. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_56afd4f35f101757fc25cf861e9343f4}{LRA\_\-ctrl} (const \hyperlink{struct__LRA__regSpec}{LRA\_\-regSpec} $\ast$rSpec)
\begin{CompactList}\small\item\em Perform a control operation. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_bd9a83b0aeee5417c2ac8f91bacf33c6}{LRA\_\-getEbmEventStats} (\hyperlink{struct__LRA__ebmEventStats}{LRA\_\-ebmEventStats} $\ast$stats)
\begin{CompactList}\small\item\em Get a copy of the EBM event statistics. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_2969e921577961cb957ae439040b30e8}{LRA\_\-getGemCntrStats} (\hyperlink{struct__LRA__gemCntrStats}{LRA\_\-gemCntrStats} $\ast$stats)
\begin{CompactList}\small\item\em Get a copy of the GEM counters. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_55f3fe23ec743529142e3ce407802acf}{LRA\_\-getStats} (\hyperlink{struct__LRA__stats}{LRA\_\-stats} $\ast$stats)
\begin{CompactList}\small\item\em Get a copy of the register statistics. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_c5ca757a296a3ce6317ef796b453d15f}{LRA\_\-initialize} (unsigned period, unsigned short tems)
\begin{CompactList}\small\item\em Initialize the register access system. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_16ea37a0397279916b845e269c82a337}{LRA\_\-lam} (unsigned cmpt, unsigned tem)
\begin{CompactList}\small\item\em Perform a look-at-me operation. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_bed1a7a937dfa518fbb4a8186c83c6b0}{LRA\_\-lamLcb} (unsigned cmpt, unsigned value, unsigned mask)
\begin{CompactList}\small\item\em Perform a look-at-me directed to an LCB. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_a1d3971038a0fcb51bf3dce008ff5b52}{LRA\_\-latReset} (void)
\begin{CompactList}\small\item\em Perform a LAT reset. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_7546c66e215c680fa2186d28d9018fe8}{LRA\_\-load} (const \hyperlink{struct__LRA__regSpec}{LRA\_\-regSpec} $\ast$rSpec, const unsigned long long $\ast$value)
\begin{CompactList}\small\item\em Perform a register load operation. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_86f1457a7b1f4006ee1889d87a012cbb}{LRA\_\-lookupBlk} (const \hyperlink{struct__LRA__cmptDesc}{LRA\_\-cmptDesc} $\ast$cDesc, const char $\ast$bName, int $\ast$block)
\begin{CompactList}\small\item\em Lookup register block in list. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_56a01bcb1c1f21f04cdcd30163c61a13}{LRA\_\-maxBufSize} (unsigned $\ast$size)
\begin{CompactList}\small\item\em Get the maximum size needed for the register data buffer. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_ae3fff2ebbb990bd02694d3e19d9ee5b}{LRA\_\-read} (const \hyperlink{struct__LRA__regSpec}{LRA\_\-regSpec} $\ast$rSpec, \hyperlink{struct__LRA__regData}{LRA\_\-regData} $\ast$data)
\begin{CompactList}\small\item\em Perform a register read operation. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_2c59c3cbdaedd17018f2f6fe6b300346}{LRA\_\-readEsr} (\hyperlink{struct__LRA__esrData}{LRA\_\-esrData} $\ast$esr)
\begin{CompactList}\small\item\em Read the error and status registers. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_d17061914c4b667646ca815458f9eb8e}{LRA\_\-send} (const \hyperlink{struct__LRA__regSpec}{LRA\_\-regSpec} $\ast$rSpec)
\begin{CompactList}\small\item\em Send register values to the spacecraft. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_5fa00676fb5e0cb4c9544e95075d6793}{LRA\_\-sendEsr} (void)
\begin{CompactList}\small\item\em Send the error and status register values to the spacecraft. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_75293aeee71ac3752410255635616e4c}{LRA\_\-sendStats} (void)
\begin{CompactList}\small\item\em Send statistics data to the spacecraft. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_ab9086f67f708653ecb81dd5bde43276}{LRA\_\-setStatsPeriod} (unsigned period)
\begin{CompactList}\small\item\em Set the statistics update period. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_76c3c29e7a6ac62d2b49252c90b8671f}{LRA\_\-setTemMask} (unsigned short tems)
\begin{CompactList}\small\item\em Set the mask of sampled TEMs. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_e9ebafd3b1a8bf44afe3f319fa96c307}{LRA\_\-sizeofEbmEventStats} (void)
\begin{CompactList}\small\item\em Get the size of the EBM event statistics block. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_0421a3473dbd859cbc10e3518fd3fb42}{LRA\_\-sizeofGemCntrStats} (void)
\begin{CompactList}\small\item\em Get the size of the GEM counters block. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_deb1ac67ef7c80cfdc71947a9afea3ec}{LRA\_\-sizeofStats} (void)
\begin{CompactList}\small\item\em Get the size of the LRA statistics block. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_68e013b82183f8ee6c22584b34c2d68c}{LRA\_\-start} (void)
\begin{CompactList}\small\item\em Start the register access task. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_e9a27b4bc04569338a86bd4950f7637b}{LRA\_\-startStats} (void)
\begin{CompactList}\small\item\em Start register statistics acquisition. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_9afcad4c55c25371b9374de23bb5008e}{LRA\_\-stop} (void)
\begin{CompactList}\small\item\em Stop the register access task. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_addf99c81b6f21fae7f1f84aa9b8f290}{LRA\_\-stopStats} (void)
\begin{CompactList}\small\item\em Stop register statistics acquisition. \item\end{CompactList}\item 
unsigned \hyperlink{LRA_8h_111d939f0ab37fdbc1a203c4ab866aba}{LRA\_\-terminate} (void)
\begin{CompactList}\small\item\em Terminate register access. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Public definitions for the register access routines. 

\begin{Desc}
\item[Author:]Owen H Saxton\end{Desc}
{\bf \$Id:} \hyperlink{LRA_8h}{LRA.h},v 1.16 2011/03/28 15:54:47 saxton Exp \$ 

\subsection{Enumeration Type Documentation}
\hypertarget{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2}{
\index{LRA.h@{LRA.h}!\_\-LRA\_\-counts@{\_\-LRA\_\-counts}}
\index{\_\-LRA\_\-counts@{\_\-LRA\_\-counts}!LRA.h@{LRA.h}}
\subsubsection[{\_\-LRA\_\-counts}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf \_\-LRA\_\-counts}}}
\label{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2}


Conponent counts. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LRA\_\-N\_\-TEM@{LRA\_\-N\_\-TEM}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-N\_\-TEM@{LRA\_\-N\_\-TEM}}\item[{\em 
\hypertarget{LRA_8h_4cf6c9d84437e14a9c41a724916f32e206f0fa8a639cb0b9ef76007828b89cd8}{
LRA\_\-N\_\-TEM}
\label{LRA_8h_4cf6c9d84437e14a9c41a724916f32e206f0fa8a639cb0b9ef76007828b89cd8}
}]Number of TEMs. \index{LRA\_\-N\_\-CCC@{LRA\_\-N\_\-CCC}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-N\_\-CCC@{LRA\_\-N\_\-CCC}}\item[{\em 
\hypertarget{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2488076646077a3b5e1ed75f2aa26a806}{
LRA\_\-N\_\-CCC}
\label{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2488076646077a3b5e1ed75f2aa26a806}
}]Number of CAL cable controllers. \index{LRA\_\-N\_\-TCC@{LRA\_\-N\_\-TCC}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-N\_\-TCC@{LRA\_\-N\_\-TCC}}\item[{\em 
\hypertarget{LRA_8h_4cf6c9d84437e14a9c41a724916f32e224a68061c36fb35b854e52b8a3ac8524}{
LRA\_\-N\_\-TCC}
\label{LRA_8h_4cf6c9d84437e14a9c41a724916f32e224a68061c36fb35b854e52b8a3ac8524}
}]Number of TKR cable controllers. \index{LRA\_\-N\_\-CRC@{LRA\_\-N\_\-CRC}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-N\_\-CRC@{LRA\_\-N\_\-CRC}}\item[{\em 
\hypertarget{LRA_8h_4cf6c9d84437e14a9c41a724916f32e29abfda248b7828c0fe9a83d0908b7302}{
LRA\_\-N\_\-CRC}
\label{LRA_8h_4cf6c9d84437e14a9c41a724916f32e29abfda248b7828c0fe9a83d0908b7302}
}]Number of CAL readout controllers. \index{LRA\_\-N\_\-TRC@{LRA\_\-N\_\-TRC}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-N\_\-TRC@{LRA\_\-N\_\-TRC}}\item[{\em 
\hypertarget{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2f6d006ff67d67332fd38860c0171b198}{
LRA\_\-N\_\-TRC}
\label{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2f6d006ff67d67332fd38860c0171b198}
}]Number of TKR readout controllers. \index{LRA\_\-N\_\-ARC@{LRA\_\-N\_\-ARC}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-N\_\-ARC@{LRA\_\-N\_\-ARC}}\item[{\em 
\hypertarget{LRA_8h_4cf6c9d84437e14a9c41a724916f32e210156bada96881e3e7fff0a932abdc15}{
LRA\_\-N\_\-ARC}
\label{LRA_8h_4cf6c9d84437e14a9c41a724916f32e210156bada96881e3e7fff0a932abdc15}
}]Number of ACD readout controllers. \index{LRA\_\-N\_\-CFE@{LRA\_\-N\_\-CFE}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-N\_\-CFE@{LRA\_\-N\_\-CFE}}\item[{\em 
\hypertarget{LRA_8h_4cf6c9d84437e14a9c41a724916f32e24f5e68a19e19f7928e66e0bdb62ab16e}{
LRA\_\-N\_\-CFE}
\label{LRA_8h_4cf6c9d84437e14a9c41a724916f32e24f5e68a19e19f7928e66e0bdb62ab16e}
}]Number of CAL front-ends. \index{LRA\_\-N\_\-TFE@{LRA\_\-N\_\-TFE}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-N\_\-TFE@{LRA\_\-N\_\-TFE}}\item[{\em 
\hypertarget{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2f88d47cab4c201ca27b70df2d8f447df}{
LRA\_\-N\_\-TFE}
\label{LRA_8h_4cf6c9d84437e14a9c41a724916f32e2f88d47cab4c201ca27b70df2d8f447df}
}]Number of TKR front-ends. \index{LRA\_\-N\_\-AFE@{LRA\_\-N\_\-AFE}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-N\_\-AFE@{LRA\_\-N\_\-AFE}}\item[{\em 
\hypertarget{LRA_8h_4cf6c9d84437e14a9c41a724916f32e20de9bb4911e6ab1b7050275529207973}{
LRA\_\-N\_\-AFE}
\label{LRA_8h_4cf6c9d84437e14a9c41a724916f32e20de9bb4911e6ab1b7050275529207973}
}]Number of ACD front-ends. \end{description}
\end{Desc}

\hypertarget{LRA_8h_3b2f7e3af222e0363058a90328fb30f1}{
\index{LRA.h@{LRA.h}!\_\-LRA\_\-misc@{\_\-LRA\_\-misc}}
\index{\_\-LRA\_\-misc@{\_\-LRA\_\-misc}!LRA.h@{LRA.h}}
\subsubsection[{\_\-LRA\_\-misc}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf \_\-LRA\_\-misc}}}
\label{LRA_8h_3b2f7e3af222e0363058a90328fb30f1}


Miscellaneous definitions. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LRA\_\-WILD@{LRA\_\-WILD}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-WILD@{LRA\_\-WILD}}\item[{\em 
\hypertarget{LRA_8h_3b2f7e3af222e0363058a90328fb30f14979696448db6c54b079a1814eeb795c}{
LRA\_\-WILD}
\label{LRA_8h_3b2f7e3af222e0363058a90328fb30f14979696448db6c54b079a1814eeb795c}
}]General purpose wild-card value. \index{LRA\_\-ACTIVE@{LRA\_\-ACTIVE}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-ACTIVE@{LRA\_\-ACTIVE}}\item[{\em 
\hypertarget{LRA_8h_3b2f7e3af222e0363058a90328fb30f169dded3bce6c0f225ad2aca3cac548b2}{
LRA\_\-ACTIVE}
\label{LRA_8h_3b2f7e3af222e0363058a90328fb30f169dded3bce6c0f225ad2aca3cac548b2}
}]TEM or ARC specifier, active only. \end{description}
\end{Desc}

\hypertarget{LRA_8h_2c79e1a019186e80f43f1bece10f2a9c}{
\index{LRA.h@{LRA.h}!\_\-LRA\_\-statsVersion@{\_\-LRA\_\-statsVersion}}
\index{\_\-LRA\_\-statsVersion@{\_\-LRA\_\-statsVersion}!LRA.h@{LRA.h}}
\subsubsection[{\_\-LRA\_\-statsVersion}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf \_\-LRA\_\-statsVersion}}}
\label{LRA_8h_2c79e1a019186e80f43f1bece10f2a9c}


Statistics block version. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LRA\_\-STATS\_\-MAJOR@{LRA\_\-STATS\_\-MAJOR}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-STATS\_\-MAJOR@{LRA\_\-STATS\_\-MAJOR}}\item[{\em 
\hypertarget{LRA_8h_2c79e1a019186e80f43f1bece10f2a9c09451270083bc8473d38cc287af1a904}{
LRA\_\-STATS\_\-MAJOR}
\label{LRA_8h_2c79e1a019186e80f43f1bece10f2a9c09451270083bc8473d38cc287af1a904}
}]Major version number. \index{LRA\_\-STATS\_\-MINOR@{LRA\_\-STATS\_\-MINOR}!LRA.h@{LRA.h}}\index{LRA.h@{LRA.h}!LRA\_\-STATS\_\-MINOR@{LRA\_\-STATS\_\-MINOR}}\item[{\em 
\hypertarget{LRA_8h_2c79e1a019186e80f43f1bece10f2a9cd2bf0d4c2a666578e8cbc806f63e3a2f}{
LRA\_\-STATS\_\-MINOR}
\label{LRA_8h_2c79e1a019186e80f43f1bece10f2a9cd2bf0d4c2a666578e8cbc806f63e3a2f}
}]Minor version number. \end{description}
\end{Desc}



\subsection{Function Documentation}
\hypertarget{LRA_8h_68bd64e3fb2916126ee1d1d3158dc18a}{
\index{LRA.h@{LRA.h}!LRA\_\-bufSize@{LRA\_\-bufSize}}
\index{LRA\_\-bufSize@{LRA\_\-bufSize}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-bufSize}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-bufSize (const {\bf LRA\_\-regSpec} $\ast$ {\em rSpec}, \/  unsigned $\ast$ {\em size})}}
\label{LRA_8h_68bd64e3fb2916126ee1d1d3158dc18a}


Get the size needed for the returned data buffer. 

This routine returns the size needed for the buffer used to hold the read register data.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em rSpec}]The specifier for the register(s) to be read\item[{\em size}]The address of the returned size, in bytes\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Register specifier is valid \item[{\em LRA\_\-INVCMPT}]Invalid component number \item[{\em LRA\_\-INVREG}]Invalid register number \item[{\em LRA\_\-INVBLOCK}]Invalid register block number \item[{\em LRA\_\-INVTEM}]Invalid TEM number \item[{\em LRA\_\-INVCC}]Invalid cable controller number \item[{\em LRA\_\-INVRC}]Invalid readout controller number \item[{\em LRA\_\-INVFE}]Invalid front-end number \end{description}
\end{Desc}


References \_\-LRA\_\-cmptDesc::bDesc, \_\-LRA\_\-regSpec::block, \_\-LRA\_\-regSpec::cc, \_\-LRA\_\-regSpec::cmpnt, \_\-LRA\_\-regSpec::fe, LRA\_\-ACTIVE, LRA\_\-check(), LRA\_\-FNC\_\-READ, LRA\_\-WILD, \_\-LRA\_\-cmptDesc::maxCc, \_\-LRA\_\-cmptDesc::maxFe, \_\-LRA\_\-cmptDesc::maxRc, \_\-LRA\_\-blkDesc::maxReg, \_\-LRA\_\-cmptDesc::maxTem, \_\-LRA\_\-cmptDesc::nBlock, \_\-LRA\_\-blkDesc::nReg, \_\-LRA\_\-regSpec::rc, \_\-LRA\_\-regSpec::reg, \_\-LRA\_\-blkDesc::rWidth, and \_\-LRA\_\-regSpec::tem.\hypertarget{LRA_8h_24c67a7f280ebed3a47122f3c679f830}{
\index{LRA.h@{LRA.h}!LRA\_\-clearStats@{LRA\_\-clearStats}}
\index{LRA\_\-clearStats@{LRA\_\-clearStats}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-clearStats}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-clearStats (void)}}
\label{LRA_8h_24c67a7f280ebed3a47122f3c679f830}


Clear the register statistics. 

The register statistics are cleared, with controlled access.

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Success \item[{\em LRA\_\-NOTINIT}]LRA not initialized \end{description}
\end{Desc}


References LRA\_\-updateStats(), procUpdTimer(), \_\-LRA\_\-control::statPrd, and \_\-LRA\_\-control::statTmr.

Referenced by LRA\_\-STATCLEAR().\hypertarget{LRA_8h_56afd4f35f101757fc25cf861e9343f4}{
\index{LRA.h@{LRA.h}!LRA\_\-ctrl@{LRA\_\-ctrl}}
\index{LRA\_\-ctrl@{LRA\_\-ctrl}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-ctrl}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-ctrl (const {\bf LRA\_\-regSpec} $\ast$ {\em rSpec})}}
\label{LRA_8h_56afd4f35f101757fc25cf861e9343f4}


Perform a control operation. 

The internal routine is called to carry out the specified control operation on the specified component.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em rSpec}]The register specifier, specifying which instances of which component are to be operated on. It contains the component, the register block (EBM only), the TEM number, cable controller number, readout controller number, front-end number, and control function. The TEM, CC, RC and FE may be set individually to the value LRA\_\-WILD to cause the operation to be performed on all instances.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]The operation was successful \item[{\em LRA\_\-INVCMPT}]Invalid component number \item[{\em LRA\_\-INVCNTRL}]Invalid control operation \item[{\em LRA\_\-INVTEM}]Invalid TEM number \item[{\em LRA\_\-INVCC}]Invalid cable controller number \item[{\em LRA\_\-INVRC}]Invalid readout controller number \item[{\em LRA\_\-INVFE}]Invalid front-end number \item[{\em ITC\_\-SENDTID}]Destination task (LRA) not started \item[{\em LCBD\_\-RTOERR}]Operation timed out \end{description}
\end{Desc}


References LRA\_\-doCtrl().\hypertarget{LRA_8h_bd9a83b0aeee5417c2ac8f91bacf33c6}{
\index{LRA.h@{LRA.h}!LRA\_\-getEbmEventStats@{LRA\_\-getEbmEventStats}}
\index{LRA\_\-getEbmEventStats@{LRA\_\-getEbmEventStats}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-getEbmEventStats}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-getEbmEventStats ({\bf LRA\_\-ebmEventStats} $\ast$ {\em stats})}}
\label{LRA_8h_bd9a83b0aeee5417c2ac8f91bacf33c6}


Get a copy of the EBM event statistics. 

The EBM event statistics are copied, with controlled access. Only the operation counts are copied.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em stats}]The address of the area to which the statistics are to be copied\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Success \item[{\em LRA\_\-NOTINIT}]LRA not initialized \end{description}
\end{Desc}


References \_\-LRA\_\-ebmStats::aemR, \_\-LRA\_\-ebmEventStats::aemR, \_\-LRA\_\-stats::ebm, \_\-LRA\_\-ebmStats::epu0R, \_\-LRA\_\-ebmEventStats::epu0R, \_\-LRA\_\-ebmStats::epu0S, \_\-LRA\_\-ebmEventStats::epu0S, \_\-LRA\_\-ebmStats::epu1R, \_\-LRA\_\-ebmEventStats::epu1R, \_\-LRA\_\-ebmStats::epu1S, \_\-LRA\_\-ebmEventStats::epu1S, \_\-LRA\_\-ebmStats::epu2R, \_\-LRA\_\-ebmEventStats::epu2R, \_\-LRA\_\-ebmStats::epu2S, \_\-LRA\_\-ebmEventStats::epu2S, \_\-LRA\_\-ebmStats::gemR, \_\-LRA\_\-ebmEventStats::gemR, LRA\_\-N\_\-TEM, \_\-LRA\_\-xmtStats::nOper, \_\-LRA\_\-trcvStats::nOper, \_\-LRA\_\-rcvStats::nOper, \_\-LRA\_\-ebmEventStats::readTime, \_\-LRA\_\-stats::resetTime, \_\-LRA\_\-ebmEventStats::resetTime, \_\-LRA\_\-ebmStats::siu0R, \_\-LRA\_\-ebmEventStats::siu0R, \_\-LRA\_\-ebmStats::siu0S, \_\-LRA\_\-ebmEventStats::siu0S, \_\-LRA\_\-ebmStats::siu1R, \_\-LRA\_\-ebmEventStats::siu1R, \_\-LRA\_\-ebmStats::siu1S, \_\-LRA\_\-ebmEventStats::siu1S, \_\-LRA\_\-ebmStats::siueR, \_\-LRA\_\-ebmEventStats::siueR, \_\-LRA\_\-ebmStats::siueS, \_\-LRA\_\-ebmEventStats::siueS, \_\-LRA\_\-ebmStats::ssrS, \_\-LRA\_\-ebmEventStats::ssrS, \_\-LRA\_\-stats::startTime, \_\-LRA\_\-control::statMtx, \_\-LRA\_\-control::stats, \_\-LRA\_\-ebmStats::temR, and \_\-LRA\_\-ebmEventStats::temR.\hypertarget{LRA_8h_2969e921577961cb957ae439040b30e8}{
\index{LRA.h@{LRA.h}!LRA\_\-getGemCntrStats@{LRA\_\-getGemCntrStats}}
\index{LRA\_\-getGemCntrStats@{LRA\_\-getGemCntrStats}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-getGemCntrStats}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-getGemCntrStats ({\bf LRA\_\-gemCntrStats} $\ast$ {\em stats})}}
\label{LRA_8h_2969e921577961cb957ae439040b30e8}


Get a copy of the GEM counters. 

The GEM extended counters are copied, with controlled access. Only the counter values are copied.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em stats}]The address of the area to which the counters are to be copied\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Success \item[{\em LRA\_\-NOTINIT}]LRA not initialized \end{description}
\end{Desc}


References \_\-LRA\_\-gemStats::base, \_\-LRA\_\-gemStats::dead, \_\-LRA\_\-gemCntrStats::deadzone, \_\-LRA\_\-gemStats::disc, \_\-LRA\_\-gemCntrStats::discard, \_\-LRA\_\-stats::gem, \_\-LRA\_\-gemStats::live, \_\-LRA\_\-gemCntrStats::livetime, \_\-LRA\_\-cntrStats::nCount, \_\-LRA\_\-gemStats::pres, \_\-LRA\_\-gemCntrStats::prescale, \_\-LRA\_\-gemCntrStats::readTime, \_\-LRA\_\-stats::resetTime, \_\-LRA\_\-gemCntrStats::resetTime, \_\-LRA\_\-gemStats::sent, \_\-LRA\_\-gemCntrStats::sent, \_\-LRA\_\-stats::startTime, \_\-LRA\_\-control::statMtx, \_\-LRA\_\-control::stats, and \_\-LRA\_\-gemCntrStats::timebase.\hypertarget{LRA_8h_55f3fe23ec743529142e3ce407802acf}{
\index{LRA.h@{LRA.h}!LRA\_\-getStats@{LRA\_\-getStats}}
\index{LRA\_\-getStats@{LRA\_\-getStats}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-getStats}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-getStats ({\bf LRA\_\-stats} $\ast$ {\em stats})}}
\label{LRA_8h_55f3fe23ec743529142e3ce407802acf}


Get a copy of the register statistics. 

The register statistics are copied, with controlled access.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em stats}]The address of the area to which the statistics are to be copied\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Success \item[{\em LRA\_\-NOTINIT}]LRA not initialized \end{description}
\end{Desc}


References \_\-LRA\_\-control::statMtx, and \_\-LRA\_\-control::stats.\hypertarget{LRA_8h_c5ca757a296a3ce6317ef796b453d15f}{
\index{LRA.h@{LRA.h}!LRA\_\-initialize@{LRA\_\-initialize}}
\index{LRA\_\-initialize@{LRA\_\-initialize}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-initialize}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-initialize (unsigned {\em period}, \/  unsigned short {\em tems})}}
\label{LRA_8h_c5ca757a296a3ce6317ef796b453d15f}


Initialize the register access system. 

This routine sets up the apparatus needed by the register access system.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em period}]The time, in 1/100 seconds, to be used between successive updates of the register statistics. If zero, the default value is used.\item[{\em tems}]The mask of TEMs whose event receive stats are to be sampled. If zero, the default of all TEMs is used.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Initialization was successful \item[{\em LRA\_\-ALRDINIT}]Already initialized \item[{\em LRA\_\-INSFMEM}]Insufficient memory for initialization \item[{\em LRA\_\-FPAFAIL}]FPA initialization failed \item[{\em LRA\_\-NOSEMS}]Unable to create semaphores \item[{\em LRA\_\-NOMUTEX}]Unable to create a mutex \item[{\em LRA\_\-NOTIMER}]Unable to create a timer \item[{\em RBM\_\-ALOCFAIL}]Memory allocation failure \item[{\em RBM\_\-FPAINIT}]FPA initialization failure \item[{\em RBM\_\-NOTINIT}]RBM system not initialized \item[{\em ITC\_\-ALOCFAIL}]Cannot allocate memory \item[{\em ITC\_\-NOTINIT}]ITC control block does not exist \item[{\em ITC\_\-TASKQUEU}]Cannot create task queues \item[{\em ITC\_\-CTLSTAT}]ITC control block not in state initialized \item[{\em ITC\_\-QUEUINIT}]Queue initialization failed \item[{\em ITC\_\-VARRNG}]Out of range variable detected \item[{\em ITC\_\-APIDDBL}]Table entry for this APID already in use \end{description}
\end{Desc}


References \_\-LRA\_\-control::ccRb, \_\-LRA\_\-control::crl, \_\-LRA\_\-control::dFcb, \_\-LRA\_\-control::eData, \_\-LRA\_\-control::lastPrd, LRA\_\-Apid680, LRA\_\-DFLT\_\-PRD, LRA\_\-DFLT\_\-TEMS, LRA\_\-DGM\_\-SIZE, LRA\_\-initStats(), LRA\_\-maxBufSize(), LRA\_\-NUM\_\-DGMS, LRA\_\-NUM\_\-PKTS, LRA\_\-NUM\_\-RQSTS, LRA\_\-NUM\_\-UPDATE, LRA\_\-PKT\_\-SIZE, LRA\_\-process(), LRA\_\-terminate(), \_\-LRA\_\-control::nextTemMask, procUpdate(), \_\-LRA\_\-control::rData, \_\-LRA\_\-control::rFcb, \_\-LRA\_\-control::rRtn, \_\-LRA\_\-return::sem, \_\-LRA\_\-control::sFcb, \_\-LRA\_\-control::srData, \_\-LRA\_\-control::statMtx, \_\-LRA\_\-control::statPrd, \_\-LRA\_\-control::stats, \_\-LRA\_\-control::statTmr, \_\-LRA\_\-control::taskH, \_\-LRA\_\-control::tcRb, and \_\-LRA\_\-control::uFcb.\hypertarget{LRA_8h_16ea37a0397279916b845e269c82a337}{
\index{LRA.h@{LRA.h}!LRA\_\-lam@{LRA\_\-lam}}
\index{LRA\_\-lam@{LRA\_\-lam}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-lam}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-lam (unsigned {\em cmpnt}, \/  unsigned {\em tem})}}
\label{LRA_8h_16ea37a0397279916b845e269c82a337}


Perform a look-at-me operation. 

The internal routine is called to send a look-at-me to the specified component.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cmpnt}]The ID of the component to be sent a look-at-me\item[{\em tem}]The TEM number to use if the component is TEM\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]The operation was successful \item[{\em LRA\_\-INVCMPT}]Invalid component number \item[{\em LRA\_\-INVTEM}]Invalid TEM number \item[{\em ITC\_\-SENDTID}]Destination task (LRA) not started \item[{\em LCBD\_\-RTOERR}]Operation timed out \end{description}
\end{Desc}


References LRA\_\-doLam().\hypertarget{LRA_8h_bed1a7a937dfa518fbb4a8186c83c6b0}{
\index{LRA.h@{LRA.h}!LRA\_\-lamLcb@{LRA\_\-lamLcb}}
\index{LRA\_\-lamLcb@{LRA\_\-lamLcb}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-lamLcb}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-lamLcb (unsigned {\em cmpnt}, \/  unsigned {\em value}, \/  unsigned {\em mask})}}
\label{LRA_8h_bed1a7a937dfa518fbb4a8186c83c6b0}


Perform a look-at-me directed to an LCB. 

The internal routine is called to send a look-at-me to the specified LCB component.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cmpnt}]The ID of the LCB component to be sent a look-at-me\item[{\em value}]The value to be sent\item[{\em mask}]The mask specifying which bits of value to use\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]The operation was successful \item[{\em LRA\_\-INVCMPT}]Invalid component number \item[{\em ITC\_\-SENDTID}]Destination task (LRA) not started \item[{\em LCBD\_\-RTOERR}]Operation timed out \end{description}
\end{Desc}


References LRA\_\-doLamLcb().\hypertarget{LRA_8h_a1d3971038a0fcb51bf3dce008ff5b52}{
\index{LRA.h@{LRA.h}!LRA\_\-latReset@{LRA\_\-latReset}}
\index{LRA\_\-latReset@{LRA\_\-latReset}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-latReset}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-latReset (void)}}
\label{LRA_8h_a1d3971038a0fcb51bf3dce008ff5b52}


Perform a LAT reset. 

The whole LAT is reset.

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Reset was successful \item[{\em LCBD\_\-RTOERR}]Operation timed out \end{description}
\end{Desc}


Referenced by LRA\_\-LATRESET().\hypertarget{LRA_8h_7546c66e215c680fa2186d28d9018fe8}{
\index{LRA.h@{LRA.h}!LRA\_\-load@{LRA\_\-load}}
\index{LRA\_\-load@{LRA\_\-load}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-load}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-load (const {\bf LRA\_\-regSpec} $\ast$ {\em rSpec}, \/  const unsigned long long $\ast$ {\em value})}}
\label{LRA_8h_7546c66e215c680fa2186d28d9018fe8}


Perform a register load operation. 

The internal routine is called to load the specified value into one or more instances of the specified register.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em rSpec}]The register specifier, specifying which register (or set of registers) is (are) to be loaded. This contains the device, the register block, the TEM number, cable controller number, readout controller number, front-end number, and register number. The four parameters tem, cc, rc and fe may be set individually to the value LRA\_\-WILD to cause the value to be loaded in all places.\item[{\em value}]The address of the value to be loaded into the specified instances of the register.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Load was successful \item[{\em LRA\_\-INVCMPT}]Invalid component number \item[{\em LRA\_\-INVREG}]Invalid register number \item[{\em LRA\_\-INVBLOCK}]Invalid register block number \item[{\em LRA\_\-INVTEM}]Invalid TEM number \item[{\em LRA\_\-INVCC}]Invalid cable controller number \item[{\em LRA\_\-INVRC}]Invalid readout controller number \item[{\em LRA\_\-INVFE}]Invalid front-end number \item[{\em ITC\_\-SENDTID}]Destination task (LRA) not started \item[{\em LCBD\_\-RTOERR}]Operation timed out \end{description}
\end{Desc}


References LRA\_\-doLoad().\hypertarget{LRA_8h_86f1457a7b1f4006ee1889d87a012cbb}{
\index{LRA.h@{LRA.h}!LRA\_\-lookupBlk@{LRA\_\-lookupBlk}}
\index{LRA\_\-lookupBlk@{LRA\_\-lookupBlk}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-lookupBlk}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-lookupBlk (const {\bf LRA\_\-cmptDesc} $\ast$ {\em cDesc}, \/  const char $\ast$ {\em bName}, \/  int $\ast$ {\em block})}}
\label{LRA_8h_86f1457a7b1f4006ee1889d87a012cbb}


Lookup register block in list. 

The register block name is used to locate and return the matching block number in the list of valid blocks for the given component.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cDesc}]The component descriptor.\item[{\em bName}]The register block name.\item[{\em block}]The address of an integer to receive the register block number.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Success \item[{\em LRA\_\-INVBLOCK}]Invalid register block name \end{description}
\end{Desc}


References \_\-LRA\_\-cmptDesc::bDesc, \_\-LRA\_\-blkDesc::name, and \_\-LRA\_\-cmptDesc::nBlock.\hypertarget{LRA_8h_56a01bcb1c1f21f04cdcd30163c61a13}{
\index{LRA.h@{LRA.h}!LRA\_\-maxBufSize@{LRA\_\-maxBufSize}}
\index{LRA\_\-maxBufSize@{LRA\_\-maxBufSize}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-maxBufSize}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-maxBufSize (unsigned $\ast$ {\em size})}}
\label{LRA_8h_56a01bcb1c1f21f04cdcd30163c61a13}


Get the maximum size needed for the register data buffer. 

This routine returns the maximum size needed for the buffer used to hold the read register data. It assumes the maximum possible wild carding of the register description.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em size}]The address of the returned maximum size, in bytes\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Always success \end{description}
\end{Desc}


References \_\-LRA\_\-cmptDesc::bDesc, \_\-LRA\_\-cmptDesc::maxCc, \_\-LRA\_\-cmptDesc::maxFe, \_\-LRA\_\-cmptDesc::maxRc, \_\-LRA\_\-blkDesc::maxReg, \_\-LRA\_\-cmptDesc::maxTem, \_\-LRA\_\-cmptDesc::nBlock, NELEM, \_\-LRA\_\-blkDesc::nReg, and \_\-LRA\_\-blkDesc::rWidth.

Referenced by LRA\_\-initialize().\hypertarget{LRA_8h_ae3fff2ebbb990bd02694d3e19d9ee5b}{
\index{LRA.h@{LRA.h}!LRA\_\-read@{LRA\_\-read}}
\index{LRA\_\-read@{LRA\_\-read}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-read}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-read (const {\bf LRA\_\-regSpec} $\ast$ {\em rSpec}, \/  {\bf LRA\_\-regData} $\ast$ {\em data})}}
\label{LRA_8h_ae3fff2ebbb990bd02694d3e19d9ee5b}


Perform a register read operation. 

The internal routine is called to read the specified registers into the supplied data area. This area is presumed to be big enough to hold the data, and the correct size may be determined in advance by calling the LRA\_\-bufSize routine.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em rSpec}]The register specifier, specifying which register (or set of registers) is (are) to be read. This contains the component, the register block, the TEM number, cable controller number, readout controller number, front-end number, and register number. The latter five parameters may be set individually to the value LRA\_\-WILD to cause all values to be used.\item[{\em data}]The address of an area to receive the read register values. This is a formatted block designed to be almost stand-alone. It contains the register specifier, counts of the number of values used for each of the last five parameters, the size of each register value, and the array of register values arranged with outer loop to inner loop ordered TEM, CC, RC, FE and register.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Read was successful \item[{\em LRA\_\-INVCMPT}]Invalid component number \item[{\em LRA\_\-INVREG}]Invalid register number \item[{\em LRA\_\-INVBLOCK}]Invalid register block number \item[{\em LRA\_\-INVTEM}]Invalid TEM number \item[{\em LRA\_\-INVCC}]Invalid cable controller number \item[{\em LRA\_\-INVRC}]Invalid readout controller number \item[{\em LRA\_\-INVFE}]Invalid front-end number \item[{\em ITC\_\-SENDTID}]Destination task (LRA) not started \item[{\em LCBD\_\-RTOERR}]Operation timed out \end{description}
\end{Desc}


References LRA\_\-doRead().\hypertarget{LRA_8h_2c59c3cbdaedd17018f2f6fe6b300346}{
\index{LRA.h@{LRA.h}!LRA\_\-readEsr@{LRA\_\-readEsr}}
\index{LRA\_\-readEsr@{LRA\_\-readEsr}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-readEsr}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-readEsr ({\bf LRA\_\-esrData} $\ast$ {\em esr})}}
\label{LRA_8h_2c59c3cbdaedd17018f2f6fe6b300346}


Read the error and status registers. 

The internal routine is called to read and store the contents of a pre-determined set of LAT error and status registers. No error is reported if a read operation times out.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em esr}]The address of an area to receive the register values\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]The registers were read successfully \item[{\em ITC\_\-SENDTID}]Destination task (LRA) not started \end{description}
\end{Desc}


References LRA\_\-doReadEsr().\hypertarget{LRA_8h_d17061914c4b667646ca815458f9eb8e}{
\index{LRA.h@{LRA.h}!LRA\_\-send@{LRA\_\-send}}
\index{LRA\_\-send@{LRA\_\-send}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-send}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-send (const {\bf LRA\_\-regSpec} $\ast$ {\em rSpec})}}
\label{LRA_8h_d17061914c4b667646ca815458f9eb8e}


Send register values to the spacecraft. 

A request is queued to the LRA task to read the specified registers and send them to the spacecraft via the SSR.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em rSpec}]The register specifier, specifying which register (or set of registers) is (are) to be read. This contains the component, the register block, the TEM number, cable controller number, readout controller number, front-end number, and register number. The latter five parameters may be set individually to the value LRA\_\-WILD to cause all values to be used.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]The read and send were successful \item[{\em LRA\_\-INVCMPT}]Invalid component number \item[{\em LRA\_\-INVREG}]Invalid register number \item[{\em LRA\_\-INVBLOCK}]Invalid register block number \item[{\em LRA\_\-INVTEM}]Invalid TEM number \item[{\em LRA\_\-INVCC}]Invalid cable controller number \item[{\em LRA\_\-INVRC}]Invalid readout controller number \item[{\em LRA\_\-INVFE}]Invalid front-end number \item[{\em LCBD\_\-RTOERR}]Operation timed out \item[{\em ITC\_\-SENDNID}]Destination node not reachable \item[{\em ITC\_\-SENDPRX}]Proxy task for destination node not started \item[{\em ITC\_\-SENDQID}]Destination queue not available \item[{\em ITC\_\-SENDTID}]Destination task (LRA) not started \end{description}
\end{Desc}


References doRequest(), and LRA\_\-FNC\_\-SEND.\hypertarget{LRA_8h_5fa00676fb5e0cb4c9544e95075d6793}{
\index{LRA.h@{LRA.h}!LRA\_\-sendEsr@{LRA\_\-sendEsr}}
\index{LRA\_\-sendEsr@{LRA\_\-sendEsr}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-sendEsr}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-sendEsr (void)}}
\label{LRA_8h_5fa00676fb5e0cb4c9544e95075d6793}


Send the error and status register values to the spacecraft. 

A request is queued to the LRA task to read the contents of a pre- determined set of LAT error and status registers and send them to the spacecraft via the SSR.

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]The read and send were successful \item[{\em ITC\_\-SENDNID}]Destination node not reachable \item[{\em ITC\_\-SENDPRX}]Proxy task for destination node not started \item[{\em ITC\_\-SENDQID}]Destination queue not available \item[{\em ITC\_\-SENDTID}]Destination task (LRA) not started \end{description}
\end{Desc}


References doRequest(), and LRA\_\-FNC\_\-SENDESR.\hypertarget{LRA_8h_75293aeee71ac3752410255635616e4c}{
\index{LRA.h@{LRA.h}!LRA\_\-sendStats@{LRA\_\-sendStats}}
\index{LRA\_\-sendStats@{LRA\_\-sendStats}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-sendStats}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-sendStats (void)}}
\label{LRA_8h_75293aeee71ac3752410255635616e4c}


Send statistics data to the spacecraft. 

A request is queued to the LRA task to send the statistics data block to the spacecraft via the SSR.

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]The statistics were sent successfully \item[{\em LRA\_\-NOTINIT}]LRA not initialized \item[{\em ITC\_\-SENDNID}]Destination node not reachable \item[{\em ITC\_\-SENDPRX}]Proxy task for destination node not started \item[{\em ITC\_\-SENDQID}]Destination queue not available \item[{\em ITC\_\-SENDTID}]Destination task not started \end{description}
\end{Desc}


References doRequest(), and LRA\_\-FNC\_\-SENDSTATS.\hypertarget{LRA_8h_ab9086f67f708653ecb81dd5bde43276}{
\index{LRA.h@{LRA.h}!LRA\_\-setStatsPeriod@{LRA\_\-setStatsPeriod}}
\index{LRA\_\-setStatsPeriod@{LRA\_\-setStatsPeriod}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-setStatsPeriod}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-setStatsPeriod (unsigned {\em period})}}
\label{LRA_8h_ab9086f67f708653ecb81dd5bde43276}


Set the statistics update period. 

This routine sets the statistics update period to a new value.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em period}]The time, in 1/100 seconds, to be used between successive updates of the register statistics. If zero, the default value is used.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Success \item[{\em LRA\_\-NOTINIT}]LRA not initialized \end{description}
\end{Desc}


References LRA\_\-DFLT\_\-PRD, and \_\-LRA\_\-control::statPrd.

Referenced by LRA\_\-STATPERIOD().\hypertarget{LRA_8h_76c3c29e7a6ac62d2b49252c90b8671f}{
\index{LRA.h@{LRA.h}!LRA\_\-setTemMask@{LRA\_\-setTemMask}}
\index{LRA\_\-setTemMask@{LRA\_\-setTemMask}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-setTemMask}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-setTemMask (unsigned short {\em tems})}}
\label{LRA_8h_76c3c29e7a6ac62d2b49252c90b8671f}


Set the mask of sampled TEMs. 

This routine sets the mask of TEMs whose events received statistics are to be sampled.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tems}]The bit mask of TEMs to be sampled.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Success \item[{\em LRA\_\-NOTINIT}]LRA not initialized \end{description}
\end{Desc}


References LRA\_\-DFLT\_\-TEMS, and \_\-LRA\_\-control::nextTemMask.

Referenced by LRA\_\-STATTEMS().\hypertarget{LRA_8h_e9ebafd3b1a8bf44afe3f319fa96c307}{
\index{LRA.h@{LRA.h}!LRA\_\-sizeofEbmEventStats@{LRA\_\-sizeofEbmEventStats}}
\index{LRA\_\-sizeofEbmEventStats@{LRA\_\-sizeofEbmEventStats}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-sizeofEbmEventStats}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-sizeofEbmEventStats (void)}}
\label{LRA_8h_e9ebafd3b1a8bf44afe3f319fa96c307}


Get the size of the EBM event statistics block. 

The size of the EBM event statistics block is returned.

\begin{Desc}
\item[Returns:]The size of the EBM event statistics block. \end{Desc}
\hypertarget{LRA_8h_0421a3473dbd859cbc10e3518fd3fb42}{
\index{LRA.h@{LRA.h}!LRA\_\-sizeofGemCntrStats@{LRA\_\-sizeofGemCntrStats}}
\index{LRA\_\-sizeofGemCntrStats@{LRA\_\-sizeofGemCntrStats}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-sizeofGemCntrStats}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-sizeofGemCntrStats (void)}}
\label{LRA_8h_0421a3473dbd859cbc10e3518fd3fb42}


Get the size of the GEM counters block. 

The size of the GEM extended counters block is returned.

\begin{Desc}
\item[Returns:]The size of the GEM counters block. \end{Desc}
\hypertarget{LRA_8h_deb1ac67ef7c80cfdc71947a9afea3ec}{
\index{LRA.h@{LRA.h}!LRA\_\-sizeofStats@{LRA\_\-sizeofStats}}
\index{LRA\_\-sizeofStats@{LRA\_\-sizeofStats}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-sizeofStats}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-sizeofStats (void)}}
\label{LRA_8h_deb1ac67ef7c80cfdc71947a9afea3ec}


Get the size of the LRA statistics block. 

The size of the whole LRA statistics block is returned.

\begin{Desc}
\item[Returns:]The size of the LRA statistics block. \end{Desc}
\hypertarget{LRA_8h_68e013b82183f8ee6c22584b34c2d68c}{
\index{LRA.h@{LRA.h}!LRA\_\-start@{LRA\_\-start}}
\index{LRA\_\-start@{LRA\_\-start}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-start}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-start (void)}}
\label{LRA_8h_68e013b82183f8ee6c22584b34c2d68c}


Start the register access task. 

This routine starts the register access task after checking that initialization has been successful.

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]The task was started successfully \item[{\em LRA\_\-NOTINIT}]LRA not initialized \item[{\em ITC\_\-ALOCFAIL}]Cannot allocate for fork control block \item[{\em ITC\_\-CTLSTAT}]ITC control block not in state initialized \item[{\em ITC\_\-FORKINIT}]Fork initialization failed \item[{\em ITC\_\-FORKQHND}]Cannot recover all fork queue handles (obscure) \item[{\em ITC\_\-NOTINIT}]ITC control block does not exist \end{description}
\end{Desc}


References LRA\_\-startStats(), and \_\-LRA\_\-control::taskH.\hypertarget{LRA_8h_e9a27b4bc04569338a86bd4950f7637b}{
\index{LRA.h@{LRA.h}!LRA\_\-startStats@{LRA\_\-startStats}}
\index{LRA\_\-startStats@{LRA\_\-startStats}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-startStats}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-startStats (void)}}
\label{LRA_8h_e9a27b4bc04569338a86bd4950f7637b}


Start register statistics acquisition. 

The periodic updating of the register statistics block is started after the registers and statistics are cleared.

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Success \item[{\em LRA\_\-NOTINIT}]LRA not initialized \end{description}
\end{Desc}


References \_\-LRA\_\-control::lastPrd, LRA\_\-updateStats(), procUpdTimer(), \_\-LRA\_\-control::statPrd, and \_\-LRA\_\-control::statTmr.

Referenced by LRA\_\-start().\hypertarget{LRA_8h_9afcad4c55c25371b9374de23bb5008e}{
\index{LRA.h@{LRA.h}!LRA\_\-stop@{LRA\_\-stop}}
\index{LRA\_\-stop@{LRA\_\-stop}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-stop}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-stop (void)}}
\label{LRA_8h_9afcad4c55c25371b9374de23bb5008e}


Stop the register access task. 

This routine stops the register access task.

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]The task was stopped successfully \item[{\em LRA\_\-NOTINIT}]LRA not initialized \item[{\em ITC\_\-CTLSTAT}]ITC control block not in state initialized \item[{\em ITC\_\-NOTINIT}]ITC control block does not exist \item[{\em ITC\_\-TASKHNDL}]Task handle is invalid \item[{\em ITC\_\-TASKSTAT}]Invalid task state for this operation \end{description}
\end{Desc}


References LRA\_\-stopStats(), and \_\-LRA\_\-control::taskH.\hypertarget{LRA_8h_addf99c81b6f21fae7f1f84aa9b8f290}{
\index{LRA.h@{LRA.h}!LRA\_\-stopStats@{LRA\_\-stopStats}}
\index{LRA\_\-stopStats@{LRA\_\-stopStats}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-stopStats}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-stopStats (void)}}
\label{LRA_8h_addf99c81b6f21fae7f1f84aa9b8f290}


Stop register statistics acquisition. 

The periodic updating of the register statistics block is stopped.

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Success \item[{\em LRA\_\-NOTINIT}]LRA not initialized \end{description}
\end{Desc}


References \_\-LRA\_\-control::statPrd, and \_\-LRA\_\-control::statTmr.

Referenced by LRA\_\-stop().\hypertarget{LRA_8h_111d939f0ab37fdbc1a203c4ab866aba}{
\index{LRA.h@{LRA.h}!LRA\_\-terminate@{LRA\_\-terminate}}
\index{LRA\_\-terminate@{LRA\_\-terminate}!LRA.h@{LRA.h}}
\subsubsection[{LRA\_\-terminate}]{\setlength{\rightskip}{0pt plus 5cm}unsigned LRA\_\-terminate (void)}}
\label{LRA_8h_111d939f0ab37fdbc1a203c4ab866aba}


Terminate register access. 

This routine frees all resources used by the register access system.

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LRA\_\-SUCCESS}]Termination was successful \item[{\em LRA\_\-NOTINIT}]LRA not initialized \end{description}
\end{Desc}


References \_\-LRA\_\-control::ccRb, \_\-LRA\_\-control::crl, \_\-LRA\_\-control::dFcb, \_\-LRA\_\-control::eData, LRA\_\-Apid680, LRA\_\-freeStats(), LRA\_\-NUM\_\-RQSTS, \_\-LRA\_\-control::rData, \_\-LRA\_\-control::rFcb, \_\-LRA\_\-control::rRtn, \_\-LRA\_\-return::sem, \_\-LRA\_\-control::sFcb, \_\-LRA\_\-control::srData, \_\-LRA\_\-control::statMtx, \_\-LRA\_\-control::stats, \_\-LRA\_\-control::statTmr, \_\-LRA\_\-control::taskH, \_\-LRA\_\-control::tcRb, and \_\-LRA\_\-control::uFcb.

Referenced by LRA\_\-initialize().