GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LTC / V6-2-3 > ltc / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LTC_file.c File Reference

Thermal Control file management functions. More...

#include "fcntl.h"
#include "unistd.h"
#include "LTC/LTC_msgs.h"
#include "PBS/MBA.h"
#include "FBS/FBS_pubrtos.h"
#include "ltcPrivate.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

unsigned int LTC_InitFile ( LTC_Wrk tw  ) 

Initialize file buffer storage.

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

static unsigned int LTC_RdFileOfFiles ( LTC_Wrk tw  )  [static]

Read LTC Master File-of-Files Configuration File.

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

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.

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

Read Heat Pipe Configuration File.

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

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.

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.


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.

LTC_FltDf LTC_rtdFltDf

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.

LTC_FltDf LTC_thrmFltDf

Smoothing filter definition for RIT/thermistor type sensor.

Default built-in RIT sensor filter definition.


Generated on Fri Sep 18 14:11:15 2009 by  doxygen 1.5.3