GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PIG / V8-8-2

Constituent: pig_flying     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

pig_p.h File Reference

Power and the Initialisation of the GASU routines. More...

#include "PIG/pig.h"
#include "LEM/defs.h"
#include "PIG_DB/schema.h"

Include dependency graph for pig_p.h:

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


Functions

void delay_off (void)
 Delay the task for pig_off_delay 60ths of a second.
void delay_on (void)
 Delay the task for pig_on_delay 60ths of a second.
unsigned get_epu_id (unsigned index)
 Maps an index to an EPU id (part of the machinery that allows the specification of a power on order).
unsigned get_free_id (unsigned index)
 Maps an index to an FREE id (part of the machinery that allows the specification of a power on order).
unsigned get_tem_id (unsigned index)
 Maps an index to an TEM id (part of the machinery that allows the specification of a power on order).

Variables

static const unsigned tem_cru [N_TEM]
 Put the CRU masks of the TEMs into an array so that they can be indexed by TEM id.
static const unsigned tem_addr [N_TEM]
 Put the logical addresses of the TEMs into an array so that they can be indexed by TEM id.
static const unsigned epu_cru [N_EPU] = {CRU_MASK_EPU_0, CRU_MASK_EPU_1, CRU_MASK_EPU_2}
 Put the CRU masks of the EPUs into an array so that they can be indexed by EPU id.
static const unsigned epu_addr [N_EPU] = {LEM_ADDR_EPU_0, LEM_ADDR_EPU_1, LEM_ADDR_EPU_2}
 Put the logical addresses of the EPUs into an array so that they can be indexed by EPU id.
static const unsigned pdu_addr [N_PDU] = {LEM_ADDR_PDU_0, LEM_ADDR_PDU_1}
 Put the logical addresses of the PDUs into an array so that they can be indexed by PDU id.
static const unsigned pdu_cru [N_PDU] = {CRU_MASK_PDU_0, CRU_MASK_PDU_1}
 Put the CRU masks of the PDUs into an array so that they can be indexed by PDU id.

Detailed Description

Power and the Initialisation of the GASU routines.

Author:
James Swain - jswain@slac.stanford.edu
history 08 Oct 2004: Prepare for first public release. Add history block 24 Oct 2004: Split the delay into delay_off and delay_on 05 Oct 2005: JIRA FSW-252: Removed some AEM timing registers from PIG_DB. 01 Feb 2006: Removed default configuration database

Function Documentation

unsigned get_epu_id unsigned  index  ) 
 

Maps an index to an EPU id (part of the machinery that allows the specification of a power on order).

Parameters:
index Index into EPU order array
Returns:
0, 1 or 2

unsigned get_free_id unsigned  index  ) 
 

Maps an index to an FREE id (part of the machinery that allows the specification of a power on order).

Parameters:
index Index into FREE order array
Returns:
0, 1 or 2

unsigned get_tem_id unsigned  index  ) 
 

Maps an index to an TEM id (part of the machinery that allows the specification of a power on order).

Parameters:
index Index into TEM order array
Returns:
0, 1 or 2


Variable Documentation

const unsigned tem_addr[N_TEM] [static]
 

Initial value:

 {LEM_ADDR_TEM_0,
                                         LEM_ADDR_TEM_1,
                                         LEM_ADDR_TEM_2,
                                         LEM_ADDR_TEM_3,
                                         LEM_ADDR_TEM_4,
                                         LEM_ADDR_TEM_5,
                                         LEM_ADDR_TEM_6,
                                         LEM_ADDR_TEM_7,
                                         LEM_ADDR_TEM_8,
                                         LEM_ADDR_TEM_9,
                                         LEM_ADDR_TEM_A,
                                         LEM_ADDR_TEM_B,
                                         LEM_ADDR_TEM_C,
                                         LEM_ADDR_TEM_D,
                                         LEM_ADDR_TEM_E,
                                         LEM_ADDR_TEM_F}
Put the logical addresses of the TEMs into an array so that they can be indexed by TEM id.

const unsigned tem_cru[N_TEM] [static]
 

Initial value:

 {CRU_MASK_TEM_0,
                                         CRU_MASK_TEM_1,
                                         CRU_MASK_TEM_2,
                                         CRU_MASK_TEM_3,
                                         CRU_MASK_TEM_4,
                                         CRU_MASK_TEM_5,
                                         CRU_MASK_TEM_6,
                                         CRU_MASK_TEM_7,
                                         CRU_MASK_TEM_8,
                                         CRU_MASK_TEM_9,
                                         CRU_MASK_TEM_A,
                                         CRU_MASK_TEM_B,
                                         CRU_MASK_TEM_C,
                                         CRU_MASK_TEM_D,
                                         CRU_MASK_TEM_E,
                                         CRU_MASK_TEM_F}
Put the CRU masks of the TEMs into an array so that they can be indexed by TEM id.


Generated on Wed Mar 15 23:40:10 2006 by  doxygen 1.4.4