GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCM / dev > lcm_dump / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LCM_dump.c File Reference

LCM command and telemetry display function definitions. More...

#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]


Detailed Description

LCM command and telemetry display function definitions.

Author:
D.L.Wood

Define Documentation

#define ASCTIME ( _tstruct,
_str,
_size   )     asctime_r((_tstruct), (_str), (_size))

Portable call to asctime_r() function.

Referenced by LCM_dumpMsgOutCTDB().


Function Documentation

void LCM_dumpErrorConfigCmd ( const unsigned char *  pkt  ) 

Display LLCMERRORCFG telecommand packet.

Display a LCM error handling configure telecommand packet (LLCMERRORCFG).

Parameters:
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.

Parameters:
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).

Parameters:
pkt The telecommand packet.

References print_header(), print_trailer(), and unitStr.

void LCM_dumpModDumpTlm ( const unsigned char *  pkt  ) 

void LCM_dumpMsgOutCmd ( const unsigned char *  pkt  ) 

Display LLCMMSGOUT telecommand packet.

Display a LCM MSG output configure telecommand packet (LLCMMSGOUT).

Parameters:
pkt The telecommand packet.

References interStr, print_header(), print_trailer(), severityStrCmd, and unitStr.

void LCM_dumpMsgOutCTDB ( const unsigned char *  pkt  ) 

void LCM_dumpNoopCmd ( const unsigned char *  pkt  ) 

Display LLCMNOOP telecommand packet.

Display a LCM no-op telecommand packet (LLCMNOOP).

Parameters:
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.

Parameters:
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).

Parameters:
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).

Parameters:
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).

Parameters:
pkt The telecommand packet.

References print_header(), print_trailer(), and unitStr.

void LCM_dumpTaskDumpTlm ( const unsigned char *  pkt  ) 

static void print_header ( const char *  str  )  [static]

static void print_trailer ( void   )  [static]


Variable Documentation

classStr [static]

Initial value:

 
{
        "UNDEF",
        "PCI",
        "MEM COR",
        "MEM UNCOR",
}
Name table of RAD750 error classes.

Referenced by LCM_dumpErrorConfigCmd().

interStr [static]

Initial value:

 
{
        "UNDEF",
        "CTDB",
        "SSR",
}
Name table of MSG output interfaces.

Referenced by LCM_dumpMsgOutCmd().

levelStr [static]

Initial value:

 
{
        "UNDEF",
        "COUNTED",
        "DIAGNOSTIC",
        "CRITICAL",
}
Name table of RAD750 error levels.

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"
}
Name table of MSG severity levels as seen in telecommands.

Referenced by LCM_dumpMsgOutCmd().

severityStrTelem [static]

Initial value:

{
        "SUCCESS",
        "WARNING",
        "INFORMATION",
        "ERROR",
        "DISABLE"
}
Name table of MSG severity levels as seen in telemetry.

Referenced by LCM_dumpMsgOutCTDB().

unitStr [static]

Initial value:

 
{
        "SIU",
        "EPU0",
        "EPU1",
        "EPU2",
        "EPU3",
        "SDI",
        "SC",
        "BCAST",
        "UNKNOWN",
        "UNKNOWN",
        "UNKNOWN",
        "UNKNOWN",
        "UNKNOWN",
        "UNKNOWN",
        "UNKNOWN",
        "UNKNOWN",
}
Name table of LAT unit node designations.

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().


Generated on Wed Mar 30 16:02:11 2011 by  doxygen 1.5.8