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_CmdCnts.c File Reference

Everything to handle the ITC style "CmdCnt" packets. More...

#include <string.h>
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_pubdefs.h"
#include "LHK_DB/LHK_DB_pktdefs.h"
#include "LHK/LHK_pubdefs.h"
#include "LHK/LHK_tlmdefs.h"
#include "LIH/LIH_msgs.h"

Include dependency graph for LIH_CmdCnts.c:


Defines

#define LIH_K_CMD_PKTS   (2)
#define LIH_K_CMD_TASKS   (6)

Functions

static LHK_PacketStatus LIH_captureCmdCnts (unsigned char *mon, unsigned int abas, unsigned int aidx, unsigned int seq, unsigned char *out)
 Capture ITC command count records into housekeeping/diagnostic packets.
unsigned int LIH_defineCmdCnt ()
 Initialize "CmdCnt" packet capture.

Variables

static unsigned int taskList [LIH_K_CMD_PKTS][LIH_K_CMD_TASKS]
 Telemetry block content decription (lists of tasks).

Detailed Description

Everything to handle the ITC style "CmdCnt" packets.

CVS $Id: LIH_CmdCnts.c,v 1.2 2007/12/07 03:59:21 apw Exp $
Author:
A.P.Waite
LIH_CmdCnts.c provides all the mechanism for initializing and capturing housekeeping's "CmdCnt" packets.

Function Documentation

static LHK_PacketStatus LIH_captureCmdCnts unsigned char *  mon,
unsigned int  abas,
unsigned int  aidx,
unsigned int  seq,
unsigned char *  out
[static]
 

Capture ITC command count 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

unsigned int LIH_defineCmdCnt void   ) 
 

Initialize "CmdCnt" packet capture.

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


Variable Documentation

static unsigned int taskList[LIH_K_CMD_PKTS][LIH_K_CMD_TASKS] [static]
 

Initial value:

 {
    {
        ITC_TID_LCM,
        ITC_TID_LFS,
        ITC_TID_LHK_M,
        ITC_TID_LIM,
        ITC_TID_LSM_M,
        ITC_TID_LSW
    },
    {
        ITC_TID_LCI,  
        ITC_TID_LMC,  
        ITC_TID_LTC,
        ITC_TID_LPA_M,
        ITC_TID_LRA,
        0                                
    }
}
Telemetry block content decription (lists of tasks).


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