\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`\"{}FILE/FILE\_\-path.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


Include dependency graph for ADCSIM.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=230pt]{ADCSIM_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned int \hyperlink{ADCSIM_8c_a4}{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_a5}{ADCSIM\_\-set\-Tem\-Env\-Data} (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_a6}{ADCSIM\_\-set\-Pdu\-Env\-Data} (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_a7}{ADCSIM\_\-set\-Aem\-Env\-Data} (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_a8}{ADCSIM\_\-set\-Pdu\-Pwr\-Data} (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_a9}{ADCSIM\_\-set\-Aem\-Pwr\-Data} (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_a10}{ADCSIM\_\-set\-Tem\-Busy\-Data} (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_a11}{ADCSIM\_\-set\-Gem\-Lrs\-Data} (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 
unsigned int \hyperlink{ADCSIM_8c_a12}{ADCSIM\_\-set\-Tem\-Env\-Data\_\-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_a13}{ADCSIM\_\-set\-Pdu\-Env\-Data\_\-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_a14}{ADCSIM\_\-set\-Aem\-Env\-Data\_\-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_a15}{ADCSIM\_\-set\-Pdu\-Pwr\-Data\_\-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_a16}{ADCSIM\_\-set\-Aem\-Pwr\-Data\_\-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_a17}{ADCSIM\_\-set\-Tem\-Busy\-Data\_\-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_a18}{ADCSIM\_\-set\-Gem\-Lrs\-Data\_\-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_a19}{ADCSIM\_\-set\-Sib\-Path\_\-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_a20}{ADCSIM\_\-add\-Syntax\-LCP} (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_a0}{
unsigned short \hyperlink{ADCSIM_8c_a0}{pdu\_\-grp}}
\label{ADCSIM_8c_a0}

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

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

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

\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_a20}{
\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\_\-add\-Syntax\-LCP (CLI\_\-Syntax $\ast$ {\em syntax})}}
\label{ADCSIM_8c_a20}


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}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=289pt]{ADCSIM_8c_a20_cgraph}
\end{center}
\end{figure}
\hypertarget{ADCSIM_8c_a7}{
\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\_\-set\-Aem\-Env\-Data (unsigned short {\em free}, unsigned short {\em adc}, unsigned short {\em val})}}
\label{ADCSIM_8c_a7}


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}
\hypertarget{ADCSIM_8c_a14}{
\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}unsigned int ADCSIM\_\-set\-Aem\-Env\-Data\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_a14}


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}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=199pt]{ADCSIM_8c_a14_cgraph}
\end{center}
\end{figure}
\hypertarget{ADCSIM_8c_a9}{
\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\_\-set\-Aem\-Pwr\-Data (unsigned int {\em val})}}
\label{ADCSIM_8c_a9}


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}
\hypertarget{ADCSIM_8c_a16}{
\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}unsigned int ADCSIM\_\-set\-Aem\-Pwr\-Data\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_a16}


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}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=199pt]{ADCSIM_8c_a16_cgraph}
\end{center}
\end{figure}
\hypertarget{ADCSIM_8c_a11}{
\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\_\-set\-Gem\-Lrs\-Data (unsigned short {\em reg}, unsigned short {\em val0}, unsigned short {\em val1})}}
\label{ADCSIM_8c_a11}


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}
\hypertarget{ADCSIM_8c_a18}{
\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}unsigned int ADCSIM\_\-set\-Gem\-Lrs\-Data\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_a18}


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}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=195pt]{ADCSIM_8c_a18_cgraph}
\end{center}
\end{figure}
\hypertarget{ADCSIM_8c_a6}{
\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\_\-set\-Pdu\-Env\-Data (unsigned short {\em grp}, unsigned short {\em bank}, unsigned short {\em adc}, unsigned int {\em val})}}
\label{ADCSIM_8c_a6}


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}
\hypertarget{ADCSIM_8c_a13}{
\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}unsigned int ADCSIM\_\-set\-Pdu\-Env\-Data\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_a13}


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}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=195pt]{ADCSIM_8c_a13_cgraph}
\end{center}
\end{figure}
\hypertarget{ADCSIM_8c_a8}{
\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\_\-set\-Pdu\-Pwr\-Data (unsigned short {\em reg}, unsigned short {\em val})}}
\label{ADCSIM_8c_a8}


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}
\hypertarget{ADCSIM_8c_a15}{
\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}unsigned int ADCSIM\_\-set\-Pdu\-Pwr\-Data\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_a15}


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}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=193pt]{ADCSIM_8c_a15_cgraph}
\end{center}
\end{figure}
\hypertarget{ADCSIM_8c_a19}{
\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}unsigned int ADCSIM\_\-set\-Sib\-Path\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_a19}


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}
\hypertarget{ADCSIM_8c_a10}{
\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\_\-set\-Tem\-Busy\-Data (unsigned short {\em tem}, unsigned short {\em val0}, unsigned short {\em val1})}}
\label{ADCSIM_8c_a10}


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}
\hypertarget{ADCSIM_8c_a17}{
\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}unsigned int ADCSIM\_\-set\-Tem\-Busy\-Data\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_a17}


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}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=201pt]{ADCSIM_8c_a17_cgraph}
\end{center}
\end{figure}
\hypertarget{ADCSIM_8c_a5}{
\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\_\-set\-Tem\-Env\-Data (unsigned short {\em tem}, unsigned short {\em mux}, unsigned short {\em adc}, unsigned short {\em val})}}
\label{ADCSIM_8c_a5}


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}
\hypertarget{ADCSIM_8c_a12}{
\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}unsigned int ADCSIM\_\-set\-Tem\-Env\-Data\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ADCSIM_8c_a12}


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}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=197pt]{ADCSIM_8c_a12_cgraph}
\end{center}
\end{figure}
\hypertarget{ADCSIM_8c_a4}{
\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_a4}


Simulate execution of command list. 

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