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

Constituent: pig_flying     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

state_p.h File Reference

Private data used in the accumulation of the state. More...

#include "PIG/state.h"
#include "LEM/list.h"

Include dependency graph for state_p.h:

This graph shows which files directly or indirectly include this file:


Enumerations

enum  { PIG_SSR_APID = 0x3FE }
enum  PWR_TWR_SELECT {
  PWR_CAL = 0x2,
  PWR_TKR = 0x1
}
 Options to the power_twr function.
enum  PWR_TWR_STATE {
  PWR_OFF = 0,
  PWR_ON = 1
}
 Options to the power_twr function.

Functions

unsigned initCrList (void *lists, unsigned int len, LEM_micr *cr)
 Initialize a multi-item command/response list.
unsigned readEbmState (LEM_micr *cr, PIG_ebmState *state)
 Take a snapshot of the state of the EBM.
unsigned readCruState (LEM_micr *cr, PIG_cruState *state)
 Take a snapshot of the state of the CRU.
unsigned readPduState (LEM_micr *cr, PIG_pduState *state, const PIG_cruState *cru)
 Take a snapshot of the 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

Private data used in the accumulation of the state.

Author:
James Swain & Owen Saxton
Id
state_p.h,v 1.2 2007/09/19 00:16:17 saxton Exp

Function Documentation

unsigned initCrList void *  lists,
unsigned int  len,
LEM_micr *  crl
 

Initialize a multi-item command/response list.

This routine optimally assigns portions of a supplied region to the various components of a LEM-style multi-item command/response list, and initializes the supplied list anchor block.

Because of RAD750 hardware restrictions, the assigned command and response lists may not share a cache line (32-byte aligned block) with any other usage. This means that the assigned decode list must be 32-byte aligned if it follows either of the other lists, and that a command or response list assigned at the end cannot extend beyond the last 32-byte boundary in the supplied region.

Parameters:
lists The address of the region to be used.
len The length of the region to be used.
crl The address of the list's anchor block to be filled.
Return values:
PIG_INMUD Success
PIG_CRLSMALL Region too small for a MICR list
CDR

CRD

DCR

DRC

RCD

RDC

unsigned readCruState LEM_micr *  cr,
PIG_cruState state
 

Take a snapshot of the state of the CRU.

Parameters:
cr Pointer to a mutli-item command and response list
state Pointer to a structure to receive the state of the CRU registers

unsigned readDbState LEM_micr *  cr,
PIG_dbState state
 

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

Parameters:
cr Pointer to a mutli-item command and response list
state Pointer to a structure to receive the state of the PIG_DB controlled registers

unsigned readEbmState LEM_micr *  cr,
PIG_ebmState state
 

Take a snapshot of the state of the EBM.

Parameters:
cr Pointer a mutli-item command and response list
state Pointer to a structure to receive the state of the EBM registers

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

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

Parameters:
cr Pointer to a mutli-item command and response list
state Pointer to a structure to receive the state of the PDU registers
cru Pointer to a structure holding the state of the CRU registers

unsigned readPwrState LEM_micr *  cr,
PIG_pwrState state
 

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

Parameters:
cr Pointer to a mutli-item command and response list
state Pointer to a structure to receive the state of the power registers


Generated on Thu Oct 11 05:41:10 2007 by  doxygen 1.4.4