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  

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_epu (void)
 Delay the task for pig_epu_delay 100ths of a second.
void delay_off (void)
 Delay the task for pig_off_delay 100ths of a second.
void delay_on (void)
 Delay the task for pig_on_delay 100ths of a second.
unsigned get_epu_id (unsigned index)
 Map 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)
 Map 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)
 Map 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]
 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]
 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]
 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]
 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 & Owen Saxton
Id
pig_p.h,v 1.13 2006/07/12 23:09:11 saxton Exp

Function Documentation

unsigned get_epu_id unsigned  index  ) 
 

Map 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:
Ordered EPU ID

unsigned get_free_id unsigned  index  ) 
 

Map 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:
Ordered FREE ID

unsigned get_tem_id unsigned  index  ) 
 

Map 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:
Ordered TEM ID


Variable Documentation

const unsigned epu_addr[N_EPU] [static]
 

Initial value:

 {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.

const unsigned epu_cru[N_EPU] [static]
 

Initial value:

 {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.

const unsigned pdu_addr[N_PDU] [static]
 

Initial value:

 {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.

const unsigned pdu_cru[N_PDU] [static]
 

Initial value:

 {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.

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 Thu Oct 26 13:57:02 2006 by  doxygen 1.4.4