GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LTC / dev > ltct / rad750


Interface   Data Structures   File List   Data Fields   Globals  

LTC_file.c File Reference

Thermal Control file management functions. More...

#include <LTC/LTC_msgs.h>
#include <ltcPrivate.h>
#include <FBS/FBS_pubrtos.h>
#include <PBS/MBA.h>
#include <fcntl.h>
#include <unistd.h>

Functions

unsigned int LTC_InitFile (LTC_Wrk *tw)
 Initialize file buffer storage.
static void * LTC_ReadFile (LTC_Wrk *tw, LTC_FileDef *fdf, unsigned int fsz)
 Read File.
static unsigned int LTC_RdFilterDefFile (LTC_Wrk *tw, LTC_FileDef *fdf, LTC_Temperature *temp)
 Read Filter Definition Configuration File.
static unsigned int LTC_RdTempConvertFile (LTC_Wrk *tw, LTC_FileDef *fdf, LTC_Temperature *temp)
 Read ADC->Temperature Conversion Table File.
static unsigned int LTC_RdHpConfigFile (LTC_Wrk *tw, LTC_FileDef *fdf)
 Read Heat Pipe Configuration File.
static unsigned int LTC_RdFileOfFiles (LTC_Wrk *tw)
 Read LTC Master File-of-Files Configuration File.
unsigned int LTC_InitCfg (LTC_Wrk *tw)
 Initialization for working storage from configuration files.

Variables

LTC_FltDf LTC_thrmFltDf
 Smoothing filter definition for RIT/thermistor type sensor.
LTC_FltDf LTC_rtdFltDf
 Smoothing filter definition for RES/RTD type sensor.
short int LTC_thrmCnvTbl []
 Counts to temperature convertion table for RIT/thermistor type sensor.
short int LTC_rtdCnvTbl []
 Counts to temperature convertion table for RES/RTD type sensor.


Detailed Description

Thermal Control file management functions.


Function Documentation

unsigned int LTC_InitCfg ( LTC_Wrk tw  ) 

Initialization for working storage from configuration files.

Parameters:
tw - LTC working storage.
Return values:
A LTC MSG code

References LTC_RdFileOfFiles(), and PRINTF.

Referenced by LTC_Init(), and LTC_ReStart().

unsigned int LTC_InitFile ( LTC_Wrk tw  ) 

Initialize file buffer storage.

Parameters:
tw - LTC working storage.
Return values:
A LTC MSG code.

References LTC_FileDef::bff, _LTC_Wrk::cfgF, LTC_Temperature::cnvF, _LTC_Wrk::filePath, LTC_Temperature::fltF, _LTC_Wrk::fofF, _LTC_Wrk::htP, LTC_NUM_HPs, RES_TMP, RIT_TMP, and LTC_HeatPipe::temp.

Referenced by LTC_Init().

static unsigned int LTC_RdFileOfFiles ( LTC_Wrk tw  )  [static]

static unsigned int LTC_RdFilterDefFile ( LTC_Wrk tw,
LTC_FileDef fdf,
LTC_Temperature temp 
) [static]

Read Filter Definition Configuration File.

Parameters:
tw - LTC working storage.
fdf - File definition.
temp - LTC temperature conversion config for this filter.
Return values:
A LTC MSG code.

References LTC_Filter::fdf, LTC_FilterDefFile::filterDef, LTC_FltDf::fln, LTC_Temperature::flt, LTC_FileDef::idTyp, LTC_BIN_CFG_MJV, LTC_BIN_CFG_MNV, LTC_BIN_FILT, LTC_FILE_BY_ID, LTC_MAX_FLT_SZ, LTC_MIN_FLT_SZ, LTC_ReadFile(), LTC_FileDef::mjVer, LTC_FileDef::mnVer, MSG_SIGNAL, PRINTF, and LTC_FileDef::type.

Referenced by LTC_RdFileOfFiles().

static unsigned int LTC_RdHpConfigFile ( LTC_Wrk tw,
LTC_FileDef fdf 
) [static]

static unsigned int LTC_RdTempConvertFile ( LTC_Wrk tw,
LTC_FileDef fdf,
LTC_Temperature temp 
) [static]

Read ADC->Temperature Conversion Table File.

Parameters:
tw - LTC working storage.
fdf - File definition.
temp - LTC temperature conversion config for this filter.
Return values:
A LTC MSG code.

References LTC_Temperature::cnv, LTC_FileDef::idTyp, LTC_BIN_CFG_MJV, LTC_BIN_CFG_MNV, LTC_BIN_TEMP, LTC_CNV_TBL_SZ, LTC_FILE_BY_ID, LTC_ReadFile(), LTC_FileDef::mjVer, LTC_FileDef::mnVer, MSG_SIGNAL, PRINTF, LTC_TempConvertFile::tempCount, LTC_TempConvertFile::tempVal, and LTC_FileDef::type.

Referenced by LTC_RdFileOfFiles().

static void * LTC_ReadFile ( LTC_Wrk tw,
LTC_FileDef fdf,
unsigned int  fsz 
) [static]

Read File.

Parameters:
tw - LTC working storage.
fdf - File definition.
fsz - The number of bytes expected in the file after the header.
Return values:
Pointer to file data or NULL for failure.

References LTC_FileDef::bff, LTC_FileDef::fid, _LTC_Wrk::filePath, LTC_FileDef::mjVer, LTC_BinFileHeader::mjVer, LTC_FileDef::mnVer, LTC_BinFileHeader::mnVer, MSG_SIGNAL, PRINTF, LTC_BinFileHeader::size, LTC_BinFileHeader::type, and LTC_FileDef::type.

Referenced by LTC_RdFilterDefFile(), LTC_RdHpConfigFile(), and LTC_RdTempConvertFile().


Variable Documentation

short int LTC_rtdCnvTbl[]

Counts to temperature convertion table for RES/RTD type sensor.

Generated based on PDU/RTD circuit and vendor (Goodrich Model 0118MF) resistance-temperature relationship table.

Default built-in RES temperature conversion table.

Referenced by LTC_InitBuiltIn(), and LTC_RdFileOfFiles().

Smoothing filter definition for RES/RTD type sensor.

Long moving average filter to handle the excessive noise from the RES sensor electronics.

Default built-in RES sensor filter definition.

short int LTC_thrmCnvTbl[]

Counts to temperature convertion table for RIT/thermistor type sensor.

Generated based on PDU/thermistor circuit and vendor (YSI 44900) resistance-temperature relationship table.

Default built-in RIT temperature conversion table.

Referenced by LTC_InitBuiltIn(), and LTC_RdFileOfFiles().

Smoothing filter definition for RIT/thermistor type sensor.

Default built-in RIT sensor filter definition.


Generated on Mon Mar 28 15:07:40 2011 by  doxygen 1.5.8