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

Power and communications fabric status. More...

#include <string.h>
#include "LCBD/LCBC.h"
#include "LCBD/LCBD_rst.h"
#include "LCBD/LCBR.h"
#include "LEM/encode_macros.h"
#include "LEM/encode_structs.h"
#include "LHK_DB/LHK_DB_pktdefs.h"
#include "PIG/power.h"
#include "PBS/MBA.h"
#include "PBS/WCT.h"
#include "LIH/LIH_msgs.h"
#include "LIH_prvdefs.h"

Include dependency graph for LIH_PigStatus.c:


Data Structures

struct  _PIG_Control
 Control structure for PIG status readout. More...

Defines

#define LIH_L_PIG_CYCLE   (1)
#define LIH_L_PIG_SIB_REG   (1)
#define LIH_L_PIG_CRU_REG   (3)
#define LIH_L_PIG_EBM_REG   (8)
#define LIH_L_PIG_GASU_REG   (LIH_L_PIG_CRU_REG + LIH_L_PIG_EBM_REG)
#define LIH_L_PIG_ALL_REG   (LIH_L_PIG_SIB_REG + LIH_L_PIG_GASU_REG)

Typedefs

typedef _PIG_Control PIG_Control
 Typedef for struct _PIG_Control.

Functions

static void PIGacquire (LIH_Control *hcb, void *prm, unsigned int minor)
 Acquire PIG status data for the requested minor cycle.
static __inline LCB_ci * read_cru (LCB_ci_cmdr *ci, unsigned int reg, unsigned int stall)
 Insert a command to read a CRU register.
static __inline LCB_ci * read_ebm (LCB_ci_cmdr *ci, unsigned int reg, unsigned int stall)
 Insert a command to read an EBM register.
unsigned int LIH_PIGinit (LIH_Control *hcb, LIH_cb_Acquire *acq, void **prm, unsigned int *minor)
 Initialize "PigStatus" acquisition.

Detailed Description

Power and communications fabric status.

CVS $Id: LIH_PigStatus.c,v 1.2 2008/08/28 21:02:56 apw Exp $
Author:
A.P.Waite
LIH_PigStatus.c is responsible for providing assorted power and communications fabric status information. This is generally controlled by the PIG package, hence the name of the telemetry packet "PigStatus".

Function Documentation

unsigned int LIH_PIGinit LIH_Control hcb,
LIH_cb_Acquire acq,
void **  prm,
unsigned int *  minor
 

Initialize "PigStatus" acquisition.

Parameters:
hcb (in) Control block
acq (out) PigStatus acquisition routine
prm (out) PigStatus acquisition routine parameter
minor (out) Number of minor cycles needed for PigStatus acquisition

void PIGacquire LIH_Control hcb,
void *  prm,
unsigned int  minor
[static]
 

Acquire PIG status data for the requested minor cycle.

Parameters:
hcb (in) Control block
prm (in) User parameter (PigStatus control block)
minor (in) Minor (PigStatus) cycle

static __inline LCB_ci * read_cru LCB_ci_cmdr *  ci,
unsigned int  reg,
unsigned int  stall
[static]
 

Insert a command to read a CRU register.

Parameters:
ci (in) Command item pointer (LCBD version)
reg (in) Register index
stall (in) Stall time (LCB 20 MHz tics)

static __inline LCB_ci * read_ebm LCB_ci_cmdr *  ci,
unsigned int  reg,
unsigned int  stall
[static]
 

Insert a command to read an EBM register.

Parameters:
ci (in) Command item pointer (LCBD version)
reg (in) Register index
stall (in) Stall time (LCB 20 MHz tics)


Generated on Fri Nov 14 01:10:05 2008 by  doxygen 1.4.4