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

Constituent: qlra     Tag: linux-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 "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 <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>

Include dependency graph for QLRA_read.c:


Data Structures

struct  _QLRA_procPrm

Typedefs

typedef _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.10 2009/05/15 23:47:54 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

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 Sun Jun 14 02:17:02 2009 by  doxygen 1.4.4