\hypertarget{ltcPrivate_8h}{
\section{ltc\-Private.h File Reference}
\label{ltcPrivate_8h}\index{ltcPrivate.h@{ltcPrivate.h}}
}
Private definitions for thermal control package. 

{\tt \#include \char`\"{}PBS/RW.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/WUT.h\char`\"{}}\par
{\tt \#include \char`\"{}LCBD/LCBD\_\-cr.h\char`\"{}}\par
{\tt \#include \char`\"{}LCBD/LCBD\_\-rst.h\char`\"{}}\par
{\tt \#include \char`\"{}LEM/defs.h\char`\"{}}\par
{\tt \#include \char`\"{}LEM/encode\_\-structs.h\char`\"{}}\par
{\tt \#include \char`\"{}LEM/decode\_\-structs.h\char`\"{}}\par
{\tt \#include \char`\"{}MSG/MSG\_\-pubdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}IMM/RBM\_\-pubdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}IMM/FPM\_\-pubdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}ITC/ITC\_\-pubdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}LTC\_\-DB/LTC\_\-DB\_\-schema.h\char`\"{}}\par
{\tt \#include \char`\"{}LTC/ltc.h\char`\"{}}\par
{\tt \#include \char`\"{}LTC/LTC\_\-tlmdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}LTC/LTC\_\-cmddefs.h\char`\"{}}\par


Include dependency graph for ltc\-Private.h:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=298pt]{ltcPrivate_8h__incl}
\end{center}
\end{figure}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=116pt]{ltcPrivate_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{CompactItemize}
\item 
struct \hyperlink{structLTC__FileDef}{LTC\_\-File\-Def}
\begin{CompactList}\small\item\em Definition record for file. \item\end{CompactList}\item 
struct \hyperlink{structLTC__BinFileHeader}{LTC\_\-Bin\-File\-Header}
\begin{CompactList}\small\item\em Binary file header for LTC input files. \item\end{CompactList}\item 
struct \hyperlink{structLTC__Cntrl}{LTC\_\-Cntrl}
\begin{CompactList}\small\item\em Control algorithm heater \char`\"{}on/off\char`\"{} and history bit masks. \item\end{CompactList}\item 
struct \hyperlink{structLTC__Sensor}{LTC\_\-Sensor}
\begin{CompactList}\small\item\em Temperature sensor counts read per cycle. \item\end{CompactList}\item 
struct \hyperlink{structLTC__FltDf}{LTC\_\-Flt\-Df}
\begin{CompactList}\small\item\em Data defining temperature smoothing filter. \item\end{CompactList}\item 
struct \hyperlink{structLTC__Filter}{LTC\_\-Filter}
\begin{CompactList}\small\item\em Data for smoothing filter. \item\end{CompactList}\item 
struct \hyperlink{structLTC__FilterDefFile}{LTC\_\-Filter\-Def\-File}
\begin{CompactList}\small\item\em Storage for LTC filter definition values. \item\end{CompactList}\item 
struct \hyperlink{structLTC__TempConvertFile}{LTC\_\-Temp\-Convert\-File}
\begin{CompactList}\small\item\em Storage for LTC ADC/temperature conversion lookup table. \item\end{CompactList}\item 
struct \hyperlink{structLTC__Temperature}{LTC\_\-Temperature}
\begin{CompactList}\small\item\em Heat pipe (VCHP) temperatures. \item\end{CompactList}\item 
union \hyperlink{unionLTC__SnsrDef}{LTC\_\-Snsr\-Def}
\begin{CompactList}\small\item\em Sensor definition (connected heat pipe and sensor type). \item\end{CompactList}\item 
struct \hyperlink{structLTC__SnsrDef_1_1LTC__SnsrDef__BitField}{LTC\_\-Snsr\-Def::LTC\_\-Snsr\-Def\_\-Bit\-Field}
\begin{CompactList}\small\item\em Sensor definition bit field.. \item\end{CompactList}\item 
struct \hyperlink{structLTC__Options}{LTC\_\-Options}
\begin{CompactList}\small\item\em HP processing options, sensor and sel bits. \item\end{CompactList}\item 
struct \hyperlink{structLTC__HeatPipe}{LTC\_\-Heat\-Pipe}
\begin{CompactList}\small\item\em All data associated with a heat pipe (VCHP). \item\end{CompactList}\item 
struct \hyperlink{structLTC__HpConfigRec}{LTC\_\-Hp\-Config\-Rec}
\begin{CompactList}\small\item\em Configuration data for a single heat pipe. \item\end{CompactList}\item 
struct \hyperlink{structLTC__HpConfigFile}{LTC\_\-Hp\-Config\-File}
\begin{CompactList}\small\item\em Storage for heat pipe configuration data read from file. \item\end{CompactList}\item 
struct \hyperlink{structLTC__FileOfFiles}{LTC\_\-File\-Of\-Files}
\begin{CompactList}\small\item\em Storage for LTC master FMX file of files pointing to all of the other LTC configuration files. \item\end{CompactList}\item 
struct \hyperlink{struct__LTC__cl}{\_\-LTC\_\-cl}
\begin{CompactList}\small\item\em Command list to read PDU env register. \item\end{CompactList}\item 
struct \hyperlink{struct__LTC__rl}{\_\-LTC\_\-rl}
\begin{CompactList}\small\item\em Response list to read PDU environment registers. \item\end{CompactList}\item 
struct \hyperlink{struct__LTC__Wrk}{\_\-LTC\_\-Wrk}
\begin{CompactList}\small\item\em LTC working storage. \item\end{CompactList}\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\hypertarget{ltcPrivate_8h_a0}{
\#define \hyperlink{ltcPrivate_8h_a0}{MSG\_\-SIGNAL}(\_\-errno, \_\-na, args...)~\_\-msg\_\-report( \_\-errno, 0, \_\-na, \#\# args)}
\label{ltcPrivate_8h_a0}

\begin{CompactList}\small\item\em Wrapper to simplify MSG\_\-report calls. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a1}{
\#define \hyperlink{ltcPrivate_8h_a1}{PRINTF}(format,)}
\label{ltcPrivate_8h_a1}

\begin{CompactList}\small\item\em NOPs terminal debug output. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a2}{
\#define \hyperlink{ltcPrivate_8h_a2}{TSCL}~LTC\_\-DB\_\-TSCL}
\label{ltcPrivate_8h_a2}

\begin{CompactList}\small\item\em Temperature scaling within signed int. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a3}{
\#define \hyperlink{ltcPrivate_8h_a3}{TSCLF}~LTC\_\-DB\_\-TSCLF}
\label{ltcPrivate_8h_a3}

\begin{CompactList}\small\item\em Temperature scaling in floating point format. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a4}{
\#define \hyperlink{ltcPrivate_8h_a4}{CFSCL}~8192}
\label{ltcPrivate_8h_a4}

\begin{CompactList}\small\item\em Scaling for smoothing filter coefficients. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a5}{
\#define \hyperlink{ltcPrivate_8h_a5}{LTC\_\-NUM\_\-HPs}~LTC\_\-DB\_\-NUM\_\-HPs}
\label{ltcPrivate_8h_a5}

\begin{CompactList}\small\item\em Number of heat pipes on LAT. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a6}{
\#define \hyperlink{ltcPrivate_8h_a6}{LTC\_\-PDUs}~LTC\_\-DB\_\-PDUs}
\label{ltcPrivate_8h_a6}

\begin{CompactList}\small\item\em Maximum number PDUs. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a7}{
\#define \hyperlink{ltcPrivate_8h_a7}{LTC\_\-PDU\_\-GRPS}~LTC\_\-DB\_\-PDU\_\-GRPS}
\label{ltcPrivate_8h_a7}

\begin{CompactList}\small\item\em Maximum ADC groups in PDU. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a8}{
\#define \hyperlink{ltcPrivate_8h_a8}{LTC\_\-PDU\_\-CNV\_\-TIME}~300}
\label{ltcPrivate_8h_a8}

\begin{CompactList}\small\item\em Conversion time for PDU group in sys clk ticks. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a9}{
\#define \hyperlink{ltcPrivate_8h_a9}{LTC\_\-NUM\_\-SNSRS}~LTC\_\-DB\_\-NUM\_\-SNSRS}
\label{ltcPrivate_8h_a9}

\begin{CompactList}\small\item\em Number sensors input for LTC per PDU (2 RITS + 1 res heater per HP). \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a10}{
\#define \hyperlink{ltcPrivate_8h_a10}{LTC\_\-PDU\_\-MAX\_\-ADCS\_\-PER\_\-REG}~7}
\label{ltcPrivate_8h_a10}

\begin{CompactList}\small\item\em Number ADCs in a PDU group. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a11}{
\#define \hyperlink{ltcPrivate_8h_a11}{LTC\_\-PDU\_\-REGS}~3}
\label{ltcPrivate_8h_a11}

\begin{CompactList}\small\item\em Number environment registers in the PDU. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a12}{
\#define \hyperlink{ltcPrivate_8h_a12}{LTC\_\-CNV\_\-TBL\_\-SZ}~4096}
\label{ltcPrivate_8h_a12}

\begin{CompactList}\small\item\em Maximum temp conversion table size in elemets. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a13}{
\#define \hyperlink{ltcPrivate_8h_a13}{LTC\_\-SENTINEL\_\-TEMP}~((signed short) 0x8000)}
\label{ltcPrivate_8h_a13}

\begin{CompactList}\small\item\em Special temperature value used to indicate out-of-range sensor. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a14}{
\#define \hyperlink{ltcPrivate_8h_a14}{LTC\_\-MAX\_\-FLT\_\-SZ}~20}
\label{ltcPrivate_8h_a14}

\begin{CompactList}\small\item\em Maximum smoothing filter length (number coefficients). \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a15}{
\#define \hyperlink{ltcPrivate_8h_a15}{LTC\_\-MIN\_\-FLT\_\-SZ}~4}
\label{ltcPrivate_8h_a15}

\begin{CompactList}\small\item\em Minimum smoothing filter length (number coefficients). \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a16}{
\#define \hyperlink{ltcPrivate_8h_a16}{LTC\_\-COEFF\_\-SUM}~1}
\label{ltcPrivate_8h_a16}

\begin{CompactList}\small\item\em Allowed error for smoothing filter coefficients (1-sum scaled). \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a17}{
\#define \hyperlink{ltcPrivate_8h_a17}{LTC\_\-INTERNAL\_\-CMD\_\-APID}~0x659}
\label{ltcPrivate_8h_a17}

\begin{CompactList}\small\item\em The CCSDS APID for LTC package internal telecommands. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a18}{
\#define \hyperlink{ltcPrivate_8h_a18}{LTC\_\-NULL\_\-FILE\_\-ID}~0}
\label{ltcPrivate_8h_a18}

\begin{CompactList}\small\item\em The LTC null file ID value used to indicate built-in defaults. \item\end{CompactList}\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
\hypertarget{ltcPrivate_8h_a19}{
typedef LTC\_\-DB\_\-Cntrl\-Params \hyperlink{ltcPrivate_8h_a19}{LTC\_\-Cntrl\-Params}}
\label{ltcPrivate_8h_a19}

\begin{CompactList}\small\item\em Control algogrithm parameters for a heat pipe. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a20}{
typedef LTC\_\-DB\_\-Pdu\-Meas\-Rec \hyperlink{ltcPrivate_8h_a20}{LTC\_\-Pdu\-Meas\-Rec}}
\label{ltcPrivate_8h_a20}

\begin{CompactList}\small\item\em Info for needed to acquire measurement from PDU group. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a21}{
typedef LTC\_\-DB\_\-Pdu\-Tbl \hyperlink{ltcPrivate_8h_a21}{LTC\_\-Pdu\-Tbl}}
\label{ltcPrivate_8h_a21}

\begin{CompactList}\small\item\em Info for inputting sensor measurements from PDU. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a22}{
typedef LTC\_\-DB\_\-Common\-Params \hyperlink{ltcPrivate_8h_a22}{LTC\_\-Common\-Params}}
\label{ltcPrivate_8h_a22}

\begin{CompactList}\small\item\em LTC common configuration parameters. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a23}{
typedef \hyperlink{struct__LTC__cl}{\_\-LTC\_\-cl} \hyperlink{ltcPrivate_8h_a23}{LTC\_\-cl}}
\label{ltcPrivate_8h_a23}

\begin{CompactList}\small\item\em Typedef for structure \hyperlink{struct__LTC__cl}{\_\-LTC\_\-cl}. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a24}{
typedef \hyperlink{struct__LTC__rl}{\_\-LTC\_\-rl} \hyperlink{ltcPrivate_8h_a24}{LTC\_\-rl}}
\label{ltcPrivate_8h_a24}

\begin{CompactList}\small\item\em Typedef for structure \hyperlink{struct__LTC__rl}{\_\-LTC\_\-rl}. \item\end{CompactList}\item 
\hypertarget{ltcPrivate_8h_a25}{
typedef \hyperlink{struct__LTC__Wrk}{\_\-LTC\_\-Wrk} \hyperlink{ltcPrivate_8h_a25}{LTC\_\-Wrk}}
\label{ltcPrivate_8h_a25}

\begin{CompactList}\small\item\em LTC working storage. \item\end{CompactList}\end{CompactItemize}
\subsection*{Enumerations}
\begin{CompactItemize}
\item 
enum \hyperlink{ltcPrivate_8h_a78}{LTC\_\-Yes\-No} \{ \par
\hyperlink{ltcPrivate_8h_a78a26}{LTC\_\-YES} =  1, 
\par
\hyperlink{ltcPrivate_8h_a78a27}{LTC\_\-NO} =  0
 \}
\begin{CompactList}\small\item\em Specify booleans for LTC. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a79}{LTC\_\-On\-Off} \{ \par
\hyperlink{ltcPrivate_8h_a79a28}{LTC\_\-ON} =  1, 
\par
\hyperlink{ltcPrivate_8h_a79a29}{LTC\_\-OFF} =  0
 \}
\begin{CompactList}\small\item\em Specify booleans for LTC. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a80}{LTC\_\-Cmd\-Modes} \{ \par
\hyperlink{ltcPrivate_8h_a80a30}{LTC\_\-ACTIVE} =  1, 
\par
\hyperlink{ltcPrivate_8h_a80a31}{LTC\_\-PASSIVE} =  0
 \}
\begin{CompactList}\small\item\em Specify booleans for LTC. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a81}{LTC\_\-Run\-Modes} \{ \par
\hyperlink{ltcPrivate_8h_a81a32}{LTC\_\-RUNNING} =  1, 
\par
\hyperlink{ltcPrivate_8h_a81a33}{LTC\_\-STOPPED} =  0
 \}
\begin{CompactList}\small\item\em Specify booleans for LTC. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a82}{LTC\_\-Cntl\_\-Modes} \{ \par
\hyperlink{ltcPrivate_8h_a82a34}{LTC\_\-CTL\_\-UNINITIALIZED} =  0, 
\par
\hyperlink{ltcPrivate_8h_a82a35}{LTC\_\-CTL\_\-INITIALIZING} =  1, 
\par
\hyperlink{ltcPrivate_8h_a82a36}{LTC\_\-CTL\_\-DEINITIALIZING} =  2, 
\par
\hyperlink{ltcPrivate_8h_a82a37}{LTC\_\-CTL\_\-INITIALIZED} =  3, 
\par
\hyperlink{ltcPrivate_8h_a82a38}{LTC\_\-CTL\_\-STARTING} =  4, 
\par
\hyperlink{ltcPrivate_8h_a82a39}{LTC\_\-CTL\_\-RUNNING} =  5, 
\par
\hyperlink{ltcPrivate_8h_a82a40}{LTC\_\-CTL\_\-STOPPING} =  6, 
\par
\hyperlink{ltcPrivate_8h_a82a41}{LTC\_\-CTL\_\-BROKEN} =  7
 \}
