\hypertarget{ADCSIM_8c}{
\section{ADCSIM.c File Reference}
\label{ADCSIM_8c}\index{ADCSIM.c@{ADCSIM.c}}
}
Routines to provide simulation of hardware ADC values.  


{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include \char`\"{}PBS/BSWP.h\char`\"{}}\par
{\tt \#include \char`\"{}PBI/Endianness.h\char`\"{}}\par
{\tt \#include \char`\"{}LCBD/LCBD\_\-cr.h\char`\"{}}\par
{\tt \#include \char`\"{}LCBD/LCBC.h\char`\"{}}\par
{\tt \#include \char`\"{}LCBD/LCBR.h\char`\"{}}\par
{\tt \#include \char`\"{}LEM/defs.h\char`\"{}}\par
{\tt \#include \char`\"{}LEM/encode\_\-structs.h\char`\"{}}\par
{\tt \#include \char`\"{}FBS/FBS\_\-pubrtos.h\char`\"{}}\par
{\tt \#include \char`\"{}ADCSIM\_\-prvdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}ADCSIM/ADCSIM\_\-pubdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}CLI/CLI\_\-pubdefs.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned int \hyperlink{ADCSIM_8c_769c0c3100d3ca3936596c5305f373b8}{LCBD\_\-submit} (LCBD\_\-xcb $\ast$xcb)
\begin{CompactList}\small\item\em Simulate execution of command list. \item\end{CompactList}\item 
unsigned int \hyperlink{ADCSIM_8c_00ead172e586c1be6cbf60f0b252126d}{ADCSIM\_\-setTemEnvData} (unsigned short tem, unsigned short mux, unsigned short adc, unsigned short val)
\begin{CompactList}\small\item\em Sets a value in the simulated TEM environmental register block. \item\end{CompactList}\item 
unsigned int \hyperlink{ADCSIM_8c_98c6baf4c0f0b43008c9ee8bf5a587d6}{ADCSIM\_\-setPduEnvData} (unsigned short grp, unsigned short bank, unsigned short adc, unsigned int val)
\begin{CompactList}\small\item\em Sets a value in the simulated PDU environmental register block. \item\end{CompactList}\item 
unsigned int \hyperlink{ADCSIM_8c_8ab6224ef59d9a1a422bab399b71caf4}{ADCSIM\_\-setAemEnvData} (unsigned short free, unsigned short adc, unsigned short val)
\begin{CompactList}\small\item\em Sets a value in the simulated AEM environmental register block. \item\end{CompactList}\item 
unsigned int \hyperlink{ADCSIM_8c_7345e3ef32a1c73dc456b7dfc2d5b934}{ADCSIM\_\-setPduPwrData} (unsigned short reg, unsigned short val)
\begin{CompactList}\small\item\em Sets a value in the simulated PDU power status register block. \item\end{CompactList}\item 
unsigned int \hyperlink{ADCSIM_8c_5345c7041b7645d28ae2d22e8e584e10}{ADCSIM\_\-setAemPwrData} (unsigned int val)
\begin{CompactList}\small\item\em Sets a value in the simulated AEM power status register. \item\end{CompactList}\item 
unsigned int \hyperlink{ADCSIM_8c_112cff8536dab13c89fc64d44032041a}{ADCSIM\_\-setTemBusyData} (unsigned short tem, unsigned short val0, unsigned short val1)
\begin{CompactList}\small\item\em Sets a value in the simulated TEM busy/dead time register block. \item\end{CompactList}\item 
unsigned int \hyperlink{ADCSIM_8c_a3747b2f044e7fc2ba76772a37eb8561}{ADCSIM\_\-setGemLrsData} (unsigned short reg, unsigned short val0, unsigned short val1)
\begin{CompactList}\small\item\em Sets a value in the simulated GEM low-rate science register block. \item\end{CompactList}\item 
static unsigned int \hyperlink{ADCSIM_8c_92b9b43f49bba138e95da58d809aae50}{ADCSIM\_\-setTemEnvData\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call. \item\end{CompactList}\item 
static unsigned int \hyperlink{ADCSIM_8c_825c3e05979e325963fcdc0faebf9b7a}{ADCSIM\_\-setPduEnvData\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call. \item\end{CompactList}\item 
static unsigned int \hyperlink{ADCSIM_8c_c6fe71fc7ac73b93b25ca490a38ba7fb}{ADCSIM\_\-setAemEnvData\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call. \item\end{CompactList}\item 
static unsigned int \hyperlink{ADCSIM_8c_16f062f6028b16c009225ffdfc333bf4}{ADCSIM\_\-setPduPwrData\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call. \item\end{CompactList}\item 
static unsigned int \hyperlink{ADCSIM_8c_8d1c27fd092fb66ee53b892d69a65031}{ADCSIM\_\-setAemPwrData\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call. \item\end{CompactList}\item 
static unsigned int \hyperlink{ADCSIM_8c_5b0d92aa04a8a3717c94d0046a727c9b}{ADCSIM\_\-setTemBusyData\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call. \item\end{CompactList}\item 
static unsigned int \hyperlink{ADCSIM_8c_00991633e6191d2b0dd8a0ed9e13f8d4}{ADCSIM\_\-setGemLrsData\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call. \item\end{CompactList}\item 
static unsigned int \hyperlink{ADCSIM_8c_2383dd5d81e81372e2a8f610b966c481}{ADCSIM\_\-setSibPath\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call. \item\end{CompactList}\item 
unsigned int \hyperlink{ADCSIM_8c_645b6ebbed09483db945587d6fbbe7a6}{ADCSIM\_\-addSyntaxLCP} (CLI\_\-Syntax $\ast$syntax)
\begin{CompactList}\small\item\em Contribute commands to the CLI syntax. \item\end{CompactList}\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
\hypertarget{ADCSIM_8c_85b77eed37c92a646484aee273edb3b7}{
static unsigned short \hyperlink{ADCSIM_8c_85b77eed37c92a646484aee273edb3b7}{pdu\_\-grp}}
\label{ADCSIM_8c_85b77eed37c92a646484aee273edb3b7}

\begin{CompactList}\small\item\em PDU environmental group register. \item\end{CompactList}\item 
\hypertarget{ADCSIM_8c_9b72e954f47a6b4049d84e1b27f09abb}{
static unsigned short \hyperlink{ADCSIM_8c_9b72e954f47a6b4049d84e1b27f09abb}{tem\_\-mux} \mbox{[}16\mbox{]}}
\label{ADCSIM_8c_9b72e954f47a6b4049d84e1b27f09abb}

\begin{CompactList}\small\item\em TEM mux registers. \item\end{CompactList}\item 
\hypertarget{ADCSIM_8c_a9ed4fd1d2bf31a695e820e82abddf2b}{
static unsigned short \hyperlink{ADCSIM_8c_a9ed4fd1d2bf31a695e820e82abddf2b}{free\_\-board}}
\label{ADCSIM_8c_a9ed4fd1d2bf31a695e820e82abddf2b}

\begin{CompactList}\small\item\em AEM free board register. \item\end{CompactList}\item 
\hypertarget{ADCSIM_8c_dfcd6f157526e74980f4767d9b71a224}{
const char $\ast$ \hyperlink{ADCSIM_8c_dfcd6f157526e74980f4767d9b71a224}{d\_\-0} = \char`\"{}\$0\char`\"{}}
\label{ADCSIM_8c_dfcd6f157526e74980f4767d9b71a224}

\begin{CompactList}\small\item\em The string \char`\"{}\$0\char`\"{}. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Routines to provide simulation of hardware ADC values. 



\subsection{Function Documentation}
\hypertarget{ADCSIM_8c_645b6ebbed09483db945587d6fbbe7a6}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-addSyntaxLCP@{ADCSIM\_\-addSyntaxLCP}}
\index{ADCSIM\_\-addSyntaxLCP@{ADCSIM\_\-addSyntaxLCP}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-addSyntaxLCP}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int ADCSIM\_\-addSyntaxLCP (CLI\_\-Syntax $\ast$ {\em syntax})}}
\label{ADCSIM_8c_645b6ebbed09483db945587d6fbbe7a6}


Contribute commands to the CLI syntax. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em syntax}]Syntax handle\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em CLI\_\-SUCCESS}]\end{description}
\end{Desc}


References ADCSIM\_\-setAemEnvData\_\-cli(), ADCSIM\_\-setAemPwrData\_\-cli(), ADCSIM\_\-setGemLrsData\_\-cli(), ADCSIM\_\-setPduEnvData\_\-cli(), ADCSIM\_\-setPduPwrData\_\-cli(), ADCSIM\_\-setSibPath\_\-cli(), ADCSIM\_\-setTemBusyData\_\-cli(), and ADCSIM\_\-setTemEnvData\_\-cli().\hypertarget{ADCSIM_8c_8ab6224ef59d9a1a422bab399b71caf4}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setAemEnvData@{ADCSIM\_\-setAemEnvData}}
\index{ADCSIM\_\-setAemEnvData@{ADCSIM\_\-setAemEnvData}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setAemEnvData}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int ADCSIM\_\-setAemEnvData (unsigned short {\em free}, \/  unsigned short {\em adc}, \/  unsigned short {\em val})}}
\label{ADCSIM_8c_8ab6224ef59d9a1a422bab399b71caf4}


Sets a value in the simulated AEM environmental register block. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em free}]FREE board ID \item[{\em adc}]Adc number \item[{\em val}]Register value \end{description}
\end{Desc}


References ADCSIM\_\-AemEnvData.

Referenced by ADCSIM\_\-setAemEnvData\_\-cli().\hypertarget{ADCSIM_8c_c6fe71fc7ac73b93b25ca490a38ba7fb}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setAemEnvData\_\-cli@{ADCSIM\_\-setAemEnvData\_\-cli}}
\index{ADCSIM\_\-setAemEnvData\_\-cli@{ADCSIM\_\-setAemEnvData\_\-cli}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setAemEnvData\_\-cli}]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int ADCSIM\_\-setAemEnvData\_\-cli (CLI\_\-Control $\ast$ {\em cli}, \/  void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_c6fe71fc7ac73b93b25ca490a38ba7fb}


Handle the verb/call. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cli}]Opaque control pointer \item[{\em prm}]User context parameter (unused)\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em CLI\_\-SUCCESS}]\end{description}
\end{Desc}


