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


Interface   Data Structures   File List   Data Fields   Globals  

siu_init.c File Reference

Pulls together the operations of powering LCB-DAB-PDU chain, setting the C/R fabric and verifying the presence of a functioning LCB Implementation of the PIG power and C/R routines. More...

#include <pig_p.h>
#include <pig_macro_p.h>
#include <PIG/pig.h>
#include <PIG/power.h>
#include <PIG/PIG_msgs.h>
#include <PIG_DB/schema.h>
#include <CDM/CDM_pubdefs.h>
#include <LEM/msg_macros.h>
#include <LEM/defs.h>
#include <LEM/list_macros.h>
#include <LEM/list.h>
#include <LEM/decode.h>
#include <LCBD/LCBD_msgs.h>
#include <LCS/LCS_pubdefs.h>
#include <FBS/FBS_pubrtos.h>
#include <MSG/MSG_pubdefs.h>
#include <string.h>

Functions

static unsigned cmdrsp_init (PIG_siu_cfg cfg)
 Initialise the C/R fabric by sending the CRU a LAM and then inserting the GEM, the EBM and any powered PDUs.
static unsigned select_services (LEM_micr *cr, PIG_siu_cfg cfg)
 Sets bits in the GEM/CRU/EBM to select the P/R side of various SC provided services.
unsigned SIB_query (SIB_Info *info)
unsigned PIG_siu_init (PIG_siu_cfg cfg)
 Configure the SIU in response to the MAIN_FEED_ON notification.


Detailed Description

Pulls together the operations of powering LCB-DAB-PDU chain, setting the C/R fabric and verifying the presence of a functioning LCB Implementation of the PIG power and C/R routines.

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

Function Documentation

unsigned cmdrsp_init ( PIG_siu_cfg  cfg  )  [static]

Initialise the C/R fabric by sending the CRU a LAM and then inserting the GEM, the EBM and any powered PDUs.

Parameters:
cfg SIU configuration structure
Returns:
One of the PIG_msgs

References _PIG_pwrState::acd_mode, _PIG_pwrState::acd_on, ADD_CR_NODE, _PIG_pwrState::cal, _PIG_pwrState::cal_on, _PIG_cruState::command, getState(), _PIG_siu_cfg::pdu_0, _PIG_siu_cfg::pdu_1, PIG_ARC_HV_MASK, PIG_N_FREE, PIG_N_TEM, _PIG_state::pwr, readCruState(), readState(), REMOVE_CR_NODE, _PIG_cruState::response, saveState(), select_services(), _PIG_pwrState::tkr, and _PIG_pwrState::tkr_on.

Referenced by PIG_siu_init().

unsigned PIG_siu_init ( PIG_siu_cfg  cfg  ) 

Configure the SIU in response to the MAIN_FEED_ON notification.

Parameters:
cfg SIU configuration structure
Returns:
One of the PIG_msgs

References cmdrsp_init(), _PIG_siu_cfg::dab_s, getPwrState(), PIG_insert_evt(), savePwrState(), _PIG_pwrState::sib, SIB_query(), _PIG_evt_cfg::siu, and _PIG_siu_cfg::siu_i.

unsigned select_services ( LEM_micr *  cr,
PIG_siu_cfg  cfg 
) [static]

Sets bits in the GEM/CRU/EBM to select the P/R side of various SC provided services.

Parameters:
cfg Pointer to the a structure descrbing the configuration required
cr Pointer to a structure holding correctly aligned multi-item command and response lists
Returns:
One of PIG_msgs

References _PIG_ebmState::be_config, _PIG_cruState::command, _PIG_cruState::config, _PIG_dbState::ebm_fe_config_a, _PIG_dbState::ebm_fe_config_b, _PIG_dbState::ebm_timeout, _PIG_siu_cfg::gbm_s, getDbState(), getEbmState(), _PIG_siu_cfg::pps_i, _PIG_siu_cfg::pps_s, readCruState(), _PIG_cruState::response, saveCruState(), saveDbState(), saveEbmState(), _PIG_ebmState::ssr_header, and _PIG_siu_cfg::ssr_s.

Referenced by cmdrsp_init().

unsigned SIB_query ( SIB_Info *  info  ) 

Provide the SIB_query function on host systems

Parameters:
info Ignored
Return values:
PIG_NOSIB 

Referenced by PIG_siu_init().


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