\hypertarget{QLSM_8h}{
\section{QLSM.h File Reference}
\label{QLSM_8h}\index{QLSM.h@{QLSM.h}}
}
Science defs for LSM (Lat Spacesraft Messages). 



This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=196pt]{QLSM_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
\hypertarget{QLSM_8h_a0}{
typedef \_\-LSF\_\-datagram {\bf LSF\_\-datagram}}
\label{QLSM_8h_a0}

\item 
\hypertarget{QLSM_8h_a1}{
typedef \_\-LSF\_\-contribution {\bf LSF\_\-contribution}}
\label{QLSM_8h_a1}

\item 
\hypertarget{QLSM_8h_a2}{
typedef \_\-LSF\_\-contribution\_\-hdr {\bf LSF\_\-contribution\_\-hdr}}
\label{QLSM_8h_a2}

\item 
\hypertarget{QLSM_8h_a3}{
typedef \_\-QLSM\_\-anc \hyperlink{QLSM_8h_a3}{QLSM\_\-anc}}
\label{QLSM_8h_a3}

\begin{CompactList}\small\item\em Pointer to buff used by QLSM\_\-anc\-Xxxx(), size determined by QLSM\_\-sizeof(). \item\end{CompactList}\item 
\hypertarget{QLSM_8h_a4}{
typedef \_\-QLSM\_\-att \hyperlink{QLSM_8h_a4}{QLSM\_\-att}}
\label{QLSM_8h_a4}

\begin{CompactList}\small\item\em Pointer to buff used by QLSM\_\-att\-Xxxx(), size determined by QLSM\_\-sizeof(). \item\end{CompactList}\item 
\hypertarget{QLSM_8h_a5}{
typedef \_\-QLSM\_\-tt \hyperlink{QLSM_8h_a5}{QLSM\_\-tt}}
\label{QLSM_8h_a5}

\begin{CompactList}\small\item\em Pointer to buff used by QLSM\_\-tt\-Xxxx(), size determined by QLSM\_\-sizeof(). \item\end{CompactList}\end{CompactItemize}
\subsection*{Enumerations}
\begin{CompactItemize}
\item 
enum \hyperlink{QLSM_8h_a42}{QLSM\_\-TYPEID} \{ \par
\hyperlink{QLSM_8h_a42a6}{QLSM\_\-TYPEID\_\-UNKNOWN} =  -1, 
\par
\hyperlink{QLSM_8h_a42a7}{QLSM\_\-TYPEID\_\-ATT} =  1, 
\par
\hyperlink{QLSM_8h_a42a8}{QLSM\_\-TYPEID\_\-ANC} =  2, 
\par
\hyperlink{QLSM_8h_a42a9}{QLSM\_\-TYPEID\_\-TT} =  3
 \}
\begin{CompactList}\small\item\em type\_\-id used in LSF contributor for QLSM, also returned from QLSM\_\-typeof() \item\end{CompactList}\item 
enum \hyperlink{QLSM_8h_a43}{QLSM\_\-STATUS} \{ \par
\hyperlink{QLSM_8h_a43a10}{QLSM\_\-OK} =  0, 
\par
\hyperlink{QLSM_8h_a43a11}{QLSM\_\-ERR\_\-UNKNOWN\_\-DG\_\-TYPEID} =  -2, 
\par
\hyperlink{QLSM_8h_a43a12}{QLSM\_\-ERR\_\-UNKNOWN\_\-DG\_\-VER} =  -3, 
\par
\hyperlink{QLSM_8h_a43a13}{QLSM\_\-ERR\_\-UNKNOWN\_\-CTB\_\-VER} =  -4, 
\par
\hyperlink{QLSM_8h_a43a14}{QLSM\_\-ERR\_\-BAD\_\-CTB\_\-LEN32} =  -5, 
\par
\hyperlink{QLSM_8h_a43a15}{QLSM\_\-ERR\_\-UNKNOWN\_\-CTB\_\-TYPEID} =  -6, 
\par
\hyperlink{QLSM_8h_a43a16}{QLSM\_\-ERR\_\-WRONG\_\-TYPEID} =  -7
 \}
\begin{CompactList}\small\item\em QLSM errors returned by QLSM\_\-xxx\-Expand. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hypertarget{QLSM_8h_a17}{
unsigned int {\bf QLSM\_\-sizeof} ()}
\label{QLSM_8h_a17}

\item 
\hypertarget{QLSM_8h_a18}{
\hyperlink{QLSM_8h_a42}{QLSM\_\-TYPEID} {\bf QLSM\_\-typeof} (const LSF\_\-contribution $\ast$ctb)}
\label{QLSM_8h_a18}

\item 
\hypertarget{QLSM_8h_a19}{
\hyperlink{QLSM_8h_a43}{QLSM\_\-STATUS} {\bf QLSM\_\-anc\-Expand} (\hyperlink{QLSM_8h_a3}{QLSM\_\-anc} $\ast$anc, const LSF\_\-contribution $\ast$ctb)}
\label{QLSM_8h_a19}

\item 
\hypertarget{QLSM_8h_a20}{
\hyperlink{QLSM_8h_a43}{QLSM\_\-STATUS} {\bf QLSM\_\-att\-Expand} (\hyperlink{QLSM_8h_a4}{QLSM\_\-att} $\ast$att, const LSF\_\-contribution $\ast$ctb)}
\label{QLSM_8h_a20}

\item 
\hypertarget{QLSM_8h_a21}{
\hyperlink{QLSM_8h_a43}{QLSM\_\-STATUS} {\bf QLSM\_\-tt\-Expand} (\hyperlink{QLSM_8h_a5}{QLSM\_\-tt} $\ast$tt\-Ptr, const LSF\_\-contribution $\ast$ctb)}
\label{QLSM_8h_a21}

\item 
\hypertarget{QLSM_8h_a22}{
LSF\_\-contribution\_\-hdr $\ast$ {\bf QLSM\_\-swap\-Ctb\-Hdr} (LSF\_\-contribution\_\-hdr $\ast$ctb\-Dsc, const LSF\_\-contribution $\ast$ctb\-Src)}
\label{QLSM_8h_a22}

\item 
\hypertarget{QLSM_8h_a23}{
const char $\ast$ {\bf QLSM\_\-err\-To\-Str} (\hyperlink{QLSM_8h_a43}{QLSM\_\-STATUS} status)}
\label{QLSM_8h_a23}

\item 
\hypertarget{QLSM_8h_a24}{
unsigned int {\bf QLSM\_\-anc\-Get\-Sec} (const \hyperlink{QLSM_8h_a3}{QLSM\_\-anc} $\ast$anc)}
\label{QLSM_8h_a24}

\item 
\hypertarget{QLSM_8h_a25}{
unsigned int {\bf QLSM\_\-anc\-Get\-Sub} (const \hyperlink{QLSM_8h_a3}{QLSM\_\-anc} $\ast$anc)}
\label{QLSM_8h_a25}

\item 
\hypertarget{QLSM_8h_a26}{
const float $\ast$ {\bf QLSM\_\-anc\-Get\-Pos} (const \hyperlink{QLSM_8h_a3}{QLSM\_\-anc} $\ast$anc)}
\label{QLSM_8h_a26}

\item 
\hypertarget{QLSM_8h_a27}{
const float $\ast$ {\bf QLSM\_\-anc\-Get\-Vel} (const \hyperlink{QLSM_8h_a3}{QLSM\_\-anc} $\ast$anc)}
\label{QLSM_8h_a27}

\item 
\hypertarget{QLSM_8h_a28}{
unsigned int {\bf QLSM\_\-anc\-Get\-Mode} (const \hyperlink{QLSM_8h_a3}{QLSM\_\-anc} $\ast$anc)}
\label{QLSM_8h_a28}

\item 
\hypertarget{QLSM_8h_a29}{
unsigned int {\bf QLSM\_\-anc\-Get\-Ssr} (const \hyperlink{QLSM_8h_a3}{QLSM\_\-anc} $\ast$anc)}
\label{QLSM_8h_a29}

\item 
\hypertarget{QLSM_8h_a30}{
unsigned int {\bf QLSM\_\-anc\-Get\-Flags} (const \hyperlink{QLSM_8h_a3}{QLSM\_\-anc} $\ast$anc)}
\label{QLSM_8h_a30}

\item 
\hypertarget{QLSM_8h_a31}{
void {\bf QLSM\_\-anc\-Print} (const \hyperlink{QLSM_8h_a3}{QLSM\_\-anc} $\ast$anc)}
\label{QLSM_8h_a31}

\item 
\hypertarget{QLSM_8h_a32}{
unsigned int {\bf QLSM\_\-att\-Get\-Sec} (const \hyperlink{QLSM_8h_a4}{QLSM\_\-att} $\ast$att)}
\label{QLSM_8h_a32}

\item 
\hypertarget{QLSM_8h_a33}{
unsigned int {\bf QLSM\_\-att\-Get\-Sub} (const \hyperlink{QLSM_8h_a4}{QLSM\_\-att} $\ast$att)}
\label{QLSM_8h_a33}

\item 
\hypertarget{QLSM_8h_a34}{
const double $\ast$ {\bf QLSM\_\-att\-Get\-Quat} (const \hyperlink{QLSM_8h_a4}{QLSM\_\-att} $\ast$att)}
\label{QLSM_8h_a34}

\item 
\hypertarget{QLSM_8h_a35}{
const float $\ast$ {\bf QLSM\_\-att\-Get\-Avel} (const \hyperlink{QLSM_8h_a4}{QLSM\_\-att} $\ast$att)}
\label{QLSM_8h_a35}

\item 
\hypertarget{QLSM_8h_a36}{
void {\bf QLSM\_\-att\-Print} (const \hyperlink{QLSM_8h_a4}{QLSM\_\-att} $\ast$att)}
\label{QLSM_8h_a36}

\item 
\hypertarget{QLSM_8h_a37}{
unsigned int {\bf QLSM\_\-tt\-Get\-Timetone} (const \hyperlink{QLSM_8h_a5}{QLSM\_\-tt} $\ast$tt)}
\label{QLSM_8h_a37}

\item 
\hypertarget{QLSM_8h_a38}{
unsigned int {\bf QLSM\_\-tt\-Get\-Flags} (const \hyperlink{QLSM_8h_a5}{QLSM\_\-tt} $\ast$tt)}
\label{QLSM_8h_a38}

\item 
\hypertarget{QLSM_8h_a39}{
void {\bf QLSM\_\-tt\-Print} (const \hyperlink{QLSM_8h_a5}{QLSM\_\-tt} $\ast$tt)}
\label{QLSM_8h_a39}

\item 
\hypertarget{QLSM_8h_a40}{
\hyperlink{QLSM_8h_a43}{QLSM\_\-STATUS} {\bf QLSM\_\-print\-Datagram} (const LSF\_\-datagram $\ast$dgm)}
\label{QLSM_8h_a40}

\item 
\hypertarget{QLSM_8h_a41}{
\hyperlink{QLSM_8h_a43}{QLSM\_\-STATUS} {\bf QLSM\_\-print\-Ctb} (const LSF\_\-contribution $\ast$ctb)}
\label{QLSM_8h_a41}

\end{CompactItemize}


\subsection{Detailed Description}
Science defs for LSM (Lat Spacesraft Messages). 

\begin{Desc}
\item[Author:]Ed Bacho -- \href{mailto:ebacho@slac.stanford.edu}{\tt ebacho@slac.stanford.edu} 

JJRussell -- \href{mailto:russell@slac.stanford.edu}{\tt russell@slac.stanford.edu}\end{Desc}
This module handles the definitions of structures that are output as science data for the LSM package over the SSR.



\footnotesize\begin{verbatim}   CVS $Id: QLSM.h,v 1.7 2008/09/20 00:46:31 russell Exp $
  \end{verbatim}
\normalsize


\subsection{Enumeration Type Documentation}
\hypertarget{QLSM_8h_a43}{
\index{QLSM.h@{QLSM.h}!QLSM_STATUS@{QLSM\_\-STATUS}}
\index{QLSM_STATUS@{QLSM\_\-STATUS}!QLSM.h@{QLSM.h}}
\subsubsection[QLSM\_\-STATUS]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{QLSM_8h_a43}{QLSM\_\-STATUS}}}
\label{QLSM_8h_a43}


