GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIH / V0-2-7 > lih / linux-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>

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.3 2011/03/29 22:38:00 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

Referenced by LIH_defineGasuCounts().

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.

References LIH_captureGasuCounts().

Referenced by initializeAcq().


Generated on Fri Sep 30 19:15:35 2011 by  doxygen 1.5.8