\begin{CompactList}\small\item\em LTC process states. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a83}{LTC\_\-File\-Id\-Types} \{ \par
\hyperlink{ltcPrivate_8h_a83a42}{LTC\_\-FILE\_\-BUILT\_\-IN} =  LTC\_\-DB\_\-FILE\_\-BUILT\_\-IN, 
\par
\hyperlink{ltcPrivate_8h_a83a43}{LTC\_\-FILE\_\-BY\_\-NAME} =  LTC\_\-DB\_\-FILE\_\-BY\_\-NAME, 
\par
\hyperlink{ltcPrivate_8h_a83a44}{LTC\_\-FILE\_\-BY\_\-ID} =  LTC\_\-DB\_\-FILE\_\-BY\_\-ID
 \}
\begin{CompactList}\small\item\em Specifies FILE ID methods. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a84}{LTC\_\-File\-Hdr\-Codes} \{ \par
\hyperlink{ltcPrivate_8h_a84a45}{LTC\_\-BIN\_\-CFG} =  1, 
\par
\hyperlink{ltcPrivate_8h_a84a46}{LTC\_\-BIN\_\-SNSR} =  2, 
\par
\hyperlink{ltcPrivate_8h_a84a47}{LTC\_\-BIN\_\-FILT} =  3, 
\par
\hyperlink{ltcPrivate_8h_a84a48}{LTC\_\-BIN\_\-TEMP} =  4, 
\par
\hyperlink{ltcPrivate_8h_a84a49}{LTC\_\-BIN\_\-FOF} =  5
 \}