QLSM errors returned by QLSM\_\-xxx\-Expand. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{QLSM_OK@{QLSM\_\-OK}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_OK@{QLSM\_\-OK}}\item[{\em 
\hypertarget{QLSM_8h_a43a10}{
QLSM\_\-OK}
\label{QLSM_8h_a43a10}
}]Success \index{QLSM_ERR_UNKNOWN_DG_TYPEID@{QLSM\_\-ERR\_\-UNKNOWN\_\-DG\_\-TYPEID}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_ERR_UNKNOWN_DG_TYPEID@{QLSM\_\-ERR\_\-UNKNOWN\_\-DG\_\-TYPEID}}\item[{\em 
\hypertarget{QLSM_8h_a43a11}{
QLSM\_\-ERR\_\-UNKNOWN\_\-DG\_\-TYPEID}
\label{QLSM_8h_a43a11}
}]LSF datagram header has typeid which is not in LSF/LSF\_\-ids.h \index{QLSM_ERR_UNKNOWN_DG_VER@{QLSM\_\-ERR\_\-UNKNOWN\_\-DG\_\-VER}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_ERR_UNKNOWN_DG_VER@{QLSM\_\-ERR\_\-UNKNOWN\_\-DG\_\-VER}}\item[{\em 
\hypertarget{QLSM_8h_a43a12}{
QLSM\_\-ERR\_\-UNKNOWN\_\-DG\_\-VER}
\label{QLSM_8h_a43a12}
}]LSF datagram header has an unknown version number \index{QLSM_ERR_UNKNOWN_CTB_VER@{QLSM\_\-ERR\_\-UNKNOWN\_\-CTB\_\-VER}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_ERR_UNKNOWN_CTB_VER@{QLSM\_\-ERR\_\-UNKNOWN\_\-CTB\_\-VER}}\item[{\em 
\hypertarget{QLSM_8h_a43a13}{
QLSM\_\-ERR\_\-UNKNOWN\_\-CTB\_\-VER}
\label{QLSM_8h_a43a13}
}]LSF contributor header has unknown version number \index{QLSM_ERR_BAD_CTB_LEN32@{QLSM\_\-ERR\_\-BAD\_\-CTB\_\-LEN32}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_ERR_BAD_CTB_LEN32@{QLSM\_\-ERR\_\-BAD\_\-CTB\_\-LEN32}}\item[{\em 
\hypertarget{QLSM_8h_a43a14}{
QLSM\_\-ERR\_\-BAD\_\-CTB\_\-LEN32}
\label{QLSM_8h_a43a14}
}]LSF contributor has an incorrect length for the packet \index{QLSM_ERR_UNKNOWN_CTB_TYPEID@{QLSM\_\-ERR\_\-UNKNOWN\_\-CTB\_\-TYPEID}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_ERR_UNKNOWN_CTB_TYPEID@{QLSM\_\-ERR\_\-UNKNOWN\_\-CTB\_\-TYPEID}}\item[{\em 
\hypertarget{QLSM_8h_a43a15}{
QLSM\_\-ERR\_\-UNKNOWN\_\-CTB\_\-TYPEID}
\label{QLSM_8h_a43a15}
}]LSF contributor header has typeid which is not in QLSM\_\-TYPEID \index{QLSM_ERR_WRONG_TYPEID@{QLSM\_\-ERR\_\-WRONG\_\-TYPEID}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_ERR_WRONG_TYPEID@{QLSM\_\-ERR\_\-WRONG\_\-TYPEID}}\item[{\em 
\hypertarget{QLSM_8h_a43a16}{
QLSM\_\-ERR\_\-WRONG\_\-TYPEID}
\label{QLSM_8h_a43a16}
}]Typeid of data does not match the QLSM\_\-xxx\-Get\-Xxx \end{description}
\end{Desc}

