\hypertarget{TREC_c}{
\section{TREC.c File Reference}
\label{TREC_c}\index{TREC_c@{TREC\_\-c}}
}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{TREC_c_a3}{main} (int argc, char$\ast$$\ast$ argv)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
int \hyperlink{TREC_c_a0}{TREC\_\-telem\-Sock}
\item 
FILE$\ast$ \hyperlink{TREC_c_a1}{TREC\_\-telem\-File}
\item 
unsigned char \hyperlink{TREC_c_a2}{TREC\_\-telem\-Pkt} \mbox{[}CCSDS\_\-BFEM\_\-PKT\_\-MAX\_\-SIZE\mbox{]}
\end{CompactItemize}


\subsection{Detailed Description}




\subsection{Function Documentation}
\hypertarget{TREC_c_a3}{
\index{TREC.c@{TREC.c}!main@{main}}
\index{main@{main}!TREC.c@{TREC.c}}
\subsubsection[main]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, char $\ast$$\ast$ {\em argv})}}
\label{TREC_c_a3}


After initializing resources, the main application function listens for incomming telemetry packets on \hyperlink{TREC_c_a0}{TREC\_\-telem\-Sock}. The packet data is written to the \hyperlink{TREC_c_a1}{TREC\_\-telem\-File} output file.\begin{Desc}
\item[{\bf Parameters: }]\par
\begin{description}
\item[
{\em argc}] The number of command line arguments. \item[
{\em argv}] Pointers to the command line arguments. \end{description}
\end{Desc}


\subsection{Variable Documentation}
\hypertarget{TREC_c_a1}{
\index{TREC.c@{TREC.c}!TREC_telemFile@{TREC\_\-telemFile}}
\index{TREC_telemFile@{TREC\_\-telemFile}!TREC.c@{TREC.c}}
\subsubsection[TREC_telemFile]{\setlength{\rightskip}{0pt plus 5cm}FILE $\ast$ TREC\_\-telem\-File\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{TREC_c_a1}


The file descriptor for the telemetry output file. \hypertarget{TREC_c_a2}{
\index{TREC.c@{TREC.c}!TREC_telemPkt@{TREC\_\-telemPkt}}
\index{TREC_telemPkt@{TREC\_\-telemPkt}!TREC.c@{TREC.c}}
\subsubsection[TREC_telemPkt]{\setlength{\rightskip}{0pt plus 5cm}unsigned char TREC\_\-telem\-Pkt\mbox{[}CCSDS\_\-BFEM\_\-PKT\_\-MAX\_\-SIZE\mbox{]}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{TREC_c_a2}


A buffer to hold the current telemetry packet. \hypertarget{TREC_c_a0}{
\index{TREC.c@{TREC.c}!TREC_telemSock@{TREC\_\-telemSock}}
\index{TREC_telemSock@{TREC\_\-telemSock}!TREC.c@{TREC.c}}
\subsubsection[TREC_telemSock]{\setlength{\rightskip}{0pt plus 5cm}int TREC\_\-telem\-Sock\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{TREC_c_a0}


A UDP/IP socket for receiving telemetry packets. 