GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCM / dev > lcm_dump / linux-gcc
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include <PBI/Endianness.h>
#include <PBS/MBA.h>
#include <CCSDS/CCSDS_pkt.h>
#include <FBS/FBS_pubrtos.h>
#include <LCM/LCM_dump.h>
#include <LCM/LCM_cmddefs.h>
#include <LCM/LCM_tlmdefs.h>
#include <MSG/MSG_pubdefs.h>
#include <MSG/MSG_macdefs.h>
Defines | |
#define | ASCTIME(_tstruct, _str, _size) asctime_r((_tstruct), (_str), (_size)) |
Functions | |
static void | print_header (const char *str) |
static void | print_trailer (void) |
void | LCM_dumpModDumpCmd (const unsigned char *pkt) |
Display LLCMMODDUMP telecommand packet. | |
void | LCM_dumpTaskDumpCmd (const unsigned char *pkt) |
Display LLCMTASKDUMP telecommand packet. | |
void | LCM_dumpScrubRunCmd (const unsigned char *pkt) |
Display LLCMSCRUBRUN telecommand packet. | |
void | LCM_dumpScrubConfigCmd (const unsigned char *pkt) |
Display LLCMSCRUBCFG telecommand packet. | |
void | LCM_dumpErrorConfigCmd (const unsigned char *pkt) |
Display LLCMERRORCFG telecommand packet. | |
void | LCM_dumpMsgOutCmd (const unsigned char *pkt) |
Display LLCMMSGOUT telecommand packet. | |
void | LCM_dumpNoopCmd (const unsigned char *pkt) |
Display LLCMNOOP telecommand packet. | |
void | LCM_dumpModDumpTlm (const unsigned char *pkt) |
Display LLCMMODLIST telemetry packets. | |
void | LCM_dumpTaskDumpTlm (const unsigned char *pkt) |
Display LLCMTASKLIST telemetry packets. | |
void | LCM_dumpPciErrTlm (const unsigned char *pkt) |
Display LLCMPCIERR telemetry packets. | |
void | LCM_dumpMemErrTlm (const unsigned char *pkt) |
Display LLCMMEMERR telemetry packets. | |
void | LCM_dumpMsgOutCTDB (const unsigned char *pkt) |
Display LCMMSGOUTC telemetry packets. | |
Variables | |
static const char * | re = "======================================" |
static const char * | rm = "--------------------------------------" |
static const char * | unitStr [16] |
static const char * | levelStr [4] |
static const char * | classStr [4] |
static const char * | severityStrTelem [5] |
static const char * | severityStrCmd [5] |
static const char * | interStr [3] |
#define ASCTIME | ( | _tstruct, | |||
_str, | |||||
_size | ) | asctime_r((_tstruct), (_str), (_size)) |
Portable call to asctime_r() function.
Referenced by LCM_dumpMsgOutCTDB().
void LCM_dumpErrorConfigCmd | ( | const unsigned char * | pkt | ) |
Display LLCMERRORCFG telecommand packet.
Display a LCM error handling configure telecommand packet (LLCMERRORCFG).
pkt | The telecommand packet. |
References classStr, levelStr, print_header(), print_trailer(), and unitStr.
void LCM_dumpMemErrTlm | ( | const unsigned char * | pkt | ) |
Display LLCMMEMERR telemetry packets.
Display a LCM MEM error report telemetry packet.
pkt | The telemetry packet. |
References _LCM_DUMPFLAGS::bf, _LCM_LLCMMEMERR_Tlm::dmpFlags, _LCM_LLCMMEMERR_Tlm::memCount, _LCM_LLCMMEMERR_Tlm::memLog0, _LCM_LLCMMEMERR_Tlm::memLog1, _LCM_LLCMMEMERR_Tlm::memStat, print_header(), print_trailer(), unitStr, and _LCM_DUMPFLAGS::us.
void LCM_dumpModDumpCmd | ( | const unsigned char * | pkt | ) |
Display LLCMMODDUMP telecommand packet.
Display a LCM module dump CTDB telecommand packet (LLCMMODDUMP).
pkt | The telecommand packet. |
References print_header(), print_trailer(), and unitStr.
void LCM_dumpModDumpTlm | ( | const unsigned char * | pkt | ) |
Display LLCMMODLIST telemetry packets.
Display a LCM module info dump telemetry packet.
pkt | The telemetry packet. |
References _LCM_DUMPFLAGS::bf, _LCM_LLCMMODLIST_Tlm::bssAddr, _LCM_LLCMMODLIST_Tlm::bssSize, _LCM_LLCMMODLIST_Tlm::constit, _LCM_LLCMMODLIST_Tlm::dataAddr, _LCM_LLCMMODLIST_Tlm::dataSize, _LCM_LLCMMODLIST_Tlm::dmpFlags, _LCM_LLCMMODLIST_Tlm::fileId, _LCM_LLCMMODLIST_Tlm::majVer, _LCM_LLCMMODLIST_Tlm::mid, _LCM_LLCMMODLIST_Tlm::minVer, _LCM_LLCMMODLIST_Tlm::package, _LCM_LLCMMODLIST_Tlm::patVer, print_header(), print_trailer(), _LCM_LLCMMODLIST_Tlm::textAddr, _LCM_LLCMMODLIST_Tlm::textSize, unitStr, and _LCM_DUMPFLAGS::us.
void LCM_dumpMsgOutCmd | ( | const unsigned char * | pkt | ) |
Display LLCMMSGOUT telecommand packet.
Display a LCM MSG output configure telecommand packet (LLCMMSGOUT).
pkt | The telecommand packet. |
References interStr, print_header(), print_trailer(), severityStrCmd, and unitStr.
void LCM_dumpMsgOutCTDB | ( | const unsigned char * | pkt | ) |
Display LCMMSGOUTC telemetry packets.
Display a LCM MEM error report telemetry packet.
pkt | The telemetry packet. |
References ASCTIME, _LCM_CpuSerial::bf, _LCM_MsgStruct::code, _LCM_MsgStruct::facility, _LCM_MsgStruct::function, _LCM_MsgStruct::mnemonic, _LCM_LCMMSGOUTC_Tlm::msgStruct, print_header(), print_trailer(), _LCM_MsgStruct::serial, severityStrTelem, _LCM_MsgStruct::task, _LCM_MsgStruct::text, _LCM_MsgStruct::time, and unitStr.
void LCM_dumpNoopCmd | ( | const unsigned char * | pkt | ) |
Display LLCMNOOP telecommand packet.
Display a LCM no-op telecommand packet (LLCMNOOP).
pkt | The telecommand packet. |
References print_header(), print_trailer(), and unitStr.
void LCM_dumpPciErrTlm | ( | const unsigned char * | pkt | ) |
Display LLCMPCIERR telemetry packets.
Display a LCM PCI error report telemetry packet.
pkt | The telemetry packet. |
References _LCM_DUMPFLAGS::bf, _LCM_LLCMPCIERR_Tlm::dmpFlags, _LCM_LLCMPCIERR_Tlm::pciAddr, _LCM_LLCMPCIERR_Tlm::pciBus, _LCM_LLCMPCIERR_Tlm::pciStatus, print_header(), print_trailer(), unitStr, and _LCM_DUMPFLAGS::us.
void LCM_dumpScrubConfigCmd | ( | const unsigned char * | pkt | ) |
Display LLCMSCRUBCFG telecommand packet.
Display a LCM scrub configure telecommand packet (LLCMSCRUBCFG).
pkt | The telecommand packet. |
References print_header(), print_trailer(), and unitStr.
void LCM_dumpScrubRunCmd | ( | const unsigned char * | pkt | ) |
Display LLCMSCRUBRUN telecommand packet.
Display a LCM scrub run telecommand packet (LLCMSCRUBRUN).
pkt | The telecommand packet. |
References print_header(), print_trailer(), and unitStr.
void LCM_dumpTaskDumpCmd | ( | const unsigned char * | pkt | ) |
Display LLCMTASKDUMP telecommand packet.
Display a LCM task dump CTDB telecommand packet (LLCMTASKDUMP).
pkt | The telecommand packet. |
References print_header(), print_trailer(), and unitStr.
void LCM_dumpTaskDumpTlm | ( | const unsigned char * | pkt | ) |
Display LLCMTASKLIST telemetry packets.
Display a LCM task info dump telemetry packet.
pkt | The telemetry packet. |
References _LCM_DUMPFLAGS::bf, _LCM_LLCMTASKLIST_Tlm::delay, _LCM_LLCMTASKLIST_Tlm::dmpFlags, _LCM_LLCMTASKLIST_Tlm::entry, _LCM_LLCMTASKLIST_Tlm::error, _LCM_LLCMTASKLIST_Tlm::name, _LCM_LLCMTASKLIST_Tlm::options, print_header(), print_trailer(), _LCM_LLCMTASKLIST_Tlm::priority, _LCM_LLCMTASKLIST_Tlm::stackBase, _LCM_LLCMTASKLIST_Tlm::stackCur, _LCM_LLCMTASKLIST_Tlm::stackEnd, _LCM_LLCMTASKLIST_Tlm::stackHigh, _LCM_LLCMTASKLIST_Tlm::stackLim, _LCM_LLCMTASKLIST_Tlm::stackMar, _LCM_LLCMTASKLIST_Tlm::stackSP, _LCM_LLCMTASKLIST_Tlm::status, _LCM_LLCMTASKLIST_Tlm::tid, unitStr, and _LCM_DUMPFLAGS::us.
static void print_header | ( | const char * | str | ) | [static] |
Print display header.
str | A string to print with the header. |
Referenced by LCM_dumpErrorConfigCmd(), LCM_dumpMemErrTlm(), LCM_dumpModDumpCmd(), LCM_dumpModDumpTlm(), LCM_dumpMsgOutCmd(), LCM_dumpMsgOutCTDB(), LCM_dumpNoopCmd(), LCM_dumpPciErrTlm(), LCM_dumpScrubConfigCmd(), LCM_dumpScrubRunCmd(), LCM_dumpTaskDumpCmd(), and LCM_dumpTaskDumpTlm().
static void print_trailer | ( | void | ) | [static] |
Print display trailer.
References re.
Referenced by LCM_dumpErrorConfigCmd(), LCM_dumpMemErrTlm(), LCM_dumpModDumpCmd(), LCM_dumpModDumpTlm(), LCM_dumpMsgOutCmd(), LCM_dumpMsgOutCTDB(), LCM_dumpNoopCmd(), LCM_dumpPciErrTlm(), LCM_dumpScrubConfigCmd(), LCM_dumpScrubRunCmd(), LCM_dumpTaskDumpCmd(), and LCM_dumpTaskDumpTlm().
classStr [static] |
Initial value:
{ "UNDEF", "PCI", "MEM COR", "MEM UNCOR", }
Referenced by LCM_dumpErrorConfigCmd().
interStr [static] |
Initial value:
{ "UNDEF", "CTDB", "SSR", }
Referenced by LCM_dumpMsgOutCmd().
levelStr [static] |
Initial value:
{ "UNDEF", "COUNTED", "DIAGNOSTIC", "CRITICAL", }
Referenced by LCM_dumpErrorConfigCmd().
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().
severityStrCmd [static] |
Initial value:
{ "SUCCESS", "INFORMATION", "WARNING", "ERROR", "DISABLE" }
Referenced by LCM_dumpMsgOutCmd().
severityStrTelem [static] |
Initial value:
{ "SUCCESS", "WARNING", "INFORMATION", "ERROR", "DISABLE" }
Referenced by LCM_dumpMsgOutCTDB().
unitStr [static] |
Initial value:
{ "SIU", "EPU0", "EPU1", "EPU2", "EPU3", "SDI", "SC", "BCAST", "UNKNOWN", "UNKNOWN", "UNKNOWN", "UNKNOWN", "UNKNOWN", "UNKNOWN", "UNKNOWN", "UNKNOWN", }
Referenced by LCM_dumpErrorConfigCmd(), LCM_dumpMemErrTlm(), LCM_dumpModDumpCmd(), LCM_dumpModDumpTlm(), LCM_dumpMsgOutCmd(), LCM_dumpMsgOutCTDB(), LCM_dumpNoopCmd(), LCM_dumpPciErrTlm(), LCM_dumpScrubConfigCmd(), LCM_dumpScrubRunCmd(), LCM_dumpTaskDumpCmd(), and LCM_dumpTaskDumpTlm().