\begin{CompactList}\small\item\em Specifies LTC binary file type. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a85}{LTC\_\-File\-Ver\-Codes} \{ \par
\hyperlink{ltcPrivate_8h_a85a50}{LTC\_\-BIN\_\-CFG\_\-MJV} =  4, 
\par
\hyperlink{ltcPrivate_8h_a85a51}{LTC\_\-BIN\_\-CFG\_\-MNV} =  0
 \}
\begin{CompactList}\small\item\em Specifies LTC binary file format version numbers. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a86}{LTC\_\-Snsr\-Type} \{ \par
\hyperlink{ltcPrivate_8h_a86a52}{DSHP\_\-RIT} =  LTC\_\-DB\_\-DSHP\_\-RIT, 
\par
\hyperlink{ltcPrivate_8h_a86a53}{DSHP\_\-RIT\_\-R} =  LTC\_\-DB\_\-DSHP\_\-RIT\_\-R, 
\par
\hyperlink{ltcPrivate_8h_a86a54}{XLHP\_\-RIT} =  LTC\_\-DB\_\-XLHP\_\-RIT, 
\par
\hyperlink{ltcPrivate_8h_a86a55}{XLHP\_\-RIT\_\-R} =  LTC\_\-DB\_\-XLHP\_\-RIT\_\-R, 
\par
\hyperlink{ltcPrivate_8h_a86a56}{RSVR\_\-HTR} =  LTC\_\-DB\_\-RSVR\_\-HTR, 
\par
\hyperlink{ltcPrivate_8h_a86a57}{RSVR\_\-HTR\_\-R} =  LTC\_\-DB\_\-RSVR\_\-HTR\_\-R, 
\par
\hyperlink{ltcPrivate_8h_a86a58}{LTC\_\-SNSR\_\-TYPS} =  LTC\_\-DB\_\-LTC\_\-SNSR\_\-TYPS
 \}
