GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LTC / dev > ltc_scp / rhel5-32
#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. |
#define LTC_EXTERNAL_CMD_APID 0x658 |
APID for LTC external telecommands.
Referenced by LTC_sendHtrOnOffCtl(), LTC_sendNoop(), LTC_sendRestart(), LTC_sendSetMode(), LTC_sendSetParam(), LTC_sendSetTlmFreq(), LTC_sendStart(), and LTC_sendStop().
#define TSCL 256 |
Temperature scaling within signed int.
Referenced by LTC_sendSetParam().
static void cmdFree | ( | ITC_QueueItem * | qitem, | |
unsigned int | status, | |||
void * | prm0, | |||
void * | prm1, | |||
void * | prm2 | |||
) | [static] |
Free memory after sending ITC commands.
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.
htrNum | - Heater number (0- 11). | |
onOffCtl | - Value designating on, off or ctl: 0 = auto control 1 = always on 2 = always off |
LTC_SUCCESS | Success |
References cmdFree(), LTC_dumpHtrOnOffCmd(), and LTC_EXTERNAL_CMD_APID.
unsigned LTC_sendNoop | ( | void | ) |
Send telecommand for LTC no-op.
LTC_SUCCESS | Success |
References cmdFree(), and LTC_EXTERNAL_CMD_APID.
unsigned LTC_sendRestart | ( | unsigned short | fidType, | |
unsigned | cnfgFid | |||
) |
Send telecommand to restart LTC.
fidType | - File id type, internal or file id | |
cnfgFid | - HP Configuration File ID. |
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.
ActvPssv | Active or Passive indicator: 0 = passive 1 = active |
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.
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. |
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.
tlmFrq | - Telemetry frequency in LTC cycles. |
LTC_SUCCESS | Success |
References cmdFree(), LTC_dumpSetTlmFreqCmd(), and LTC_EXTERNAL_CMD_APID.
unsigned LTC_sendStart | ( | unsigned | ActvPssv | ) |
Send telecommand to restart LTC.
ActvPssv | Active or Passive indicator. |
LTC_SUCCESS | Success |
References cmdFree(), LTC_dumpStartCmd(), and LTC_EXTERNAL_CMD_APID.
unsigned LTC_sendStop | ( | void | ) |
Send telecommand to stop LTC.
LTC_SUCCESS | Success |
References cmdFree(), LTC_dumpStopCmd(), and LTC_EXTERNAL_CMD_APID.