GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LTC / V6-2-4 > ltc_dump / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LTC_dump.c File Reference

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

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


Detailed Description

LTC command and telemetry display function definitions.

Author:
D.L.Wood

Define Documentation

#define TSCL   256

Temperature scaling within signed int.

Referenced by LTC_dumpDiagTelem(), and LTC_dumpSetParamCmd().


Function Documentation

void LTC_dumpDiagTelem ( const unsigned char *  pkt  ) 

void LTC_dumpHtrOnOffCmd ( const unsigned char *  pkt  ) 

Display LTCHTRONOFFCTL telecommand packet.

Display a LTC set command mode telecommand packet (LTCSETPARAM).

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

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

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

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

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

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

Parameters:
pkt The telecommand packet.

References print_header(), and print_trailer().

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

Print display header.

Parameters:
str A string to print with the header.

References re, and rm.

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]


Variable Documentation

ctlStr [static]

Initial value:

{
        "AUTO",
        "ON",
        "OFF",
}
Strings for LTC control modes.

Referenced by LTC_dumpHtrOnOffCmd().

fidStr [static]

Initial value:

{
        "BUILT-IN",
        "BY NAME",
        "BY FILE ID",
}
Strings for LTC file ID types

Referenced by LTC_dumpRestartCmd().

modeStr [static]

Initial value:

{
        "PASSIVE",
        "ACTIVE",
}
Strings for LTC command modes.

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",
}
Strings for LTC sensor types.

Referenced by LTC_dumpDiagTelem().

statusStr [static]

Initial value:

{
        "NOT READ",
        "GOOD READ",
        "BAD READ",
        "BROKEN",
}
Strings for LTC sensor status.

Referenced by LTC_dumpDiagTelem().


Generated on Fri Sep 30 18:49:21 2011 by  doxygen 1.5.8