\begin{CompactList}\small\item\em Values for LAT sensor types used as array index by LTC. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a87}{LTC\_\-Temp\-Type} \{ \par
\hyperlink{ltcPrivate_8h_a87a59}{RIT\_\-TMP} =  0, 
\par
\hyperlink{ltcPrivate_8h_a87a60}{RES\_\-TMP} =  1, 
\par
\hyperlink{ltcPrivate_8h_a87a61}{LTC\_\-TMP\_\-TYPS} =  2
 \}
\begin{CompactList}\small\item\em Temperature type codes used as array index by LTC. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a88}{LTC\_\-Sensor\-Status} \{ \par
\hyperlink{ltcPrivate_8h_a88a62}{NOT\_\-READ} =  0, 
\par
\hyperlink{ltcPrivate_8h_a88a63}{READ\_\-GOOD} =  1, 
\par
\hyperlink{ltcPrivate_8h_a88a64}{READ\_\-BAD} =  2, 
\par
\hyperlink{ltcPrivate_8h_a88a65}{BROKEN} =  3
 \}
\begin{CompactList}\small\item\em Status indicator for sensor data. \item\end{CompactList}\item 
enum \hyperlink{ltcPrivate_8h_a89}{LTC\_\-Hp\-Control\-Mode} \{ \par
\hyperlink{ltcPrivate_8h_a89a66}{LTC\_\-AUTO} =  0, 
\par
\hyperlink{ltcPrivate_8h_a89a67}{LTC\_\-ALWAYS\_\-ON} =  1, 
\par
\hyperlink{ltcPrivate_8h_a89a68}{LTC\_\-ALWAYS\_\-OFF} =  2
 \}
\begin{CompactList}\small\item\em Heat pipe control mode. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{ltcPrivate_8h_a69}{LTC\_\-Init\-Built\-In} (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$tw)
\begin{CompactList}\small\item\em Initialization for built-in constants. \item\end{CompactList}\item 
unsigned int \hyperlink{ltcPrivate_8h_a70}{LTC\_\-Init\-Cfg} (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$tw)
\begin{CompactList}\small\item\em Initialization for working storage from configuration files. \item\end{CompactList}\item 
unsigned int \hyperlink{ltcPrivate_8h_a71}{LTC\_\-Init\-File} (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$tw)
\begin{CompactList}\small\item\em Initialize file buffer storage. \item\end{CompactList}\item 
unsigned int \hyperlink{ltcPrivate_8h_a72}{LTC\_\-Init\-Smooth} (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$tw)
\begin{CompactList}\small\item\em Allocates and inits storage for smoothing filters. \item\end{CompactList}\item 
void \hyperlink{ltcPrivate_8h_a73}{LTC\_\-Init\-Sensors} (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$tw)
\begin{CompactList}\small\item\em Sets initial values for LAT sensors. \item\end{CompactList}\item 
unsigned short \hyperlink{ltcPrivate_8h_a74}{Get\-ADCBits} (const unsigned int $\ast$pdu\-R, const int adc)
\begin{CompactList}\small\item\em Get 12-bit ADC values from PDU register given ADC number. \item\end{CompactList}\item 
void \hyperlink{ltcPrivate_8h_a75}{LTC\_\-Read\-Sensors} (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$tw)
\begin{CompactList}\small\item\em Start cycle of LTC control - issue LCB commands. \item\end{CompactList}\item 
unsigned int \hyperlink{ltcPrivate_8h_a76}{LTC\_\-Proc\-Pdu\-Rsp} (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$tw, \hyperlink{struct__LTC__CntlProc__Prm}{LTC\_\-Cntl\-Proc\_\-Prm} $\ast$rb, const \hyperlink{struct__LTC__rl}{LTC\_\-rl} $\ast$rl)
\begin{CompactList}\small\item\em Callback to process responses from asynchrous reads of PDU registers. \item\end{CompactList}\item 
WUT\_\-cb\_\-status \hyperlink{ltcPrivate_8h_a77}{LTC\_\-Wk\-Up} (void $\ast$p, WUT\_\-tmr $\ast$wut)
\begin{CompactList}\small\item\em Wake up LTC for another processing cycle and restart wake timer. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Private definitions for thermal control package. 



\subsection{Enumeration Type Documentation}
\hypertarget{ltcPrivate_8h_a80}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_CmdModes@{LTC\_\-CmdModes}}
\index{LTC_CmdModes@{LTC\_\-CmdModes}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-CmdModes]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a80}{LTC\_\-Cmd\-Modes}}}
\label{ltcPrivate_8h_a80}


Specify booleans for LTC. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LTC_ACTIVE@{LTC\_\-ACTIVE}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_ACTIVE@{LTC\_\-ACTIVE}}\item[{\em 
\hypertarget{ltcPrivate_8h_a80a30}{
LTC\_\-ACTIVE}
\label{ltcPrivate_8h_a80a30}
}]cmd HPs \index{LTC_PASSIVE@{LTC\_\-PASSIVE}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_PASSIVE@{LTC\_\-PASSIVE}}\item[{\em 
\hypertarget{ltcPrivate_8h_a80a31}{
LTC\_\-PASSIVE}
\label{ltcPrivate_8h_a80a31}
}]do not cmd HPs \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a82}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_Cntl_Modes@{LTC\_\-Cntl\_\-Modes}}
\index{LTC_Cntl_Modes@{LTC\_\-Cntl\_\-Modes}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-Cntl\_\-Modes]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a82}{LTC\_\-Cntl\_\-Modes}}}
\label{ltcPrivate_8h_a82}


