GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QLRA / dev > qlra / rhel5-64


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 <QSD/CCSDS_istream.h>
#include <QSD/CCSDS_apidDsc.h>
#include <QSD/CCSDS_telemetry.h>
#include <LSF/LSF.h>
#include <LSF/LSF_ids.h>
#include <MSG/MSG_pubdefs.h>
#include <PBS/MBA.h>
#include <PBS/BSWP.h>
#include <PBI/PTR.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>

Classes

struct  _QLRA_procPrm

Typedefs

typedef struct _QLRA_procPrm QLRA_procPrm

Functions

static int checkPacket (void *parm, void *stream, const CCSDS_telemetry *pkt, CCSDS_apidDsc *dsc)
static int checkStatus (int status)
static int processDatagram (void *parm, const void *data, int dLeng)
static int resolvePacket (void *parm, const CCSDS_telemetry *pkt, CCSDS_apidDsc **dsc)
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.11 2011/03/29 21:14:16 saxton Exp

Function Documentation

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

References _QLRA_regData::nCc, _QLRA_regData::nFe, _QLRA_regData::nRc, _QLRA_regData::nReg, _QLRA_regData::nTem, _QLRA_regData::tMask, _QLRA_regData::value, and _QLRA_regData::width.

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 Tue Mar 29 14:23:26 2011 by  doxygen 1.5.8