GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / V4-5-5 > ifilter / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

filter_sdi.c File Reference

Services to write a file containing the contents of the SDI. More...

#include <filter_sdi.h>
#include <LSE/CCSDS_ostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <EMP/LSD_sdi.h>

Defines

#define _FILE_OFFSET_BITS   64

Functions

static int output_write_null (void *unused, LSD_sdiPds *pds)
 Processes an output packet.
static int output_write (CCSDS_ostream *ostream, LSD_sdiPds *pds)
 Processes an output packet.
static int file_write (FILE *file, void *buf, int len)
 A CCSDS_ostream output callback routine used when writing the specified buffer to a file.
void filter_sdi_construct (FilterSdi *sdi, const char *ofilename)
 Construct the output configuration structure.
void filter_sdi_destruct (FilterSdi *sdi)


Detailed Description

Services to write a file containing the contents of the SDI.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: filter_sdi.c,v 1.4 2012/12/20 21:37:52 russell Exp $

Function Documentation

static int file_write ( FILE *  file,
void *  buf,
int  len 
) [static]

A CCSDS_ostream output callback routine used when writing the specified buffer to a file.

Return values:
0,to satisfy the interface requriements of CCSDS_ostream
Parameters:
file The output file handle
buf The buffer to write
len The number of bytes in buffer to write

Referenced by filter_sdi_construct().

void filter_sdi_construct ( FilterSdi sdi,
const char *  ofilename 
)

Construct the output configuration structure.

Parameters:
sdi The science device interface handle
ofilename The name of the output file, may be HULL in which case no output file is written

References _FilterSdi::cbp, _FilterSdi::file, file_write(), output_write(), and output_write_null().

Referenced by createOutput().

static int output_write ( CCSDS_ostream *  ostream,
LSD_sdiPds *  pds 
) [static]

Processes an output packet.

Parameters:
ostream The CCSDS output stream handle
pds The packet descriptor structure for the packet to be output

Referenced by filter_sdi_construct().

static int output_write_null ( void *  unused,
LSD_sdiPds *  pds 
) [static]

Processes an output packet.

Parameters:
unused Not used
pds The packet descriptor structure for the packet to be output

Referenced by filter_sdi_construct().


Generated on Wed Jan 16 13:57:45 2013 by  doxygen 1.5.8