References ADCSIM\_\-setAemEnvData(), and d\_\-0.

Referenced by ADCSIM\_\-addSyntaxLCP().\hypertarget{ADCSIM_8c_5345c7041b7645d28ae2d22e8e584e10}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setAemPwrData@{ADCSIM\_\-setAemPwrData}}
\index{ADCSIM\_\-setAemPwrData@{ADCSIM\_\-setAemPwrData}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setAemPwrData}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int ADCSIM\_\-setAemPwrData (unsigned int {\em val})}}
\label{ADCSIM_8c_5345c7041b7645d28ae2d22e8e584e10}


Sets a value in the simulated AEM power status register. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em val}]Register value \end{description}
\end{Desc}


References ADCSIM\_\-AemPwrData.

Referenced by ADCSIM\_\-setAemPwrData\_\-cli().\hypertarget{ADCSIM_8c_8d1c27fd092fb66ee53b892d69a65031}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setAemPwrData\_\-cli@{ADCSIM\_\-setAemPwrData\_\-cli}}
\index{ADCSIM\_\-setAemPwrData\_\-cli@{ADCSIM\_\-setAemPwrData\_\-cli}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setAemPwrData\_\-cli}]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int ADCSIM\_\-setAemPwrData\_\-cli (CLI\_\-Control $\ast$ {\em cli}, \/  void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_8d1c27fd092fb66ee53b892d69a65031}