LTC process states. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LTC_CTL_UNINITIALIZED@{LTC\_\-CTL\_\-UNINITIALIZED}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_CTL_UNINITIALIZED@{LTC\_\-CTL\_\-UNINITIALIZED}}\item[{\em 
\hypertarget{ltcPrivate_8h_a82a34}{
LTC\_\-CTL\_\-UNINITIALIZED}
\label{ltcPrivate_8h_a82a34}
}]Uninitialized \index{LTC_CTL_INITIALIZING@{LTC\_\-CTL\_\-INITIALIZING}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_CTL_INITIALIZING@{LTC\_\-CTL\_\-INITIALIZING}}\item[{\em 
\hypertarget{ltcPrivate_8h_a82a35}{
LTC\_\-CTL\_\-INITIALIZING}
\label{ltcPrivate_8h_a82a35}
}]Initializing \index{LTC_CTL_DEINITIALIZING@{LTC\_\-CTL\_\-DEINITIALIZING}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_CTL_DEINITIALIZING@{LTC\_\-CTL\_\-DEINITIALIZING}}\item[{\em 
\hypertarget{ltcPrivate_8h_a82a36}{
LTC\_\-CTL\_\-DEINITIALIZING}
\label{ltcPrivate_8h_a82a36}
}]De-initializing \index{LTC_CTL_INITIALIZED@{LTC\_\-CTL\_\-INITIALIZED}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_CTL_INITIALIZED@{LTC\_\-CTL\_\-INITIALIZED}}\item[{\em 
\hypertarget{ltcPrivate_8h_a82a37}{
LTC\_\-CTL\_\-INITIALIZED}
\label{ltcPrivate_8h_a82a37}
}]Initialized \index{LTC_CTL_STARTING@{LTC\_\-CTL\_\-STARTING}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_CTL_STARTING@{LTC\_\-CTL\_\-STARTING}}\item[{\em 
\hypertarget{ltcPrivate_8h_a82a38}{
LTC\_\-CTL\_\-STARTING}
\label{ltcPrivate_8h_a82a38}
}]Starting \index{LTC_CTL_RUNNING@{LTC\_\-CTL\_\-RUNNING}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_CTL_RUNNING@{LTC\_\-CTL\_\-RUNNING}}\item[{\em 
\hypertarget{ltcPrivate_8h_a82a39}{
LTC\_\-CTL\_\-RUNNING}
\label{ltcPrivate_8h_a82a39}
}]Running \index{LTC_CTL_STOPPING@{LTC\_\-CTL\_\-STOPPING}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_CTL_STOPPING@{LTC\_\-CTL\_\-STOPPING}}\item[{\em 
\hypertarget{ltcPrivate_8h_a82a40}{
LTC\_\-CTL\_\-STOPPING}
\label{ltcPrivate_8h_a82a40}
}]Stopping \index{LTC_CTL_BROKEN@{LTC\_\-CTL\_\-BROKEN}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_CTL_BROKEN@{LTC\_\-CTL\_\-BROKEN}}\item[{\em 
\hypertarget{ltcPrivate_8h_a82a41}{
LTC\_\-CTL\_\-BROKEN}
\label{ltcPrivate_8h_a82a41}
}]Broken (irrecoverable) \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a84}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_FileHdrCodes@{LTC\_\-FileHdrCodes}}
\index{LTC_FileHdrCodes@{LTC\_\-FileHdrCodes}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-FileHdrCodes]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a84}{LTC\_\-File\-Hdr\-Codes}}}
\label{ltcPrivate_8h_a84}


Specifies LTC binary file type. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LTC_BIN_CFG@{LTC\_\-BIN\_\-CFG}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_BIN_CFG@{LTC\_\-BIN\_\-CFG}}\item[{\em 
\hypertarget{ltcPrivate_8h_a84a45}{
LTC\_\-BIN\_\-CFG}
\label{ltcPrivate_8h_a84a45}
}]LTC Binary Configuration file \index{LTC_BIN_SNSR@{LTC\_\-BIN\_\-SNSR}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_BIN_SNSR@{LTC\_\-BIN\_\-SNSR}}\item[{\em 
\hypertarget{ltcPrivate_8h_a84a46}{
LTC\_\-BIN\_\-SNSR}
\label{ltcPrivate_8h_a84a46}
}]LTC Binary Sensor Definition file (obsolete) \index{LTC_BIN_FILT@{LTC\_\-BIN\_\-FILT}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_BIN_FILT@{LTC\_\-BIN\_\-FILT}}\item[{\em 
\hypertarget{ltcPrivate_8h_a84a47}{
LTC\_\-BIN\_\-FILT}
\label{ltcPrivate_8h_a84a47}
}]LTC Filter Coefficient Definition file \index{LTC_BIN_TEMP@{LTC\_\-BIN\_\-TEMP}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_BIN_TEMP@{LTC\_\-BIN\_\-TEMP}}\item[{\em 
\hypertarget{ltcPrivate_8h_a84a48}{
LTC\_\-BIN\_\-TEMP}
\label{ltcPrivate_8h_a84a48}
}]LTC ADC-Temperature Conversion file \index{LTC_BIN_FOF@{LTC\_\-BIN\_\-FOF}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_BIN_FOF@{LTC\_\-BIN\_\-FOF}}\item[{\em 
\hypertarget{ltcPrivate_8h_a84a49}{
LTC\_\-BIN\_\-FOF}
\label{ltcPrivate_8h_a84a49}
}]LTC File-of-Files (really from FMX) \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a83}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_FileIdTypes@{LTC\_\-FileIdTypes}}
\index{LTC_FileIdTypes@{LTC\_\-FileIdTypes}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-FileIdTypes]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a83}{LTC\_\-File\-Id\-Types}}}
\label{ltcPrivate_8h_a83}


