GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LFS / V1-12-2

Constituent: lfs_dump     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LFS_dump.c File Reference

LFS 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/WCT.h"
#include "PBS/MBA.h"
#include "CCSDS/CCSDS_pkt.h"
#include "LFS/LFS_dump.h"
#include "LFS/LFS_tlmdefs.h"
#include "LFS/LFS_cmddefs.h"
#include "FBS/FBS_pubrtos.h"
#include "MSG/MSG_pubdefs.h"

Include dependency graph for LFS_dump.c:


Defines

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

Functions

static void print_header (const char *str)
static void print_trailer (void)
void LFS_dumpFileDumpCmd (const unsigned char *pkt)
 Display LLFSFILEDUMPC telecommand packet.
void LFS_dumpFileDeleteCmd (const unsigned char *pkt)
 Display LLFSFILEDELETE telecommand packet.
void LFS_dumpFileCopyCmd (const unsigned char *pkt)
 Display LLFSFILECOPY telecommand packet.
void LFS_dumpDirCreateCmd (const unsigned char *pkt)
 Display LLFSDIRCREATE telecommand packet.
void LFS_dumpDirDeleteCmd (const unsigned char *pkt)
 Display LLFSDIRDELETE telecommand packet.
void LFS_dumpDirDumpCmd (const unsigned char *pkt)
 Display LLFSDIRDUMP telecommand packet.
void LFS_dumpSysStatCmd (const unsigned char *pkt)
 Display LLFSSYSSTATUS telecommand packet.
void LFS_dumpSysMountCmd (const unsigned char *pkt)
 Display LLFSSYSCHECK telecommand packet.
void LFS_dumpSysCheckCmd (const unsigned char *pkt)
 Display LLFSSYSCHECK telecommand packet.
void LFS_dumpSysRepairCmd (const unsigned char *pkt)
 Display LLFSSYSREPAIR telecommand packet.
void LFS_dumpSysFormatCmd (const unsigned char *pkt)
 Display LLFSSYSCHECK telecommand packet.
void LFS_dumpNoopCmd (const unsigned char *pkt)
 Display LLFSNOOP telecommand packet.
void LFS_dumpDirDumpTlm (const unsigned char *pkt)
 Display LLFSDIRLIST telemetry packets.
void LFS_dumpRootDumpTlm (const unsigned char *pkt)
 Display LLFSROOTLIST telemetry packets.
void LFS_dumpEmptyDirTlm (const unsigned char *pkt)
 Display LLFSDIREMPTY telemetry packets.
void LFS_dumpSysStatTlm (const unsigned char *pkt)
 Display LLFSSYSLIST telemetry packets.
void LFS_dumpFileDumpTlm (const unsigned char *pkt)
 Display LFSDUMPCTDB telemetry packets.

Variables

static const char * re = "======================================"
static const char * rm = "--------------------------------------"
static const char * devNames [8]
static const char * unitStr [16]

Detailed Description

LFS 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.

#define FILE_DUMP_LINE_SIZE   16
 

The number of bytes in one line of file dump data display.


Function Documentation

void LFS_dumpDirCreateCmd const unsigned char *  pkt  ) 
 

Display LLFSDIRCREATE telecommand packet.

Display a LFS directory create telecommand packet (LFSDIRCREATE).

Parameters:
pkt The telecommand packet.

void LFS_dumpDirDeleteCmd const unsigned char *  pkt  ) 
 

Display LLFSDIRDELETE telecommand packet.

Display a LFS directory delete telecommand packet (LFSDIRDELETE).

Parameters:
pkt The telecommand packet.

void LFS_dumpDirDumpCmd const unsigned char *  pkt  ) 
 

Display LLFSDIRDUMP telecommand packet.

Display a LFS directory dump telecommand packet (LFSDIRDUMP).

Parameters:
pkt The telecommand packet.

void LFS_dumpDirDumpTlm const unsigned char *  pkt  ) 
 

Display LLFSDIRLIST telemetry packets.

Display a LFS directory dump telemetry packet.

Parameters:
pkt The telemetry packet.