\hypertarget{QLSM_8h_a42}{
\index{QLSM.h@{QLSM.h}!QLSM_TYPEID@{QLSM\_\-TYPEID}}
\index{QLSM_TYPEID@{QLSM\_\-TYPEID}!QLSM.h@{QLSM.h}}
\subsubsection[QLSM\_\-TYPEID]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{QLSM_8h_a42}{QLSM\_\-TYPEID}}}
\label{QLSM_8h_a42}


type\_\-id used in LSF contributor for QLSM, also returned from QLSM\_\-typeof() 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{QLSM_TYPEID_UNKNOWN@{QLSM\_\-TYPEID\_\-UNKNOWN}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_TYPEID_UNKNOWN@{QLSM\_\-TYPEID\_\-UNKNOWN}}\item[{\em 
\hypertarget{QLSM_8h_a42a6}{
QLSM\_\-TYPEID\_\-UNKNOWN}
\label{QLSM_8h_a42a6}
}]Unknown type \index{QLSM_TYPEID_ATT@{QLSM\_\-TYPEID\_\-ATT}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_TYPEID_ATT@{QLSM\_\-TYPEID\_\-ATT}}\item[{\em 
\hypertarget{QLSM_8h_a42a7}{
QLSM\_\-TYPEID\_\-ATT}
\label{QLSM_8h_a42a7}
}]Attitude record \index{QLSM_TYPEID_ANC@{QLSM\_\-TYPEID\_\-ANC}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_TYPEID_ANC@{QLSM\_\-TYPEID\_\-ANC}}\item[{\em 
\hypertarget{QLSM_8h_a42a8}{
QLSM\_\-TYPEID\_\-ANC}
\label{QLSM_8h_a42a8}
}]Ancillary record \index{QLSM_TYPEID_TT@{QLSM\_\-TYPEID\_\-TT}!QLSM.h@{QLSM.h}}\index{QLSM.h@{QLSM.h}!QLSM_TYPEID_TT@{QLSM\_\-TYPEID\_\-TT}}\item[{\em 
\hypertarget{QLSM_8h_a42a9}{
QLSM\_\-TYPEID\_\-TT}
\label{QLSM_8h_a42a9}
}]Timetone record \end{description}
\end{Desc}