Specifies FILE ID methods. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LTC_FILE_BUILT_IN@{LTC\_\-FILE\_\-BUILT\_\-IN}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_FILE_BUILT_IN@{LTC\_\-FILE\_\-BUILT\_\-IN}}\item[{\em 
\hypertarget{ltcPrivate_8h_a83a42}{
LTC\_\-FILE\_\-BUILT\_\-IN}
\label{ltcPrivate_8h_a83a42}
}]Use built-in configuration \index{LTC_FILE_BY_NAME@{LTC\_\-FILE\_\-BY\_\-NAME}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_FILE_BY_NAME@{LTC\_\-FILE\_\-BY\_\-NAME}}\item[{\em 
\hypertarget{ltcPrivate_8h_a83a43}{
LTC\_\-FILE\_\-BY\_\-NAME}
\label{ltcPrivate_8h_a83a43}
}]File identified by string (obsolete) \index{LTC_FILE_BY_ID@{LTC\_\-FILE\_\-BY\_\-ID}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_FILE_BY_ID@{LTC\_\-FILE\_\-BY\_\-ID}}\item[{\em 
\hypertarget{ltcPrivate_8h_a83a44}{
LTC\_\-FILE\_\-BY\_\-ID}
\label{ltcPrivate_8h_a83a44}
}]File identified by ID number \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a85}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_FileVerCodes@{LTC\_\-FileVerCodes}}
\index{LTC_FileVerCodes@{LTC\_\-FileVerCodes}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-FileVerCodes]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a85}{LTC\_\-File\-Ver\-Codes}}}
\label{ltcPrivate_8h_a85}


Specifies LTC binary file format version numbers. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LTC_BIN_CFG_MJV@{LTC\_\-BIN\_\-CFG\_\-MJV}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_BIN_CFG_MJV@{LTC\_\-BIN\_\-CFG\_\-MJV}}\item[{\em 
\hypertarget{ltcPrivate_8h_a85a50}{
LTC\_\-BIN\_\-CFG\_\-MJV}
\label{ltcPrivate_8h_a85a50}
}]LTC Bin Cnfg file major version number \index{LTC_BIN_CFG_MNV@{LTC\_\-BIN\_\-CFG\_\-MNV}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_BIN_CFG_MNV@{LTC\_\-BIN\_\-CFG\_\-MNV}}\item[{\em 
\hypertarget{ltcPrivate_8h_a85a51}{
LTC\_\-BIN\_\-CFG\_\-MNV}
\label{ltcPrivate_8h_a85a51}
}]LTC Bin Cnfg file minor version number \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a89}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_HpControlMode@{LTC\_\-HpControlMode}}
\index{LTC_HpControlMode@{LTC\_\-HpControlMode}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-HpControlMode]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a89}{LTC\_\-Hp\-Control\-Mode}}}
\label{ltcPrivate_8h_a89}


Heat pipe control mode. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LTC_AUTO@{LTC\_\-AUTO}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_AUTO@{LTC\_\-AUTO}}\item[{\em 
\hypertarget{ltcPrivate_8h_a89a66}{
LTC\_\-AUTO}
\label{ltcPrivate_8h_a89a66}
}]Use control algorithm to turn heater on/off \index{LTC_ALWAYS_ON@{LTC\_\-ALWAYS\_\-ON}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_ALWAYS_ON@{LTC\_\-ALWAYS\_\-ON}}\item[{\em 
\hypertarget{ltcPrivate_8h_a89a67}{
LTC\_\-ALWAYS\_\-ON}
\label{ltcPrivate_8h_a89a67}
}]heater always on \index{LTC_ALWAYS_OFF@{LTC\_\-ALWAYS\_\-OFF}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_ALWAYS_OFF@{LTC\_\-ALWAYS\_\-OFF}}\item[{\em 
\hypertarget{ltcPrivate_8h_a89a68}{
LTC\_\-ALWAYS\_\-OFF}
\label{ltcPrivate_8h_a89a68}
}]heater always off \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a79}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_OnOff@{LTC\_\-OnOff}}
\index{LTC_OnOff@{LTC\_\-OnOff}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-OnOff]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a79}{LTC\_\-On\-Off}}}
\label{ltcPrivate_8h_a79}


Specify booleans for LTC. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LTC_ON@{LTC\_\-ON}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_ON@{LTC\_\-ON}}\item[{\em 
\hypertarget{ltcPrivate_8h_a79a28}{
LTC\_\-ON}
\label{ltcPrivate_8h_a79a28}
}]On for LTC \index{LTC_OFF@{LTC\_\-OFF}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_OFF@{LTC\_\-OFF}}\item[{\em 
\hypertarget{ltcPrivate_8h_a79a29}{
LTC\_\-OFF}
\label{ltcPrivate_8h_a79a29}
}]Off for LTC \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a81}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_RunModes@{LTC\_\-RunModes}}
\index{LTC_RunModes@{LTC\_\-RunModes}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-RunModes]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a81}{LTC\_\-Run\-Modes}}}
\label{ltcPrivate_8h_a81}


Specify booleans for LTC. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LTC_RUNNING@{LTC\_\-RUNNING}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_RUNNING@{LTC\_\-RUNNING}}\item[{\em 
\hypertarget{ltcPrivate_8h_a81a32}{
LTC\_\-RUNNING}
\label{ltcPrivate_8h_a81a32}
}]LTC cycles running \index{LTC_STOPPED@{LTC\_\-STOPPED}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_STOPPED@{LTC\_\-STOPPED}}\item[{\em 
\hypertarget{ltcPrivate_8h_a81a33}{
LTC\_\-STOPPED}
\label{ltcPrivate_8h_a81a33}
}]LTC cycles stopped \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a88}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_SensorStatus@{LTC\_\-SensorStatus}}
\index{LTC_SensorStatus@{LTC\_\-SensorStatus}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-SensorStatus]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a88}{LTC\_\-Sensor\-Status}}}
\label{ltcPrivate_8h_a88}


