GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIH / V0-2-5 > lih / mv2304
#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"
Classes | |
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 struct _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. |
CVS $Id: LIH_PigStatus.c,v 1.2 2008/08/28 21:02:56 apw Exp $
unsigned int LIH_PIGinit | ( | LIH_Control * | hcb, | |
LIH_cb_Acquire * | acq, | |||
void ** | prm, | |||
unsigned int * | minor | |||
) |
Initialize "PigStatus" acquisition.
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.
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.
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.
ci | (in) Command item pointer (LCBD version) | |
reg | (in) Register index | |
stall | (in) Stall time (LCB 20 MHz tics) |