GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> XFC / dev > gxfc / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

xfc_sdi.h File Reference

Creates and writes to a SDI like stream. More...

#include <stdio.h>
#include <EMP/LSD_sdi.h>

Classes

struct  _XfcSdi
 Sdi stream handle. More...

Typedefs

typedef struct _XfcSdi XfcSdi
 Typedef for struct _XfcSdi.

Functions

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.


Detailed Description

Creates and writes to a SDI like stream.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: xfc_sdi.h,v 1.2 2011/03/28 20:51:00 russell Exp $

Function Documentation

void xfc_sdi_construct ( XfcSdi 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 _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.

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 xfc_sdi_construct().


Generated on Mon Aug 8 10:34:02 2011 by  doxygen 1.5.8