GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LIH / V0-2-3

Constituent: lih     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LIH_GasuCounts.c File Reference

GASU counter acquisition (both GEM and EBM, via LRA). More...

#include "CCSDS/CCSDS_pkt.h"
#include "LHK/LHK_pubdefs.h"
#include "LHK/LHK_tlmdefs.h"
#include "LHK_DB/LHK_DB_pktdefs.h"
#include "LRA/LRA.h"
#include "MDB/MDB_pubdefs.h"
#include "PBS/WCT.h"
#include "LIH/LIH_msgs.h"
#include "LIH_prvdefs.h"

Include dependency graph for LIH_GasuCounts.c:


Functions

static LHK_PacketStatus LIH_captureGasuCounts (unsigned char *prm, unsigned int abas, unsigned int aidx, unsigned int seq, unsigned char *out)
 Capture CPU "top" records into housekeeping/diagnostic packets.
unsigned int LIH_defineGasuCounts ()
 Initialize capture of GASU counters (GEM and EBM).

Variables

WCT_time LIH_lastSend [2]
 Remember timestamps on the most recent packet sent (by segment).

Detailed Description

GASU counter acquisition (both GEM and EBM, via LRA).

CVS $Id: LIH_GasuCounts.c,v 1.2 2007/12/07 03:59:21 apw Exp $
Author:
A.P.Waite
LIH_GasuCounts.c provides a housekeeping interface to capture the the GEM and EBM counters. The counters are physically read (and extended into to 8-byte counters) by the LRA task. This function simply sponges off all the hard work already done by LRA.

Function Documentation

static LHK_PacketStatus LIH_captureGasuCounts unsigned char *  prm,
unsigned int  abas,
unsigned int  aidx,
unsigned int  seq,
unsigned char *  out
[static]
 

Capture CPU "top" records into housekeeping/diagnostic packets.

Parameters:
prm (in) User parameter (not used)
abas (in) Base of APID table (ITC_K_APID_HOUSE or ITC_K_APID_DIAG)
aidx (in) APID index
seq (in) CCSDS sequence count
out (in) Output buffer (beginning of CCSDS telemetry header)
Returns:
A member of the LHK_PacketStatus enumeration

unsigned int LIH_defineGasuCounts void   ) 
 

Initialize capture of GASU counters (GEM and EBM).

Return values:
LHK_GENERROR Generic error
LHK_SUCCESS Success
LIH_defineGasuCounts() initializes any necessary resources to capture "GasuCounts" packets, and puts the handler definition in the packet table.


Generated on Fri Nov 14 01:09:59 2008 by  doxygen 1.4.4