GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LTC / dev > ltc_scp / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

LTC_scp_command.c File Reference

Functions for spacecraft side to command LAT LTC. More...

#include <LTC/LTC_msgs.h>
#include <LTC/LTC_cmddefs.h>
#include <LTC/LTC_dump.h>
#include <ITC/ITC_dump.h>
#include <ITC/ITC_pubdefs.h>
#include <MSG/MSG_pubdefs.h>
#include <CCSDS/CCSDS_pkt.h>
#include <PBS/MBA.h>
#include <PBS/BSWP.h>
#include <PBI/Endianness.h>

Defines

#define LTC_EXTERNAL_CMD_APID   0x658
#define TSCL   256

Functions

static void cmdFree (ITC_QueueItem *qitem, unsigned int status, void *prm0, void *prm1, void *prm2)
unsigned int LTC_sendRestart (unsigned short fidType, unsigned cnfgFid)
 Send telecommand to restart LTC.
unsigned int LTC_sendStart (unsigned ActvPssv)
 Send telecommand to restart LTC.
unsigned int LTC_sendStop (void)
 Send telecommand to stop LTC.
unsigned int LTC_sendSetMode (unsigned ActvPssv)
 Send telecommand to set active or passive mode in LTC.
unsigned int LTC_sendHtrOnOffCtl (unsigned int htrNum, unsigned int onOffCtl)
 Send telecommand to turn HP reservoir heater on, off or controlled.
unsigned int LTC_sendSetParam (int hpS, int rtL, int rtH, int rsL, int rsH, int rtDb)
 Send telecommand to set LTC control parameters.
unsigned int LTC_sendSetTlmFreq (unsigned int tlmFrq)
 Send telecommand to set LTC telemetry frequency.
unsigned int LTC_sendNoop (void)
 Send telecommand for LTC no-op.


Detailed Description

Functions for spacecraft side to command LAT LTC.


Define Documentation

#define LTC_EXTERNAL_CMD_APID   0x658

#define TSCL   256

Temperature scaling within signed int.

Referenced by LTC_sendSetParam().


Function Documentation

static void cmdFree ( ITC_QueueItem *  qitem,
unsigned int  status,
void *  prm0,
void *  prm1,
void *  prm2 
) [static]

Free memory after sending ITC commands.

Parameters:
qitem The memory buffer.
status Status of command.
prm0 Completion callback paramter 0.
prm1 Completion callback paramter 1.
prm2 Completion callback paramter 2.

Referenced by LTC_sendHtrOnOffCtl(), LTC_sendNoop(), LTC_sendRestart(), LTC_sendSetMode(), LTC_sendSetParam(), LTC_sendSetTlmFreq(), LTC_sendStart(), and LTC_sendStop().

unsigned LTC_sendHtrOnOffCtl ( unsigned int  htrNum,
unsigned int  onOffCtl 
)

Send telecommand to turn HP reservoir heater on, off or controlled.

Parameters:
htrNum - Heater number (0- 11).
onOffCtl - Value designating on, off or ctl: 0 = auto control 1 = always on 2 = always off
Return values:
LTC_SUCCESS Success

References cmdFree(), LTC_dumpHtrOnOffCmd(), and LTC_EXTERNAL_CMD_APID.

unsigned LTC_sendNoop ( void   ) 

Send telecommand for LTC no-op.

Return values:
LTC_SUCCESS Success

References cmdFree(), and LTC_EXTERNAL_CMD_APID.

unsigned LTC_sendRestart ( unsigned short  fidType,
unsigned  cnfgFid 
)

Send telecommand to restart LTC.

Parameters:
fidType - File id type, internal or file id
cnfgFid - HP Configuration File ID.
Return values:
LTC_SUCCESS Success

References cmdFree(), LTC_dumpRestartCmd(), and LTC_EXTERNAL_CMD_APID.

unsigned LTC_sendSetMode ( unsigned  ActvPssv  ) 

Send telecommand to set active or passive mode in LTC.

Parameters:
ActvPssv Active or Passive indicator: 0 = passive 1 = active
Return values:
LTC_SUCCESS Success

References cmdFree(), LTC_dumpSetModeCmd(), and LTC_EXTERNAL_CMD_APID.

unsigned int LTC_sendSetParam ( int  hpS,
int  rtH,
int  rtL,
int  rsH,
int  rsL,
int  rtDb 
)

Send telecommand to set LTC control parameters.

Parameters:
hpS - Selects heat pipes to get new parameters.
rtL - Low limit for RIT temperature.
rtH - High limit for RIT temperature.
rsL - Low limit for reservoir temperature.
rsH - High limit for reservoir temperature.
rtDb - RIT deadband delta.
Return values:
LTC_SUCCESS Success

References cmdFree(), LTC_dumpSetParamCmd(), LTC_EXTERNAL_CMD_APID, and TSCL.

unsigned LTC_sendSetTlmFreq ( unsigned int  tlmFrq  ) 

Send telecommand to set LTC telemetry frequency.

Parameters:
tlmFrq - Telemetry frequency in LTC cycles.
Return values:
LTC_SUCCESS Success

References cmdFree(), LTC_dumpSetTlmFreqCmd(), and LTC_EXTERNAL_CMD_APID.

unsigned LTC_sendStart ( unsigned  ActvPssv  ) 

Send telecommand to restart LTC.

Parameters:
ActvPssv Active or Passive indicator.
Return values:
LTC_SUCCESS Success

References cmdFree(), LTC_dumpStartCmd(), and LTC_EXTERNAL_CMD_APID.

unsigned LTC_sendStop ( void   ) 

Send telecommand to stop LTC.

Return values:
LTC_SUCCESS Success

References cmdFree(), LTC_dumpStopCmd(), and LTC_EXTERNAL_CMD_APID.


Generated on Mon Mar 28 14:59:10 2011 by  doxygen 1.5.8