GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSE / V2-0-1

Constituent: qse_print     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

qse_print.c File Reference

Program to dump the raw CCDSD packets as is. More...

#include "QSD/CCSDS_istream.h"
#include "QSD/CCSDS_telemetry.h"
#include "PBS/BSWP.ih"
#include "PBI/Endianness.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

Include dependency graph for qse_print.c:


Data Structures

struct  _Ctl
 Run time print options/parameters. More...
struct  _Packet
 A maximally sized CCSDS packet. More...

Defines

#define RND_TO(_x, _r)   (((_x) + (_r) - 1) / (_r)) * (_r)
 Round _x up to the nearest boundary of _r.

Typedefs

typedef enum _PRT_M PRT_M
 Typedef for enum PRT_M.
typedef _Ctl Ctl
 Typedef for struct _Ctl.
typedef _Packet Packet
 Typedef for struct _Packet.

Enumerations

enum  _PRT_M {
  PRT_M_HDR = 0x1,
  PRT_M_PKT = 0x2
}
 What to print. More...

Functions

static void report_usage (void)
 Brief explanation on qsep_print usage.
static int get_ctl (Ctl *ctl, int argc, char *const argv[])
 Examines the command line parameters and fills the print run time options control structure.
static void printRaw (const unsigned int *pdata, unsigned int cnt)
 Bare bones dump of the specified number of 32-bit words.
static void new_line (void)
 Prints a new line.
int QSE_print (int argc, char *const argv[])
 Process a file of CCSDS packets.
int main (int argc, char *const argv[])
 Process a file of physics events datagrams.

Detailed Description

Program to dump the raw CCDSD packets as is.

Author:
JJRussell - russell@slac.stanford.edu
   Cvs $Id: qse_print.c,v 1.5 2008/04/01 22:20:56 russell Exp $

Usage
   > qse_print  -n:<number# of packets> -s<# to skip> <file_name>
  

For a complete explanation type qse_print with no arguments

Define Documentation

#define RND_TO _x,
_r   )     (((_x) + (_r) - 1) / (_r)) * (_r)
 

Round _x up to the nearest boundary of _r.

Returns:
The rounded of value
Parameters:
_x The value to round
_r The rounding


Enumeration Type Documentation

enum _PRT_M
 

What to print.

Enumerator:
PRT_M_HDR  Print the header (formatted)
PRT_M_PKT  Print the packet


Function Documentation

static int get_ctl Ctl ctl,
int  argc,
char *const   argv[]
[static]
 

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

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

int main int  argc,
char *const   argv[]
 

Process a file of physics events datagrams.

Returns:
Overall status
Parameters:
argc The argument count
argv The vector of command line strings

static void printRaw const unsigned int *  pdata,
unsigned int  cnt
[static]
 

Bare bones dump of the specified number of 32-bit words.

Parameters:
pdata Pointer to the data to print
cnt The number of 32-bit words to dump

int QSE_print int  argc,
char *const   argv[]
 

Process a file of CCSDS packets.

Returns:
Overall status
Parameters:
argc The argument count
argv The vector of command line strings


Generated on Wed Jun 25 01:22:22 2008 by  doxygen 1.4.4