void LFS_dumpEmptyDirTlm const unsigned char *  pkt  ) 
 

Display LLFSDIREMPTY telemetry packets.

Display a LFS empty directory dump telemetry packet.

Parameters:
pkt The telemetry packet.

void LFS_dumpFileCopyCmd const unsigned char *  pkt  ) 
 

Display LLFSFILECOPY telecommand packet.

Display a LFS file copy telecommand packet (LFSFILECOPY).

Parameters:
pkt The telecommand packet.

void LFS_dumpFileDeleteCmd const unsigned char *  pkt  ) 
 

Display LLFSFILEDELETE telecommand packet.

Display a LFS file delete telecommand packet (LFSFILEDELETE) .

Parameters:
pkt The telecommand packet.

void LFS_dumpFileDumpCmd const unsigned char *  pkt  ) 
 

Display LLFSFILEDUMPC telecommand packet.

Display a LFS file dump CTDB or a file dump SSR telecommand packet (LFSFILEDUMPC or LFSFILEDUMPS).

Parameters:
pkt The telecommand packet.

void LFS_dumpFileDumpTlm const unsigned char *  pkt  ) 
 

Display LFSDUMPCTDB telemetry packets.

Display a LFS file dump data telemetry packet.

Parameters:
pkt The telemetry packet.

void LFS_dumpNoopCmd const unsigned char *  pkt  ) 
 

Display LLFSNOOP telecommand packet.

Display a LFS file no-op telecommand packet (LFSNOOP).

Parameters:
pkt The telecommand packet.

void LFS_dumpRootDumpTlm const unsigned char *  pkt  ) 
 

Display LLFSROOTLIST telemetry packets.

Display a LFS root dump telemetry packet.

Parameters:
pkt The telemetry packet.

void LFS_dumpSysCheckCmd const unsigned char *  pkt  ) 
 

Display LLFSSYSCHECK telecommand packet.

Display a LFS file system check telecommand packet (LFSSYSCHECK).

Parameters:
pkt The telecommand packet.

void LFS_dumpSysFormatCmd const unsigned char *  pkt  ) 
 

Display LLFSSYSCHECK telecommand packet.

Display a LFS file system check telecommand packet (LFSSYSFORMAT).

Parameters:
pkt The telecommand packet.

void LFS_dumpSysMountCmd const unsigned char *  pkt  ) 
 

Display LLFSSYSCHECK telecommand packet.

Display a LFS file system mount telecommand packet (LFSSYSMOUNT).

Parameters:
pkt The telecommand packet.

void LFS_dumpSysRepairCmd const unsigned char *  pkt  ) 
 

Display LLFSSYSREPAIR telecommand packet.

Display a LFS file system repair telecommand packet (LFSSYSREPAIR).

Parameters:
pkt The telecommand packet.

void LFS_dumpSysStatCmd const unsigned char *  pkt  ) 
 

Display LLFSSYSSTATUS telecommand packet.

Display a LFS file system status request telecommand packet (LFSSYSSTATUS).

Parameters:
pkt The telecommand packet.

void LFS_dumpSysStatTlm const unsigned char *  pkt  ) 
 

Display LLFSSYSLIST telemetry packets.

Display a LFS file system status telemetry packet.

Parameters:
pkt The telemetry packet.

static void print_header const char *  str  )  [static]
 

Print display header.

Parameters:
str A string to print with the header.

static void print_trailer void   )  [static]
 

Print display trailer.


Variable Documentation

devNames [static]
 

Initial value:

 
{
        FILE_DEV_NAME_BOOT,
        FILE_DEV_NAME_RAM,
        FILE_DEV_NAME_EE0,
        FILE_DEV_NAME_EE1,
        FILE_DEV_NAME_TMP,
        "USR0",
        "USR1",
        "UNKNOWN"
}
A lookup table of file device names indexed by the file device number.

const char* re = "======================================" [static]
 

A seperator string.

const char* rm = "--------------------------------------" [static]
 

A seperator string.

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.


Generated on Wed Dec 5 01:38:52 2007 by  doxygen 1.4.4