GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LTC / V6-2-1
Constituent: ltc     Tag: sun-gcc
#include "string.h"
#include "stdlib.h"
#include "LTC/LTC_msgs.h"
#include "PBS/WUT.h"
#include "PBS/TOV.h"
#include "PBS/TOC.h"
#include "CCSDS/CCSDS_pkt.h"
#include "LEM/defs.h"
#include "LEM/encode.h"
#include "LEM/encode_structs.h"
#include "LEM/decode.h"
#include "IMM/FPM_pubdefs.h"
#include "ITC/ITC_pubdefs.h"
#include "LCBD/LCBD.h"
#include "MSG/MSG_pubdefs.h"
#include "ltcPrivate.h"
Include dependency graph for LTC_ltc.c:
Functions | |
static unsigned int | LTC_LcbRspCB (LTC_Wrk *tw, LCBD_xcb *xcb) |
LCB callback to process responses from reads of PDU registers. | |
static void | LTC_freeCmd (ITC_QueueItem *qitem, unsigned int status, LTC_Wrk *tw, void *prm1, void *prm2) |
static void | LTC_freeTelem (ITC_QueueItem *qitem, unsigned int status, LTC_Wrk *tw, void *prm1, void *prm2) |
static unsigned int | LTC_CnvSmthSnsrs (LTC_Wrk *tw, LTC_HeatPipe *hp, LTC_SnsrType sTyp) |
Converts sensor values to smoothed temperature for a heat pipe. | |
static int | LTC_IsGoodTemps (const LTC_HeatPipe *hp) |
Check goodness of collected temperature values for this heat pipe. | |
static void | LTC_CalcHtrOnOff (LTC_Wrk *tw, const int h) |
Calculate on or off commands for a HP reservoir heater. | |
static signed int | LTC_EstTmp (const LTC_Temperature *tmp) |
Estimates temperature for next cycle. | |
static signed int | LTC_Smooth (LTC_Temperature *tmp) |
Returns smoothed value for temperature. | |
static void | LTC_CnvAdcToTmp (LTC_Sensor *snsr, LTC_Temperature *tmp) |
Converts sensor values to temperature for given heat pipe. | |
unsigned short | GetADCBits (const unsigned int *pduR, const int adc) |
Get 12-bit ADC values from PDU register given ADC number. | |
static void | LTC_CmdHtrs (LTC_Wrk *ltcW) |
Issue "on" or off commands to HP reservoir heaters. | |
static void | LTC_SndTlm (LTC_Wrk *tw) |
Collect, format and send telemetry for LTC. | |
unsigned int | LTC_ProcPduRsp (LTC_Wrk *tw, LTC_CntlProc_Prm *rb, const LTC_rl *rl) |
Callback to process responses from asynchrous reads of PDU registers. | |
void | LTC_ReadSensors (LTC_Wrk *tw) |
Start cycle of LTC control - issue LCB commands. | |
WUT_cb_status | LTC_WkUp (void *p, WUT_tmr *wut) |
Wake up LTC for another processing cycle and restart wake timer. |
|
Get 12-bit ADC values from PDU register given ADC number.
8-----8-----8-----8-----8-----8-----8-----8-----8-----8-----8-----8-----8 | | | | | | | | | | | | | | | | | | | | | | | | | --mbz-^-m^----6---^----5---^----4---^---3----^---2----^---1----^----0---- ADC Numbers Byte ADC# OffSet Operation ---- ------ --------- 6 1 0xFFF 5 3 >>4 4 4 0xFFF 3 6 >>4 2 7 0xFFF 1 9 >>4 0 10 0xFFF |
|
Calculate on or off commands for a HP reservoir heater.
|
|
Issue "on" or off commands to HP reservoir heaters.
|
|
Converts sensor values to temperature for given heat pipe.
|
|
Converts sensor values to smoothed temperature for a heat pipe.
|
|
Estimates temperature for next cycle.
|
|
Free memory after sending ITC command packets.
|
|
Free memory after sending ITC telemetry packets.
|
|
Check goodness of collected temperature values for this heat pipe.
|
|
LCB callback to process responses from reads of PDU registers.
|
|
Callback to process responses from asynchrous reads of PDU registers.
|
|
Start cycle of LTC control - issue LCB commands.
|
|
Returns smoothed value for temperature.
|
|
Collect, format and send telemetry for LTC.
|
|
Wake up LTC for another processing cycle and restart wake timer.
|