GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIH / V0-2-7 > lih / linux-gcc
#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>
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). |
CVS $Id: LIH_CmdCnts.c,v 1.3 2011/03/29 22:38:00 apw Exp $
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.
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) |
Referenced by LIH_defineCmdCnt().
unsigned int LIH_defineCmdCnt | ( | void | ) |
Initialize "CmdCnt" packet capture.
LIH_GENERROR | Generic error | |
LIH_SUCCESS | Success |
References LIH_captureCmdCnts().
Referenced by initializeAcq().
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 } }