\hypertarget{SIU_8c}{
\section{SIU.c File Reference}
\label{SIU_8c}\index{SIU.c@{SIU.c}}
}
An interactive SIU control program. 

{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include \char`\"{}CDM/CDM\_\-pubdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}CLI/CLI\_\-pubdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}PBC/PBC\_\-lcpside.h\char`\"{}}\par
{\tt \#include \char`\"{}LCM/LCM\_\-lcpside.h\char`\"{}}\par
{\tt \#include \char`\"{}LSM/LSM\_\-lcpside.h\char`\"{}}\par
{\tt \#include \char`\"{}LHK/LHK\_\-lcbsim.h\char`\"{}}\par
{\tt \#include \char`\"{}LCP/SIU\_\-pubdefs.h\char`\"{}}\par


Include dependency graph for SIU.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=125pt]{SIU_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
static unsigned int \hyperlink{SIU_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{SIU_8c_a2}{SIU\_\-add\-Syntax\-Base} (CLI\_\-Syntax $\ast$syntax)
\begin{CompactList}\small\item\em Contribute SIU\_\-init/SIU\_\-exit commands to the CLI syntax. \item\end{CompactList}\item 
static unsigned int \hyperlink{SIU_8c_a3}{SIU\_\-exit\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call SIU\_\-exit. \item\end{CompactList}\item 
static unsigned int \hyperlink{SIU_8c_a4}{SIU\_\-init\_\-cli} (CLI\_\-Control $\ast$cli, void $\ast$prm)
\begin{CompactList}\small\item\em Handle the verb/call SIU\_\-init. \item\end{CompactList}\item 
int \hyperlink{SIU_8c_a5}{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{SIU_8c_a0}{
const char $\ast$ \hyperlink{SIU_8c_a0}{d\_\-0} = \char`\"{}\$0\char`\"{}}
\label{SIU_8c_a0}

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


\subsection{Detailed Description}
An interactive SIU control program. 



\footnotesize\begin{verbatim}CVS $Id: SIU.c,v 1.1 2005/07/27 23:59:45 apw Exp $
\end{verbatim}
\normalsize
 \begin{Desc}
\item[Author:]A.P.Waite\end{Desc}


\subsection{Function Documentation}
\hypertarget{SIU_8c_a1}{
\index{SIU.c@{SIU.c}!exit_cli@{exit\_\-cli}}
\index{exit_cli@{exit\_\-cli}!SIU.c@{SIU.c}}
\subsubsection[exit\_\-cli]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int exit\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{SIU_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{SIU_8c_a5}{
\index{SIU.c@{SIU.c}!main@{main}}
\index{main@{main}!SIU.c@{SIU.c}}
\subsubsection[main]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, char $\ast$$\ast$ {\em argv})}}
\label{SIU_8c_a5}


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}
\hypertarget{SIU_8c_a2}{
\index{SIU.c@{SIU.c}!SIU_addSyntaxBase@{SIU\_\-addSyntaxBase}}
\index{SIU_addSyntaxBase@{SIU\_\-addSyntaxBase}!SIU.c@{SIU.c}}
\subsubsection[SIU\_\-addSyntaxBase]{\setlength{\rightskip}{0pt plus 5cm}unsigned int SIU\_\-add\-Syntax\-Base (CLI\_\-Syntax $\ast$ {\em syntax})}}
\label{SIU_8c_a2}


Contribute SIU\_\-init/SIU\_\-exit 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}
\hypertarget{SIU_8c_a3}{
\index{SIU.c@{SIU.c}!SIU_exit_cli@{SIU\_\-exit\_\-cli}}
\index{SIU_exit_cli@{SIU\_\-exit\_\-cli}!SIU.c@{SIU.c}}
\subsubsection[SIU\_\-exit\_\-cli]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int SIU\_\-exit\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{SIU_8c_a3}


Handle the verb/call SIU\_\-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{SIU_8c_a4}{
\index{SIU.c@{SIU.c}!SIU_init_cli@{SIU\_\-init\_\-cli}}
\index{SIU_init_cli@{SIU\_\-init\_\-cli}!SIU.c@{SIU.c}}
\subsubsection[SIU\_\-init\_\-cli]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int SIU\_\-init\_\-cli (CLI\_\-Control $\ast$ {\em cli}, void $\ast$ {\em prm})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{SIU_8c_a4}


Handle the verb/call SIU\_\-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}