Handle the verb/call. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cli}]Opaque control pointer \item[{\em prm}]User context parameter (unused)\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em CLI\_\-SUCCESS}]\end{description}
\end{Desc}


References ADCSIM\_\-setAemPwrData(), and d\_\-0.

Referenced by ADCSIM\_\-addSyntaxLCP().\hypertarget{ADCSIM_8c_a3747b2f044e7fc2ba76772a37eb8561}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setGemLrsData@{ADCSIM\_\-setGemLrsData}}
\index{ADCSIM\_\-setGemLrsData@{ADCSIM\_\-setGemLrsData}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setGemLrsData}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int ADCSIM\_\-setGemLrsData (unsigned short {\em reg}, \/  unsigned short {\em val0}, \/  unsigned short {\em val1})}}
\label{ADCSIM_8c_a3747b2f044e7fc2ba76772a37eb8561}


Sets a value in the simulated GEM low-rate science register block. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em reg}]register number: 0 - 3 \item[{\em val0}]register value \item[{\em val1}]register value \end{description}
\end{Desc}


References ADCSIM\_\-GemLrsData.

Referenced by ADCSIM\_\-setGemLrsData\_\-cli().\hypertarget{ADCSIM_8c_00991633e6191d2b0dd8a0ed9e13f8d4}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setGemLrsData\_\-cli@{ADCSIM\_\-setGemLrsData\_\-cli}}
\index{ADCSIM\_\-setGemLrsData\_\-cli@{ADCSIM\_\-setGemLrsData\_\-cli}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setGemLrsData\_\-cli}]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int ADCSIM\_\-setGemLrsData\_\-cli (CLI\_\-Control $\ast$ {\em cli}, \/  void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_00991633e6191d2b0dd8a0ed9e13f8d4}


Handle the verb/call. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cli}]Opaque control pointer \item[{\em prm}]User context parameter (unused)\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em CLI\_\-SUCCESS}]\end{description}
\end{Desc}


