GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PIG / V9-0-0

Constituent: pig_flying     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

state.c File Reference

Routines to capture the state of PIG controlled registers. More...

#include "PIG/PIG_msgs.h"
#include "PIG/power.h"
#include "state_p.h"
#include "LEM/defs.h"
#include "LEM/list.h"
#include "LEM/encode.h"
#include "LEM/decode.h"

Include dependency graph for state.c:


Functions

unsigned readEbmState (LEM_micr *cr, PIG_ebmState *state)
 Take a snapshot of the initial state of the EBM.
unsigned readCruState (LEM_micr *cr, PIG_cruState *state)
 Take a snapshot of the initial state of the CRU.
unsigned readPduState (LEM_micr *cr, PIG_pduState *state, const PIG_cruState *cru)
 Take a snapshot of the initial state of the PDU(s).
unsigned readDbState (LEM_micr *cr, PIG_dbState *state)
 Take a snapshot of the current contents of the registers controlled by PIG_DB.
unsigned readPwrState (LEM_micr *cr, PIG_pwrState *state)
 Take a snapshot of the current contents of the power registers.

Detailed Description

Routines to capture the state of PIG controlled registers.

Author:
James Swain - jswain@slac.stanford.edu

Function Documentation

unsigned readCruState LEM_micr *  cr,
PIG_cruState state
 

Take a snapshot of the initial state of the CRU.

Parameters:
state Pointer to a structure for caching the state of the CRU registers
cr Pointer to a structure holding correctly aligned mutli-item command and response lists

unsigned readDbState LEM_micr *  cr,
PIG_dbState state
 

Take a snapshot of the current contents of the registers controlled by PIG_DB.

Parameters:
state Pointer to a structure holding the state of the PIG_DB controlled registers
cr Pointer to a structure holding correctly aligned mutli-item command and response lists

unsigned readEbmState LEM_micr *  cr,
PIG_ebmState state
 

Take a snapshot of the initial state of the EBM.

Parameters:
state Pointer to a structure for caching the state of the EBM registers
cr Pointer to a structure holding correctly aligned mutli-item command and response lists

unsigned readPduState LEM_micr *  cr,
PIG_pduState state,
const PIG_cruState cru
 

Take a snapshot of the initial state of the PDU(s).

Parameters:
state Pointer to a structure for caching the state of the PDU registers
cru Pointer to a structure holding the state of the CRU registers
cr Pointer to a structure holding correctly aligned mutli-item command and response lists

unsigned readPwrState LEM_micr *  cr,
PIG_pwrState state
 

Take a snapshot of the current contents of the power registers.

Parameters:
state Pointer to a structure for caching the state of the power registers
cr Pointer to a structure holding correctly aligned mutli-item command and response lists


Generated on Thu Oct 26 13:57:19 2006 by  doxygen 1.4.4