\hypertarget{VscSim_8c}{
\section{Vsc\-Sim.c File Reference}
\label{VscSim_8c}\index{VscSim.c@{VscSim.c}}
}
A spacecraft control program.  


{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include \char`\"{}CLI/CLI\_\-pubdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}SES/SES\_\-scpside.h\char`\"{}}\par
{\tt \#include \char`\"{}Vsc\-Sim\_\-pubdefs.h\char`\"{}}\par


Include dependency graph for Vsc\-Sim.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=250pt]{VscSim_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned int \hyperlink{VscSim_8c_a1}{exit\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call exit. \item\end{CompactList}\item 
unsigned int \hyperlink{VscSim_8c_a2}{Vsc\-Sim\_\-add\-Syntax\-Base} (CLI\_\-Syntax $\ast$syntax)
\begin{CompactList}\small\item\em Contribute basic syntax to CLI. \item\end{CompactList}\item 
unsigned int \hyperlink{VscSim_8c_a3}{Vsc\-Sim\_\-exit\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call Vsc\-Sim\_\-exit. \item\end{CompactList}\item 
unsigned int \hyperlink{VscSim_8c_a4}{Vsc\-Sim\_\-init\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call Vsc\-Sim\_\-init. \item\end{CompactList}\item 
unsigned int \hyperlink{VscSim_8c_a5}{Vsc\-Sim\_\-set\-Alert\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call Vsc\-Sim\_\-set\-Alert. \item\end{CompactList}\item 
unsigned int \hyperlink{VscSim_8c_a6}{Vsc\-Sim\_\-set\-Diagnostic\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call Vsc\-Sim\_\-set\-Diagnostic. \item\end{CompactList}\item 
unsigned int \hyperlink{VscSim_8c_a7}{Vsc\-Sim\_\-set\-Housekeeping\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call Vsc\-Sim\_\-set\-Housekeeping. \item\end{CompactList}\item 
int \hyperlink{VscSim_8c_a8}{main} (int argc, char $\ast$$\ast$argv)
\begin{CompactList}\small\item\em Main routine to set up the instance of a spacecraft. \item\end{CompactList}\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
\hypertarget{VscSim_8c_a0}{
const char $\ast$ \hyperlink{VscSim_8c_a0}{d\_\-0} = \char`\"{}\$0\char`\"{}}
\label{VscSim_8c_a0}

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


\subsection{Detailed Description}
A spacecraft control program. 



\footnotesize\begin{verbatim}
CVS $Id: VscSim.c,v 1.3 2005/04/12 22:14:15 smaldona Exp $
\end{verbatim}\normalsize
\begin{Desc}
\item[Author:]D.L.Wood 

A.P.Waite\end{Desc}
Derived from original work by Dan Wood

\subsection{Function Documentation}
\hypertarget{VscSim_8c_a1}{
\index{VscSim.c@{Vsc\-Sim.c}!exit_cli@{exit\_\-cli}}
\index{exit_cli@{exit\_\-cli}!VscSim.c@{Vsc\-Sim.c}}
\subsubsection[exit\_\-cli]{\setlength{\rightskip}{0pt plus 5cm}unsigned int exit\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{VscSim_8c_a1}


Handle the verb/call exit. 

\begin{Desc}
\item[Warning:]Exit is unconditional. \end{Desc}
\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\_\-ENDOFCMD}]\end{description}
\end{Desc}
\hypertarget{VscSim_8c_a8}{
\index{VscSim.c@{Vsc\-Sim.c}!main@{main}}
\index{main@{main}!VscSim.c@{Vsc\-Sim.c}}
\subsubsection[main]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, char $\ast$$\ast$ {\em argv})}}
\label{VscSim_8c_a8}


Main routine to set up the instance of a spacecraft. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em argc}]Argument count \item[{\em argv}]Pointers to argument strings\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em 0}]Success \item[{\em -1}]Failure \end{description}
\end{Desc}


Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=223pt]{VscSim_8c_a8_cgraph}
\end{center}
\end{figure}
\hypertarget{VscSim_8c_a2}{
\index{VscSim.c@{Vsc\-Sim.c}!VscSim_addSyntaxBase@{VscSim\_\-addSyntaxBase}}
\index{VscSim_addSyntaxBase@{VscSim\_\-addSyntaxBase}!VscSim.c@{Vsc\-Sim.c}}
\subsubsection[VscSim\_\-addSyntaxBase]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Vsc\-Sim\_\-add\-Syntax\-Base (CLI\_\-Syntax $\ast$ {\em syntax})}}
\label{VscSim_8c_a2}


Contribute basic syntax to CLI. 

\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=187pt]{VscSim_8c_a2_cgraph}
\end{center}
\end{figure}
\hypertarget{VscSim_8c_a3}{
\index{VscSim.c@{Vsc\-Sim.c}!VscSim_exit_cli@{VscSim\_\-exit\_\-cli}}
\index{VscSim_exit_cli@{VscSim\_\-exit\_\-cli}!VscSim.c@{Vsc\-Sim.c}}
\subsubsection[VscSim\_\-exit\_\-cli]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Vsc\-Sim\_\-exit\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{VscSim_8c_a3}


Handle the verb/call Vsc\-Sim\_\-exit. 

\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{VscSim_8c_a4}{
\index{VscSim.c@{Vsc\-Sim.c}!VscSim_init_cli@{VscSim\_\-init\_\-cli}}
\index{VscSim_init_cli@{VscSim\_\-init\_\-cli}!VscSim.c@{Vsc\-Sim.c}}
\subsubsection[VscSim\_\-init\_\-cli]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Vsc\-Sim\_\-init\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{VscSim_8c_a4}


Handle the verb/call Vsc\-Sim\_\-init. 

\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{VscSim_8c_a5}{
\index{VscSim.c@{Vsc\-Sim.c}!VscSim_setAlert_cli@{VscSim\_\-setAlert\_\-cli}}
\index{VscSim_setAlert_cli@{VscSim\_\-setAlert\_\-cli}!VscSim.c@{Vsc\-Sim.c}}
\subsubsection[VscSim\_\-setAlert\_\-cli]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Vsc\-Sim\_\-set\-Alert\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{VscSim_8c_a5}


Handle the verb/call Vsc\-Sim\_\-set\-Alert. 

\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{VscSim_8c_a6}{
\index{VscSim.c@{Vsc\-Sim.c}!VscSim_setDiagnostic_cli@{VscSim\_\-setDiagnostic\_\-cli}}
\index{VscSim_setDiagnostic_cli@{VscSim\_\-setDiagnostic\_\-cli}!VscSim.c@{Vsc\-Sim.c}}
\subsubsection[VscSim\_\-setDiagnostic\_\-cli]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Vsc\-Sim\_\-set\-Diagnostic\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{VscSim_8c_a6}


Handle the verb/call Vsc\-Sim\_\-set\-Diagnostic. 

\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{VscSim_8c_a7}{
\index{VscSim.c@{Vsc\-Sim.c}!VscSim_setHousekeeping_cli@{VscSim\_\-setHousekeeping\_\-cli}}
\index{VscSim_setHousekeeping_cli@{VscSim\_\-setHousekeeping\_\-cli}!VscSim.c@{Vsc\-Sim.c}}
\subsubsection[VscSim\_\-setHousekeeping\_\-cli]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Vsc\-Sim\_\-set\-Housekeeping\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{VscSim_8c_a7}


Handle the verb/call Vsc\-Sim\_\-set\-Housekeeping. 

\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}