References ADCSIM\_\-setGemLrsData(), and d\_\-0.

Referenced by ADCSIM\_\-addSyntaxLCP().\hypertarget{ADCSIM_8c_98c6baf4c0f0b43008c9ee8bf5a587d6}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setPduEnvData@{ADCSIM\_\-setPduEnvData}}
\index{ADCSIM\_\-setPduEnvData@{ADCSIM\_\-setPduEnvData}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setPduEnvData}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int ADCSIM\_\-setPduEnvData (unsigned short {\em grp}, \/  unsigned short {\em bank}, \/  unsigned short {\em adc}, \/  unsigned int {\em val})}}
\label{ADCSIM_8c_98c6baf4c0f0b43008c9ee8bf5a587d6}


Sets a value in the simulated PDU environmental register block. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em grp}]PDU group number \item[{\em bank}]Environmental register bank 0 - 2 \item[{\em adc}]Adc number \item[{\em val}]Register value \end{description}
\end{Desc}


References ADCSIM\_\-PduEnvData.

Referenced by ADCSIM\_\-setPduEnvData\_\-cli().\hypertarget{ADCSIM_8c_825c3e05979e325963fcdc0faebf9b7a}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setPduEnvData\_\-cli@{ADCSIM\_\-setPduEnvData\_\-cli}}
\index{ADCSIM\_\-setPduEnvData\_\-cli@{ADCSIM\_\-setPduEnvData\_\-cli}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setPduEnvData\_\-cli}]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int ADCSIM\_\-setPduEnvData\_\-cli (CLI\_\-Control $\ast$ {\em cli}, \/  void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_825c3e05979e325963fcdc0faebf9b7a}


Handle the verb/call. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cli}]Opaque control pointer \item[{\em prm}]User context parameter (unused)\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em CLI\_\-SUCCESS}]\end{description}
\end{Desc}


References ADCSIM\_\-setPduEnvData(), and d\_\-0.

Referenced by ADCSIM\_\-addSyntaxLCP().\hypertarget{ADCSIM_8c_7345e3ef32a1c73dc456b7dfc2d5b934}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setPduPwrData@{ADCSIM\_\-setPduPwrData}}
\index{ADCSIM\_\-setPduPwrData@{ADCSIM\_\-setPduPwrData}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setPduPwrData}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int ADCSIM\_\-setPduPwrData (unsigned short {\em reg}, \/  unsigned short {\em val})}}
\label{ADCSIM_8c_7345e3ef32a1c73dc456b7dfc2d5b934}


Sets a value in the simulated PDU power status register block. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em reg}]PDU power register number: 0 - 2 \item[{\em val}]Register value \end{description}
\end{Desc}


References ADCSIM\_\-PduPwrData.

Referenced by ADCSIM\_\-setPduPwrData\_\-cli().\hypertarget{ADCSIM_8c_16f062f6028b16c009225ffdfc333bf4}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setPduPwrData\_\-cli@{ADCSIM\_\-setPduPwrData\_\-cli}}
\index{ADCSIM\_\-setPduPwrData\_\-cli@{ADCSIM\_\-setPduPwrData\_\-cli}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setPduPwrData\_\-cli}]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int ADCSIM\_\-setPduPwrData\_\-cli (CLI\_\-Control $\ast$ {\em cli}, \/  void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_16f062f6028b16c009225ffdfc333bf4}


Handle the verb/call. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cli}]Opaque control pointer \item[{\em prm}]User context parameter (unused)\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em CLI\_\-SUCCESS}]\end{description}
\end{Desc}


References ADCSIM\_\-setPduPwrData(), and d\_\-0.

Referenced by ADCSIM\_\-addSyntaxLCP().\hypertarget{ADCSIM_8c_2383dd5d81e81372e2a8f610b966c481}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setSibPath\_\-cli@{ADCSIM\_\-setSibPath\_\-cli}}
\index{ADCSIM\_\-setSibPath\_\-cli@{ADCSIM\_\-setSibPath\_\-cli}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setSibPath\_\-cli}]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int ADCSIM\_\-setSibPath\_\-cli (CLI\_\-Control $\ast$ {\em cli}, \/  void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_2383dd5d81e81372e2a8f610b966c481}


Handle the verb/call. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cli}]Opaque control pointer \item[{\em prm}]User context parameter (unused)\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em CLI\_\-SUCCESS}]\end{description}
\end{Desc}


