GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> DUMP / dev > dump / rhel5-64
#include <dump_p.h>
#include <list_p.h>
#include <QSD/CCSDS_apidDsc.h>
#include <QSD/CCSDS_istream.h>
#include <QSD/CCSDS_telemetry.h>
#include <LSF/LSF.h>
#include <LSF/LSF_scan.h>
#include <LSF/LSF_print.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Functions | |
size_t | DUMP_sizeofAstream (void) |
Return the size of the ApidStream structure. | |
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. | |
void * | DUMP_getResource (ApidStream *astream) |
Hand back the pointer to the application resources. | |
void | DUMP_getTime (ApidStream *astream, unsigned int *secs, unsigned int *usecs) |
Get the packet time for the current datagram. | |
int | DUMP_process (const char *file, int dmp_ccsds) |
Process a file of science datagrams. |
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.
astream | Pointer to the ApidStream structure. | |
dgmid | The ID of the datagrams to process. | |
apid | The Apid of the packets to process. | |
dsc_buf | The address of the buffer to contain each complete datagram. | |
buf_size | The size, in bytes, of the datagram buffer. | |
dgm_handler | The address of the routine to be called to process each complete datagram. | |
rsrc | Resource handle to be associated with the stream. |
References _ApidStream::dgm_handler, _ApidStream::dgmid, _ApidStream::dsc, _ApidStream::dsc_buf, LL_registerNode(), _ApidStream::rsrc, _ApidStream::secs, and _ApidStream::usecs.
void* DUMP_getResource | ( | ApidStream * | astream | ) |
Hand back the pointer to the application resources.
astream | Pointer to the ApidStream structure |
References _ApidStream::rsrc.
void DUMP_getTime | ( | ApidStream * | astream, | |
unsigned int * | secs, | |||
unsigned int * | usecs | |||
) |
Get the packet time for the current datagram.
This routine returns the time fields from the last telemetry packet of the current datagram.
astream | Pointer to the ApidStream structure. | |
secs | The address of an integer to receive the seconds value. | |
usecs | The address of an integer to receive the microseconds value. |
References _ApidStream::secs, and _ApidStream::usecs.
int DUMP_process | ( | const char * | file, | |
int | dmp_ccsds | |||
) |
Process a file of science datagrams.
file | Name of the file to process | |
dmp_ccsds | Flag indicating whether (1) or not (0) to print out the raw CCSDS |
0 | Success | |
~0 | Failure |
References _ApidStream::dsc, LL_getPayload(), _ApidStream::secs, and _ApidStream::usecs.
size_t DUMP_sizeofAstream | ( | void | ) |
Return the size of the ApidStream structure.