GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIH / V0-2-7 > lih / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LIH_TopCpu.c File Reference

Everything to capture the LSW "top" packets. More...

#include <string.h>
#include <CCSDS/CCSDS_pkt.h>
#include <ITC/ITC_apidefs.h>
#include <ITC/ITC_pubdefs.h>
#include <LHK_DB/LHK_DB_pktdefs.h>
#include <LHK/LHK_pubdefs.h>
#include <LHK/LHK_tlmdefs.h>
#include <LSW/LSW_pubdefs.h>
#include <PBS/MBA.h>
#include <PBS/WCT.h>
#include <TRC/TRC_pubdefs.h>
#include <LIH/LIH_msgs.h>

Functions

static LHK_PacketStatus LIH_captureTopCpu (unsigned char *mon, unsigned int abas, unsigned int aidx, unsigned int seq, unsigned char *out)
 Capture CPU "top" records into housekeeping/diagnostic packets.
unsigned int LIH_defineTopCpu ()
 Initialize "top" packet capture.


Detailed Description

Everything to capture the LSW "top" packets.

CVS $Id: LIH_TopCpu.c,v 1.2 2011/03/29 22:38:00 apw Exp $
Author:
A.P.Waite
LIH_TopCpu.c provides all the mechanism for initializing and capturing housekeeping's "top" packets.

Function Documentation

static LHK_PacketStatus LIH_captureTopCpu ( unsigned char *  mon,
unsigned int  abas,
unsigned int  aidx,
unsigned int  seq,
unsigned char *  out 
) [static]

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

Parameters:
mon (in) Base pointer of monitor records (user parameter)
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_defineTopCpu().

unsigned int LIH_defineTopCpu ( void   ) 

Initialize "top" packet capture.

Return values:
LIH_GENERROR Generic error
LIH_SUCCESS Success
LIH_defineTopCpu() initializes any necessary resources to capture "TopCpu" packets, and puts the handler definition in the packet table.

References LIH_captureTopCpu().

Referenced by initializeAcq().


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