Referenced by ADCSIM\_\-addSyntaxLCP().\hypertarget{ADCSIM_8c_112cff8536dab13c89fc64d44032041a}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setTemBusyData@{ADCSIM\_\-setTemBusyData}}
\index{ADCSIM\_\-setTemBusyData@{ADCSIM\_\-setTemBusyData}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setTemBusyData}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int ADCSIM\_\-setTemBusyData (unsigned short {\em tem}, \/  unsigned short {\em val0}, \/  unsigned short {\em val1})}}
\label{ADCSIM_8c_112cff8536dab13c89fc64d44032041a}


Sets a value in the simulated TEM busy/dead time register block. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tem}]TEM ID \item[{\em val0}]LSB 16 bits of register value \item[{\em val1}]MSB 16 bits of register value \end{description}
\end{Desc}


References ADCSIM\_\-TemBusyData.

Referenced by ADCSIM\_\-setTemBusyData\_\-cli().\hypertarget{ADCSIM_8c_5b0d92aa04a8a3717c94d0046a727c9b}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setTemBusyData\_\-cli@{ADCSIM\_\-setTemBusyData\_\-cli}}
\index{ADCSIM\_\-setTemBusyData\_\-cli@{ADCSIM\_\-setTemBusyData\_\-cli}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setTemBusyData\_\-cli}]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int ADCSIM\_\-setTemBusyData\_\-cli (CLI\_\-Control $\ast$ {\em cli}, \/  void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_5b0d92aa04a8a3717c94d0046a727c9b}


Handle the verb/call. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cli}]Opaque control pointer \item[{\em prm}]User context parameter (unused)\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em CLI\_\-SUCCESS}]\end{description}
\end{Desc}


References ADCSIM\_\-setTemBusyData(), and d\_\-0.

Referenced by ADCSIM\_\-addSyntaxLCP().\hypertarget{ADCSIM_8c_00ead172e586c1be6cbf60f0b252126d}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setTemEnvData@{ADCSIM\_\-setTemEnvData}}
\index{ADCSIM\_\-setTemEnvData@{ADCSIM\_\-setTemEnvData}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setTemEnvData}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int ADCSIM\_\-setTemEnvData (unsigned short {\em tem}, \/  unsigned short {\em mux}, \/  unsigned short {\em adc}, \/  unsigned short {\em val})}}
\label{ADCSIM_8c_00ead172e586c1be6cbf60f0b252126d}


Sets a value in the simulated TEM environmental register block. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tem}]TEM ID \item[{\em mux}]Mux channel number \item[{\em adc}]Adc number \item[{\em val}]Register value \end{description}
\end{Desc}


References ADCSIM\_\-TemEnvData.

Referenced by ADCSIM\_\-setTemEnvData\_\-cli().\hypertarget{ADCSIM_8c_92b9b43f49bba138e95da58d809aae50}{
\index{ADCSIM.c@{ADCSIM.c}!ADCSIM\_\-setTemEnvData\_\-cli@{ADCSIM\_\-setTemEnvData\_\-cli}}
\index{ADCSIM\_\-setTemEnvData\_\-cli@{ADCSIM\_\-setTemEnvData\_\-cli}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{ADCSIM\_\-setTemEnvData\_\-cli}]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int ADCSIM\_\-setTemEnvData\_\-cli (CLI\_\-Control $\ast$ {\em cli}, \/  void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_92b9b43f49bba138e95da58d809aae50}


Handle the verb/call. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cli}]Opaque control pointer \item[{\em prm}]User context parameter (unused)\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em CLI\_\-SUCCESS}]\end{description}
\end{Desc}


References ADCSIM\_\-setTemEnvData(), and d\_\-0.

Referenced by ADCSIM\_\-addSyntaxLCP().\hypertarget{ADCSIM_8c_769c0c3100d3ca3936596c5305f373b8}{
\index{ADCSIM.c@{ADCSIM.c}!LCBD\_\-submit@{LCBD\_\-submit}}
\index{LCBD\_\-submit@{LCBD\_\-submit}!ADCSIM.c@{ADCSIM.c}}
\subsubsection[{LCBD\_\-submit}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int LCBD\_\-submit (LCBD\_\-xcb $\ast$ {\em xcb})}}
\label{ADCSIM_8c_769c0c3100d3ca3936596c5305f373b8}


Simulate execution of command list. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em xcb}]- LCB transaction ctl blk \end{description}
\end{Desc}


References ADCSIM\_\-AemEnvData, ADCSIM\_\-GemLrsData, ADCSIM\_\-PduEnvData, ADCSIM\_\-PduPwrData, ADCSIM\_\-TemBusyData, ADCSIM\_\-TemEnvData, free\_\-board, pdu\_\-grp, and tem\_\-mux.