GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PIG / V10-1-4 > pig_flying / rad750


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.36 2009/08/14 16:50:38 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

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

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

unsigned SIB_query ( SIB_Info *  info  ) 

Provide the SIB_query function on host systems

Parameters:
info Ignored
Return values:
PIG_NOSIB 


Generated on Fri Aug 14 10:34:10 2009 by  doxygen 1.5.3