GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > DUMP / V0-0-2

Constituent: dump     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

dump.c File Reference

Framework used to parse the contents of a stream of datagrams. More...

#include "dump_p.h"
#include "list_p.h"
#include "QSD/CCSDS_apidDsc.h"
#include "QSD/CCSDS_istream.h"
#include "QSD/CCSDS_telemetry.h"
#include "LSE/LSE_ids.h"
#include "LSF/LSF.h"
#include "LSF/LSF_scan.h"
#include "LSF/LSF_print.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Include dependency graph for dump.c:


Functions

static LSF_scanContributionHandler screen_dgm (ApidStream *astream, const LSF_datagram *dgm)
 Screens out any datagrams that are not the ones of interest.
size_t DUMP_sizeofAstream (void)
 Return the size of the ApidStream structure.
ApidStreamDUMP_constructAstream (void *astream, unsigned int dgmid, unsigned short apid, unsigned char *dsc_buf, size_t buf_size, DUMP_dgmHandler *dgm_handler, void *rsrc)
 Construct an ApidStream structure using the resources provided.
void * DUMP_getResource (ApidStream *astream)
 Hand back the pointer to the application resources.
int DUMP_process (const char *file, int dmp_ccsds)
 Process a file of science datagrams.

Variables

static LL_node apid_list = {NULL, 0, NULL}

Detailed Description

Framework used to parse the contents of a stream of datagrams.

Author:
James Swain & Owen Saxton
Id
dump.c,v 1.3 2008/04/17 02:08:10 apw Exp

Function Documentation

ApidStream* DUMP_constructAstream void *  astream,
unsigned int  dgmid,
unsigned short  apid,
unsigned char *  dsc_buf,
size_t  buf_size,
DUMP_dgmHandler dgm_handler,
void *  rsrc
 

Construct an ApidStream structure using the resources provided.

Returns:
Pointer to the constructed ApidStream structure

void* DUMP_getResource ApidStream astream  ) 
 

Hand back the pointer to the application resources.

Parameters:
astream Pointer to the ApidStream structure
Returns:
Pointer handed to DUMP when DUMP_constructAstream was invoked

int DUMP_process const char *  file,
int  dmp_ccsds
 

Process a file of science datagrams.

Parameters:
file Name of the file to process
dmp_ccsds Flag indicating whether (1) or not (0) to print out the raw CCSDS
Return values:
0 Success
~0 Failure

size_t DUMP_sizeofAstream void   ) 
 

Return the size of the ApidStream structure.

Returns:
Size of the ApidStream structure

LSF_scanContributionHandler screen_dgm ApidStream astream,
const LSF_datagram *  dgm
[static]
 

Screens out any datagrams that are not the ones of interest.

Parameters:
astream ApidStream pointer
dgm The datagram
Returns:
Either a stop scan signal or the contribution handler


Generated on Thu Apr 17 01:16:25 2008 by  doxygen 1.4.4