Status indicator for sensor data. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{NOT_READ@{NOT\_\-READ}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!NOT_READ@{NOT\_\-READ}}\item[{\em 
\hypertarget{ltcPrivate_8h_a88a62}{
NOT\_\-READ}
\label{ltcPrivate_8h_a88a62}
}]Not read on this cycle \index{READ_GOOD@{READ\_\-GOOD}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!READ_GOOD@{READ\_\-GOOD}}\item[{\em 
\hypertarget{ltcPrivate_8h_a88a63}{
READ\_\-GOOD}
\label{ltcPrivate_8h_a88a63}
}]Sensor read on this cycle \index{READ_BAD@{READ\_\-BAD}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!READ_BAD@{READ\_\-BAD}}\item[{\em 
\hypertarget{ltcPrivate_8h_a88a64}{
READ\_\-BAD}
\label{ltcPrivate_8h_a88a64}
}]Sensor read but bad \index{BROKEN@{BROKEN}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!BROKEN@{BROKEN}}\item[{\em 
\hypertarget{ltcPrivate_8h_a88a65}{
BROKEN}
\label{ltcPrivate_8h_a88a65}
}]Sensor has been designated as broken \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a86}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_SnsrType@{LTC\_\-SnsrType}}
\index{LTC_SnsrType@{LTC\_\-SnsrType}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-SnsrType]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a86}{LTC\_\-Snsr\-Type}}}
\label{ltcPrivate_8h_a86}


Values for LAT sensor types used as array index by LTC. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{DSHP_RIT@{DSHP\_\-RIT}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!DSHP_RIT@{DSHP\_\-RIT}}\item[{\em 
\hypertarget{ltcPrivate_8h_a86a52}{
DSHP\_\-RIT}
\label{ltcPrivate_8h_a86a52}
}]Downspout RIT \index{DSHP_RIT_R@{DSHP\_\-RIT\_\-R}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!DSHP_RIT_R@{DSHP\_\-RIT\_\-R}}\item[{\em 
\hypertarget{ltcPrivate_8h_a86a53}{
DSHP\_\-RIT\_\-R}
\label{ltcPrivate_8h_a86a53}
}]Downspout RIT redundant \index{XLHP_RIT@{XLHP\_\-RIT}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!XLHP_RIT@{XLHP\_\-RIT}}\item[{\em 
\hypertarget{ltcPrivate_8h_a86a54}{
XLHP\_\-RIT}
\label{ltcPrivate_8h_a86a54}
}]X-LAT RIT \index{XLHP_RIT_R@{XLHP\_\-RIT\_\-R}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!XLHP_RIT_R@{XLHP\_\-RIT\_\-R}}\item[{\em 
\hypertarget{ltcPrivate_8h_a86a55}{
XLHP\_\-RIT\_\-R}
\label{ltcPrivate_8h_a86a55}
}]X-LAT RIT redundant \index{RSVR_HTR@{RSVR\_\-HTR}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!RSVR_HTR@{RSVR\_\-HTR}}\item[{\em 
\hypertarget{ltcPrivate_8h_a86a56}{
RSVR\_\-HTR}
\label{ltcPrivate_8h_a86a56}
}]Reservoir heater \index{RSVR_HTR_R@{RSVR\_\-HTR\_\-R}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!RSVR_HTR_R@{RSVR\_\-HTR\_\-R}}\item[{\em 
\hypertarget{ltcPrivate_8h_a86a57}{
RSVR\_\-HTR\_\-R}
\label{ltcPrivate_8h_a86a57}
}]Reservoir heater redundant \index{LTC_SNSR_TYPS@{LTC\_\-SNSR\_\-TYPS}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_SNSR_TYPS@{LTC\_\-SNSR\_\-TYPS}}\item[{\em 
\hypertarget{ltcPrivate_8h_a86a58}{
LTC\_\-SNSR\_\-TYPS}
\label{ltcPrivate_8h_a86a58}
}]Number sensor types \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a87}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_TempType@{LTC\_\-TempType}}
\index{LTC_TempType@{LTC\_\-TempType}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-TempType]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a87}{LTC\_\-Temp\-Type}}}
\label{ltcPrivate_8h_a87}


Temperature type codes used as array index by LTC. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{RIT_TMP@{RIT\_\-TMP}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!RIT_TMP@{RIT\_\-TMP}}\item[{\em 
\hypertarget{ltcPrivate_8h_a87a59}{
RIT\_\-TMP}
\label{ltcPrivate_8h_a87a59}
}]Radiator Interface Temperature \index{RES_TMP@{RES\_\-TMP}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!RES_TMP@{RES\_\-TMP}}\item[{\em 
\hypertarget{ltcPrivate_8h_a87a60}{
RES\_\-TMP}
\label{ltcPrivate_8h_a87a60}
}]Heater Reservoir Temperature \index{LTC_TMP_TYPS@{LTC\_\-TMP\_\-TYPS}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_TMP_TYPS@{LTC\_\-TMP\_\-TYPS}}\item[{\em 
\hypertarget{ltcPrivate_8h_a87a61}{
LTC\_\-TMP\_\-TYPS}
\label{ltcPrivate_8h_a87a61}
}]Number temp type codes \end{description}
\end{Desc}

\hypertarget{ltcPrivate_8h_a78}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_YesNo@{LTC\_\-YesNo}}
\index{LTC_YesNo@{LTC\_\-YesNo}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-YesNo]{\setlength{\rightskip}{0pt plus 5cm}enum \hyperlink{ltcPrivate_8h_a78}{LTC\_\-Yes\-No}}}
\label{ltcPrivate_8h_a78}


Specify booleans for LTC. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{LTC_YES@{LTC\_\-YES}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_YES@{LTC\_\-YES}}\item[{\em 
\hypertarget{ltcPrivate_8h_a78a26}{
LTC\_\-YES}
\label{ltcPrivate_8h_a78a26}
}]Yes for LTC \index{LTC_NO@{LTC\_\-NO}!ltcPrivate.h@{ltcPrivate.h}}\index{ltcPrivate.h@{ltcPrivate.h}!LTC_NO@{LTC\_\-NO}}\item[{\em 
\hypertarget{ltcPrivate_8h_a78a27}{
LTC\_\-NO}
\label{ltcPrivate_8h_a78a27}
}]No for LTC \end{description}
\end{Desc}



