GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> XFC / V0-3-1 > gxfc / rhel5-64
#include <xfc_sdi.h>
#include <stdio.h>
#include <stdlib.h>
#include <EMP/LSD_sdi.h>
#include <LSE/CCSDS_ostream.h>
Functions | |
static int | output_write (CCSDS_ostream *ostream, LSD_sdiPds *pds) |
Processes an output packet. | |
static int | output_write_null (void *unused, LSD_sdiPds *pds) |
Processes an output packet. | |
void | xfc_sdi_construct (XfcSdi *sdi, const char *ofilename) |
Construct the output configuration structure. | |
void | xfc_sdi_destruct (XfcSdi *sdi) |
int | xfc_sdi_write (FILE *file, void *buf, int len) |
A CCSDS_ostream output callback routine used when writing the specified buffer to a file. |
CVS $Id: xfc_sdi.c,v 1.2 2011/03/28 20:51:00 russell Exp $
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 xfc_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 xfc_sdi_construct().
void xfc_sdi_construct | ( | XfcSdi * | 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 _XfcSdi::cbp, _XfcSdi::file, _XfcRto::ofile, output_write(), output_write_null(), and xfc_sdi_write().
int xfc_sdi_write | ( | FILE * | file, | |
void * | buf, | |||
int | len | |||
) |
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 xfc_sdi_construct().