GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QLSM / V2-0-1 > qlsm_print / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

qlsm_print.c File Reference

Prints the magic 7. More...

#include <QLSM/QLSM_istream.h>
#include <QLSM/QLSM_timetone.h>
#include <QLSM/QLSM_attitude.h>
#include <QLSM/QLSM_ancillary.h>
#include <QLSM/QLSM_type.h>
#include <QLSM/QLSM_expand.h>
#include <QLSM/QLSM_print.h>
#include <QSD/CCSDS_istream.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>

Classes

struct  _Rto
 The runtime parameters. More...

Typedefs

typedef struct _Rto Rto
 Typedef for struct _Rto.

Functions

static int get_rto (Rto *rto, int argc, char *const argv[])
 Examines the command line parameters and fills the print run time options control structure.
static void report_usage (void)
 Brief explanation on qlsm_print usage.
static int countem (unsigned int word)
 Counts the number of set bits in word.
int main (int argc, char *const argv[])
 Prints the contents of the magic 7 packets.


Detailed Description

Prints the magic 7.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: qlsm_print.c,v 1.2 2011/03/30 21:53:58 russell Exp $

Function Documentation

static int countem ( unsigned int  word  )  [static]

Counts the number of set bits in word.

Parameters:
word The word to count the set bits in

Referenced by main().

static int get_rto ( Rto rto,
int  argc,
char *const   argv[] 
) [static]

Examines the command line parameters and fills the print run time options control structure.

Parameters:
rto The parameter run time options block.
argc The number of command line parameters.
argv The array of pointers to the command line parameters.
Return values:
0,Everything is okay.
-1,Incorrect command usage. Usually this means that the input file name was absent.

References _Rto::ifile, _Rto::nheader, QLSM_TYPE_M_ALL, QLSM_TYPE_M_ANCILLARY, QLSM_TYPE_M_ATTITUDE, QLSM_TYPE_M_TIMETONE, report_usage(), and _Rto::which.

Referenced by main().

int main ( int  argc,
char *const   argv[] 
)

Prints the contents of the magic 7 packets.

Parameters:
argc The argument count
argv The vector of arguments
Usage is
     $qlsm_print  -h<nlines> -f -ATX <filename>\n"

For usage details do

    $qlsm_print <no arguments> or
    $qlsm_print ?

References countem(), _QLSM_istreamDsc::dat, get_rto(), _Rto::ifile, _QLSM_istreamDsc::len32, _Rto::nheader, QLSM_TYPE_K_ANCILLARY, QLSM_TYPE_K_ATTITUDE, QLSM_TYPE_K_TIMETONE, QLSM_TYPE_M_ANCILLARY, QLSM_TYPE_M_ATTITUDE, QLSM_TYPE_M_TIMETONE, _QLSM_istreamDsc::type, _QLSM_istreamDsc::version, and _Rto::which.


Generated on Tue Nov 29 19:44:33 2011 by  doxygen 1.5.8