GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / dev > ifilter / linux-gcc
#include <filter_sdi.h>
#include <LSE/CCSDS_ostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <EMP/LSD_sdi.h>
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) |
CVS $Id: filter_sdi.c,v 1.3 2011/03/27 04:55:31 russell Exp $
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.
0,to | satisfy the interface requriements of CCSDS_ostream |
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.
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 doFilter().
static int output_write | ( | CCSDS_ostream * | ostream, | |
LSD_sdiPds * | pds | |||
) | [static] |
Processes an output packet.
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.
unused | Not used | |
pds | The packet descriptor structure for the packet to be output |
Referenced by filter_sdi_construct().