GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QLRA / V0-1-5

Constituent: qlra     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QLRA_read.c File Reference

Routines for reading files of LRA data sent from the LAT. More...

#include "QLRA/QLRA.h"
#include "QLRA/QLRA_msgs.h"
#include "LRA/LRA_telem.h"
#include "QSE/CCSDS_istream.h"
#include "QSE/CCSDS_apidDsc.h"
#include "CCSDS/CCSDS_pkt.h"
#include "CCSDS/CCSDS_swap.h"
#include "LSF/LSF.h"
#include "LSF/LSF_ids.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"
#include "PBS/BSWP.h"
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>

Include dependency graph for QLRA_read.c:


Functions

static void procDgm (int secs, const LSF_datagram *dgm, int dLeng, void *parm, QLRA_regsCb regsRtn, QLRA_esrCb esrRtn, QLRA_statsCb statsRtn)
 Process a datagram.
unsigned QLRA_readSci (char *fName, void *parm, QLRA_regsCb regsRtn, QLRA_esrCb esrRtn, QLRA_statsCb statsRtn)
 Read the contents of an LRA datagram file.
unsigned QLRA_readDiag (char *fName, void *parm, QLRA_regsCb regsRtn)
 Read the contents of an LRA packet file.

Detailed Description

Routines for reading files of LRA data sent from the LAT.

Author:
Owen H Saxton
Id
QLRA_read.c,v 1.6 2007/12/04 21:23:21 saxton Exp

Function Documentation

void procDgm int  secs,
const LSF_datagram *  dgm,
int  dLeng,
void *  parm,
QLRA_regsCb  regsRtn,
QLRA_esrCb  esrRtn,
QLRA_statsCb  statsRtn
[static]
 

Process a datagram.

This routine processes a complete datagram of LRA data. This data consists of an array of 32-bit numbers, in the correct byte order for the host architecture.

Parameters:
secs The time the datagram was sent, in spacecraft units.
dgm The datagram to be processed.
dLeng The length of the datagram.
parm User parameter to pass to the processing routine.
regsRtn Routine to call when a complete set of register values has been assembled. Can be NULL.
esrRtn Routine to call for an ESR datagram. Can be NULL.
statsRtn Routine to call for a statistics datagram. Can be NULL.

unsigned QLRA_readDiag char *  fName,
void *  parm,
QLRA_regsCb  regsRtn
 

Read the contents of an LRA packet file.

This routine reads a file of LRA diagnostic data returned from the LAT and calls a processing routine whenever a complete set of data has been assemnled.

Parameters:
fName The name of the file to be processed
parm User parameter to pass to the processing routine.
regsRtn Routine to process a set of register data. May be NULL.
Return values:
QLRA_SUCCESS Success

unsigned QLRA_readSci char *  fName,
void *  parm,
QLRA_regsCb  regsRtn,
QLRA_esrCb  esrRtn,
QLRA_statsCb  statsRtn
 

Read the contents of an LRA datagram file.

This routine reads a file of LRA datagrams returned from the LAT, and calls a user-supplied processing routine for each type of data found.

Parameters:
fName The name of the file to be displayed
parm User parameter to pass to the processing routine.
regsRtn Routine to call when a set of register values is read. Can be NULL.
esrRtn Routine to call when a set of ESR data is read. Can be NULL.
statsRtn Routine to call when a set of statistics data is read. Can be NULL.
Return values:
QLRA_SUCCESS Success


Generated on Wed Dec 5 07:51:41 2007 by  doxygen 1.4.4