GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LTC / V6-2-4 > ltc_dump / linux-gcc
#include <LTC/LTC_cmddefs.h>
#include <LTC/LTC_tlmdefs.h>
#include <LTC/LTC_dump.h>
#include <FBS/FBS_pubrtos.h>
#include <CCSDS/CCSDS_pkt.h>
#include <PBS/MBA.h>
#include <stdio.h>
Defines | |
#define | TSCL 256 |
Functions | |
static void | print_header (const char *str) |
static void | print_trailer (void) |
void | LTC_dumpRestartCmd (const unsigned char *pkt) |
Display LTCRESTART telecommand packet. | |
void | LTC_dumpStartCmd (const unsigned char *pkt) |
Display LTCSTART telecommand packet. | |
void | LTC_dumpStopCmd (const unsigned char *pkt) |
Display LTCSTOP telecommand packet. | |
void | LTC_dumpSetModeCmd (const unsigned char *pkt) |
Display LTCSETMODE telecommand packet. | |
void | LTC_dumpHtrOnOffCmd (const unsigned char *pkt) |
Display LTCHTRONOFFCTL telecommand packet. | |
void | LTC_dumpSetParamCmd (const unsigned char *pkt) |
Display LTCSETPARAM telecommand packet. | |
void | LTC_dumpSetTlmFreqCmd (const unsigned char *pkt) |
Display LTCSETTLMFREQ telecommand packet. | |
void | LTC_dumpDiagTelem (const unsigned char *pkt) |
Display LTC diagnostic telemetry packet. | |
Variables | |
static const char * | re = "======================================" |
static const char * | rm = "--------------------------------------" |
static const char * | fidStr [] |
static const char * | modeStr [] |
static const char * | ctlStr [] |
static const char * | statusStr [] |
static const char * | sensorStr [] |
#define TSCL 256 |
Temperature scaling within signed int.
Referenced by LTC_dumpDiagTelem(), and LTC_dumpSetParamCmd().
void LTC_dumpDiagTelem | ( | const unsigned char * | pkt | ) |
Display LTC diagnostic telemetry packet.
Display a LTC diagnostic telemetry packet.
pkt | The telemetry packet. |
References _LTC_DiagLTC_Tlm::actvHp, _LTC_RawAdcStatus::bf, _LTC_ResRitStatus::bf, _LTC_ResRitSnsrSel::bf, _LTC_DiagLTC_Tlm::dbDelta, _LTC_DiagLTC_Tlm::htrCmd, _LTC_DiagLTC_Tlm::htrReg, print_header(), _LTC_DiagLTC_Tlm::rawAdc, _LTC_DiagLTC_Tlm::resHi, _LTC_DiagLTC_Tlm::resLo, _LTC_DiagLTC_Tlm::ritHi, _LTC_DiagLTC_Tlm::ritLo, sensorStr, _LTC_DiagLTC_Tlm::snsrSel, _LTC_DiagLTC_Tlm::snsrStatus, statusStr, _LTC_DiagLTC_Tlm::temps, TSCL, _LTC_ResRitStatus::uc, _LTC_HeaterState::us, _LTC_HeaterCommand::us, _LTC_RawAdcStatus::us, _LTC_HeaterMode::us, and _LTC_ResRitSnsrSel::us.
void LTC_dumpHtrOnOffCmd | ( | const unsigned char * | pkt | ) |
Display LTCHTRONOFFCTL telecommand packet.
Display a LTC set command mode telecommand packet (LTCSETPARAM).
pkt | The telecommand packet. |
References ctlStr, print_header(), and print_trailer().
void LTC_dumpRestartCmd | ( | const unsigned char * | pkt | ) |
Display LTCRESTART telecommand packet.
Display a LTC restart telecommand packet (LTCRESTART).
pkt | The telecommand packet. |
References fidStr, print_header(), and print_trailer().
void LTC_dumpSetModeCmd | ( | const unsigned char * | pkt | ) |
Display LTCSETMODE telecommand packet.
Display a LTC set command mode telecommand packet (LTCSETMODE).
pkt | The telecommand packet. |
References modeStr, print_header(), and print_trailer().
void LTC_dumpSetParamCmd | ( | const unsigned char * | pkt | ) |
Display LTCSETPARAM telecommand packet.
Display a LTC set command mode telecommand packet (LTCSETPARAM).
pkt | The telecommand packet. |
References print_header(), print_trailer(), and TSCL.
void LTC_dumpSetTlmFreqCmd | ( | const unsigned char * | pkt | ) |
Display LTCSETTLMFREQ telecommand packet.
Display a LTC set command mode telecommand packet (LTCSETTLMFREQ).
pkt | The telecommand packet. |
References print_header(), and print_trailer().
void LTC_dumpStartCmd | ( | const unsigned char * | pkt | ) |
Display LTCSTART telecommand packet.
Display a LTC start telecommand packet (LTCSTART).
pkt | The telecommand packet. |
References modeStr, print_header(), and print_trailer().
void LTC_dumpStopCmd | ( | const unsigned char * | pkt | ) |
Display LTCSTOP telecommand packet.
Display a LTC stop telecommand packet (LTCSTOP).
pkt | The telecommand packet. |
References print_header(), and print_trailer().
static void print_header | ( | const char * | str | ) | [static] |
Print display header.
str | A string to print with the header. |
Referenced by LTC_dumpDiagTelem(), LTC_dumpHtrOnOffCmd(), LTC_dumpRestartCmd(), LTC_dumpSetModeCmd(), LTC_dumpSetParamCmd(), LTC_dumpSetTlmFreqCmd(), LTC_dumpStartCmd(), and LTC_dumpStopCmd().
static void print_trailer | ( | void | ) | [static] |
Print display trailer.
References re.
Referenced by LTC_dumpHtrOnOffCmd(), LTC_dumpRestartCmd(), LTC_dumpSetModeCmd(), LTC_dumpSetParamCmd(), LTC_dumpSetTlmFreqCmd(), LTC_dumpStartCmd(), and LTC_dumpStopCmd().
ctlStr [static] |
Initial value:
{ "AUTO", "ON", "OFF", }
Referenced by LTC_dumpHtrOnOffCmd().
fidStr [static] |
Initial value:
{ "BUILT-IN", "BY NAME", "BY FILE ID", }
Referenced by LTC_dumpRestartCmd().
modeStr [static] |
Initial value:
{ "PASSIVE", "ACTIVE", }
Referenced by LTC_dumpSetModeCmd(), and LTC_dumpStartCmd().
const char* re = "======================================" [static] |
A seperator string.
Referenced by print_header(), and print_trailer().
const char* rm = "--------------------------------------" [static] |
A seperator string.
Referenced by print_header().
sensorStr [static] |
Initial value:
{ "DSHP_P", "DSHP_R", "XLHP_P", "XLHP_R", "RSVR_P", "RSVR_R", }
Referenced by LTC_dumpDiagTelem().
statusStr [static] |
Initial value:
{ "NOT READ", "GOOD READ", "BAD READ", "BROKEN", }
Referenced by LTC_dumpDiagTelem().