GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PIG / V10-1-5 > pig_flying / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

event.c File Reference

Implementation of the event fabric configuration routines. More...

#include <pig_p.h>
#include <pig_macro_p.h>
#include <PIG/pig.h>
#include <PIG/PIG_msgs.h>
#include <LEM/msg_macros.h>
#include <LEM/defs.h>
#include <LEM/list.h>
#include <string.h>

Functions

static void epus_ins (PIG_evt_cfg *cfg, PIG_ebmState *state)
static void sius_ins (PIG_evt_cfg *cfg, PIG_ebmState *state)
static void tems_ins (PIG_evt_cfg *cfg, PIG_ebmState *state)
static void acd_ins (PIG_evt_cfg *cfg, PIG_ebmState *state)
static void epus_ext (PIG_evt_cfg *cfg, PIG_ebmState *state)
static void sius_ext (PIG_evt_cfg *cfg, PIG_ebmState *state)
static void tems_ext (PIG_evt_cfg *cfg, PIG_ebmState *state)
static void acd_ext (PIG_evt_cfg *cfg, PIG_ebmState *state)
unsigned PIG_insert_evt (PIG_evt_cfg *cfg)
 Insert one or more nodes into the event fabric.
unsigned PIG_extract_evt (PIG_evt_cfg *cfg)
 Extract one or more nodes from the event fabric.

Variables

static const unsigned epu_output [PIG_N_EPU] = {0x8, 0x10, 0x20}
 Destination masks for the three EPUs.
static const unsigned epu_input [PIG_N_EPU]
 Input/contributors masks for the three EPUs.
static const unsigned siu_output [PIG_N_SIU] = {0x1, 0x2, 0x4}
 Destination masks for the three SIUs.
static const unsigned siu_input [PIG_N_SIU]
 Input/contributors masks for the three SIUs.
static const unsigned tem_ebm_mask [PIG_N_TEM]
 Input/contributors masks for the TEMs.


Detailed Description

Implementation of the event fabric configuration routines.

Author:
James Swain & Owen Saxton
$Id: event.c,v 1.31 2011/03/28 17:15:49 saxton Exp $

Function Documentation

unsigned PIG_extract_evt ( PIG_evt_cfg cfg  ) 

Extract one or more nodes from the event fabric.

Parameters:
cfg Pointer to a PIG configuration structure
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

References _PIG_ebmState::contributors, _PIG_ebmState::destinations, _PIG_ebmState::inputs, readEbmState(), and saveEbmState().

Referenced by PIG_shed().

unsigned PIG_insert_evt ( PIG_evt_cfg cfg  ) 

Insert one or more nodes into the event fabric.

Parameters:
cfg Pointer to a PIG configuration structure
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

References _PIG_ebmState::contributors, _PIG_ebmState::destinations, _PIG_ebmState::inputs, readEbmState(), and saveEbmState().

Referenced by PIG_siu_init().


Variable Documentation

const unsigned epu_input[PIG_N_EPU] [static]

Initial value:

 {EBM_MASK_EPU_0,
                                              EBM_MASK_EPU_1,
                                              EBM_MASK_EPU_2}
Input/contributors masks for the three EPUs.

const unsigned siu_input[PIG_N_SIU] [static]

Initial value:

 {EBM_MASK_SIU_EXT,
                                              EBM_MASK_SIU_0,
                                              EBM_MASK_SIU_1}
Input/contributors masks for the three SIUs.

const unsigned tem_ebm_mask[PIG_N_TEM] [static]

Initial value:

 {EBM_MASK_TEM_0,
                                                 EBM_MASK_TEM_1,
                                                 EBM_MASK_TEM_2,
                                                 EBM_MASK_TEM_3,
                                                 EBM_MASK_TEM_4,
                                                 EBM_MASK_TEM_5,
                                                 EBM_MASK_TEM_6,
                                                 EBM_MASK_TEM_7,
                                                 EBM_MASK_TEM_8,
                                                 EBM_MASK_TEM_9,
                                                 EBM_MASK_TEM_A,
                                                 EBM_MASK_TEM_B,
                                                 EBM_MASK_TEM_C,
                                                 EBM_MASK_TEM_D,
                                                 EBM_MASK_TEM_E,
                                                 EBM_MASK_TEM_F}
Input/contributors masks for the TEMs.


Generated on Tue Nov 29 18:55:56 2011 by  doxygen 1.5.8