\subsection{Function Documentation}
\hypertarget{ltcPrivate_8h_a74}{
\index{ltcPrivate.h@{ltc\-Private.h}!GetADCBits@{GetADCBits}}
\index{GetADCBits@{GetADCBits}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[GetADCBits]{\setlength{\rightskip}{0pt plus 5cm}unsigned short Get\-ADCBits (const unsigned int $\ast$ {\em pdu\-R}, const int {\em adc})}}
\label{ltcPrivate_8h_a74}


Get 12-bit ADC values from PDU register given ADC number. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pdu\-R}]- PDU register bits (96 bits or 3 x 32) \item[{\em adc}]- adc number relative to this register (0 - 7)\end{description}
\end{Desc}
Byte Offsets 0 1 2 3 4 5 6 7 8 9 0 11 12

8-----8-----8-----8-----8-----8-----8-----8-----8-----8-----8-----8-----8 $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ $|$ --mbz-$^\wedge$-m$^\wedge$----6---$^\wedge$----5---$^\wedge$----4---$^\wedge$---3----$^\wedge$---2----$^\wedge$---1----$^\wedge$----0---- ADC Numbers Byte ADC\# Off\-Set Operation ---- ------ --------- 6 1 0x\-FFF 5 3 $>$$>$4 4 4 0x\-FFF 3 6 $>$$>$4 2 7 0x\-FFF 1 9 $>$$>$4 0 10 0x\-FFF\hypertarget{ltcPrivate_8h_a69}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_InitBuiltIn@{LTC\_\-InitBuiltIn}}
\index{LTC_InitBuiltIn@{LTC\_\-InitBuiltIn}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-InitBuiltIn]{\setlength{\rightskip}{0pt plus 5cm}void LTC\_\-Init\-Built\-In (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$ {\em tw})}}
\label{ltcPrivate_8h_a69}


Initialization for built-in constants. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tw}]- LTC working storage.\end{description}
\end{Desc}
\hypertarget{ltcPrivate_8h_a70}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_InitCfg@{LTC\_\-InitCfg}}
\index{LTC_InitCfg@{LTC\_\-InitCfg}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-InitCfg]{\setlength{\rightskip}{0pt plus 5cm}unsigned int LTC\_\-Init\-Cfg (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$ {\em tw})}}
\label{ltcPrivate_8h_a70}


Initialization for working storage from configuration files. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tw}]- LTC working storage. \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em A}]LTC MSG code\end{description}
\end{Desc}
\hypertarget{ltcPrivate_8h_a71}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_InitFile@{LTC\_\-InitFile}}
\index{LTC_InitFile@{LTC\_\-InitFile}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-InitFile]{\setlength{\rightskip}{0pt plus 5cm}unsigned int LTC\_\-Init\-File (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$ {\em tw})}}
\label{ltcPrivate_8h_a71}


Initialize file buffer storage. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tw}]- LTC working storage. \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em A}]LTC MSG code.\end{description}
\end{Desc}
\hypertarget{ltcPrivate_8h_a73}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_InitSensors@{LTC\_\-InitSensors}}
\index{LTC_InitSensors@{LTC\_\-InitSensors}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-InitSensors]{\setlength{\rightskip}{0pt plus 5cm}static void LTC\_\-Init\-Sensors (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$ {\em tw})}}
\label{ltcPrivate_8h_a73}


Sets initial values for LAT sensors. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tw}]- LTC working storage\end{description}
\end{Desc}
\hypertarget{ltcPrivate_8h_a72}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_InitSmooth@{LTC\_\-InitSmooth}}
\index{LTC_InitSmooth@{LTC\_\-InitSmooth}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-InitSmooth]{\setlength{\rightskip}{0pt plus 5cm}static unsigned int LTC\_\-Init\-Smooth (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$ {\em tw})}}
\label{ltcPrivate_8h_a72}


Allocates and inits storage for smoothing filters. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tw}]- LTC working storage. \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em A}]LTC MSG code.\end{description}
\end{Desc}
\hypertarget{ltcPrivate_8h_a76}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_ProcPduRsp@{LTC\_\-ProcPduRsp}}
\index{LTC_ProcPduRsp@{LTC\_\-ProcPduRsp}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-ProcPduRsp]{\setlength{\rightskip}{0pt plus 5cm}unsigned int LTC\_\-Proc\-Pdu\-Rsp (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$ {\em tw}, \hyperlink{struct__LTC__CntlProc__Prm}{LTC\_\-Cntl\-Proc\_\-Prm} $\ast$ {\em rb}, const \hyperlink{struct__LTC__rl}{LTC\_\-rl} $\ast$ {\em rl})}}
\label{ltcPrivate_8h_a76}


Callback to process responses from asynchrous reads of PDU registers. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tw}]- LTC working storage. \item[{\em rb}]- Response processing block. \item[{\em rl}]- A pointer to the LTC PDU response data. \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em A}]LTC MSG code.\end{description}
\end{Desc}
\hypertarget{ltcPrivate_8h_a75}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_ReadSensors@{LTC\_\-ReadSensors}}
\index{LTC_ReadSensors@{LTC\_\-ReadSensors}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-ReadSensors]{\setlength{\rightskip}{0pt plus 5cm}void LTC\_\-Read\-Sensors (\hyperlink{struct__LTC__Wrk}{LTC\_\-Wrk} $\ast$ {\em tw})}}
\label{ltcPrivate_8h_a75}


Start cycle of LTC control - issue LCB commands. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em tw}]- LTC working storage\end{description}
\end{Desc}
The command lists are already built (LTC\_\-Init\-IO) during initialization. This logic sends each command list to the LCB queue were they are executed. As responses are generated, the callback LTC\_\-Lcb\-Rsp\-CB is executed which in turn executes LTC\_\-Proc\-Pdu\-Rsp to process the sensor data.\hypertarget{ltcPrivate_8h_a77}{
\index{ltcPrivate.h@{ltc\-Private.h}!LTC_WkUp@{LTC\_\-WkUp}}
\index{LTC_WkUp@{LTC\_\-WkUp}!ltcPrivate.h@{ltc\-Private.h}}
\subsubsection[LTC\_\-WkUp]{\setlength{\rightskip}{0pt plus 5cm}WUT\_\-cb\_\-status LTC\_\-Wk\-Up (void $\ast$ {\em p}, WUT\_\-tmr $\ast$ {\em wut})}}
\label{ltcPrivate_8h_a77}


Wake up LTC for another processing cycle and restart wake timer. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em p}]- LTC Working storage. \item[{\em wut}]- LTC wake up timer.\end{description}
\end{Desc}
