GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCM / V1-4-4

Constituent: lcm_siu     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

LCM_houseSIU.c File Reference

SIU generic functions for housekeeping support functions. More...

#include <string.h>
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_apidefs.h"
#include "LHK/LHK_pubdefs.h"
#include "LHK_DB/LHK_DB_pktdefs.h"
#include "MDB/MDB_pubdefs.h"
#include "PBS/MBA.h"
#include "LCM/LCM_msgs.h"
#include "LCM_prvdefs.h"

Include dependency graph for LCM_houseSIU.c:


Defines

#define LCM_L_PACKET   ( sizeof(LCM_pkt2aidx) / sizeof(unsigned int) )

Functions

static LHK_PacketStatus LCM_capture (unsigned int *sav, unsigned int abas, unsigned int aidx, unsigned int seq, unsigned char *out)
 Copy housekeeping packets from the LCM packet database.
static unsigned int control_rx (void *prm, const ITC_QueueItem *qitem, void *pay, unsigned int len)
 Process messages arriving on the control queue.
unsigned int LCM_houseInitializeSIU (LCM_Control *ctl)
 Initialize the housekeeping function (specific to SIU).

Variables

const unsigned int LCM_pkt2aidx []
 Map dense packet number to APID index.
unsigned int LCM_aidx2pkt [ITC_L_APID_HOUSE]
 Reverse map from APID index to hardware packet.

Detailed Description

SIU generic functions for housekeeping support functions.

CVS $Id: LCM_houseSIU.c,v 1.2 2007/11/04 20:49:55 apw Exp $
Author:
A.P.Waite
LCM_house.c provides SIU specific support for LCM's housekeeping functions.

Function Documentation

static unsigned int control_rx void *  prm,
const ITC_QueueItem *  qitem,
void *  pay,
unsigned int  len
[static]
 

Process messages arriving on the control queue.

Parameters:
prm (in) User context parameter
qitem (in) Queue item to process
pay (in) Queue item payload
len (in) Queue item payload length
control_rx() is the callback routine for any traffic arriving on the control queue. For now, that's CPU status records and ITC configuration records coming from the EPUs.

static LHK_PacketStatus LCM_capture unsigned int *  sav,
unsigned int  abas,
unsigned int  aidx,
unsigned int  seq,
unsigned char *  out
[static]
 

Copy housekeeping packets from the LCM packet database.

Parameters:
sav (in) User parameter (update counter of last packet copy)
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 LCM_houseInitializeSIU LCM_Control ctl  ) 
 

Initialize the housekeeping function (specific to SIU).

Parameters:
ctl (in) LCM control block
LCM_houseInitializeSIU() builds up the SIU specific elements for providing housekeeping information.


Variable Documentation

const unsigned int LCM_pkt2aidx[LCM_L_PACKET]
 

Initial value:

{
    LHK_DB_PKT_STATUS_SIU,            
    LHK_DB_PKT_STATUS_EPU0,           
    LHK_DB_PKT_STATUS_EPU1,           
    LHK_DB_PKT_STATUS_EPU2,           

    LHK_DB_PKT_TASKCFG_SIU,           
    LHK_DB_PKT_TASKCFG_EPU0,          
    LHK_DB_PKT_TASKCFG_EPU1,          
    LHK_DB_PKT_TASKCFG_EPU2,          

    LHK_DB_PKT_LPACFG_0_SIU,          
    LHK_DB_PKT_LPACFG_0_EPU0,         
    LHK_DB_PKT_LPACFG_0_EPU1,         
    LHK_DB_PKT_LPACFG_0_EPU2,         

    LHK_DB_PKT_SIU_STATS,             
    LHK_DB_PKT_EPU0_STATS,            
    LHK_DB_PKT_EPU1_STATS,            
    LHK_DB_PKT_EPU2_STATS,            







}
Map dense packet number to APID index.


Generated on Mon Nov 5 02:23:28 2007 by  doxygen 1.4.4