GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIM / V1-22-4 > lim / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

LIM_pig.c File Reference

Provide an interface to the PIG package functions. More...

#include <string.h>
#include <LIM/LIM_msgs.h>
#include <LIM/LIM_pubdefs.h>
#include <MSG/MSG_pubdefs.h>
#include <PIG/pig.h>
#include <LRA/LRA.h>
#include <PIG/PIG_msgs.h>
#include <LIM_action.h>
#include <LIM_pig.h>
#include <LIM_pool.h>

Functions

unsigned int LIM_pig_bias_acd (LIM_Action *action_p, PIG_acd_bias *cfg_p)
 Configure ACD bias voltages.
unsigned int LIM_pig_bias_acd_off (LIM_Action *action_p, unsigned int mask)
 Turn off ACD bias voltages.
unsigned int LIM_pig_bias_acd_on (LIM_Action *action_p, unsigned int mask)
 Turn on ACD bias voltages.
unsigned int LIM_pig_bias_cal (LIM_Action *action_p, PIG_cal_bias *cfg_p)
 Configure CAL bias voltages.
unsigned int LIM_pig_bias_cal_off (LIM_Action *action_p, unsigned int mask)
 Turn off CAL bias voltages.
unsigned int LIM_pig_bias_cal_on (LIM_Action *action_p, unsigned int mask)
 Turn on CAL bias voltages.
unsigned int LIM_pig_bias_tkr (LIM_Action *action_p, PIG_tkr_bias *cfg_p)
 Configure TKR bias voltages.
unsigned int LIM_pig_bias_tkr_off (LIM_Action *action_p, unsigned int mask)
 Turn off TKR bias voltages.
unsigned int LIM_pig_bias_tkr_on (LIM_Action *action_p, unsigned int mask)
 Turn on TKR bias voltages.
static void lim_pig_build_evt_cfg (PIG_evt_cfg *evt_cfg_p, PIG_cfg *power_cfg_p)
 Build an event configuration from a power configuration.
unsigned int LIM_pig_extract (LIM_Action *action_p, PIG_cfg *cfg_p)
 Remove power from one or more components of the instrument.
unsigned int LIM_pig_extract_evt (LIM_Action *action_p, PIG_cfg *cfg_p)
 Remove one or more components from the event fabric.
unsigned int LIM_pig_insert (LIM_Action *action_p, PIG_cfg *cfg_p)
 Add power to one or more components of the instrument.
unsigned int LIM_pig_insert_evt (LIM_Action *action_p, PIG_cfg *cfg_p)
 Add one or more components to the event fabric.
unsigned int LIM_pig_look_at_me (LIM_Action *action_p)
 Send the Look-At-Me command.
unsigned int LIM_pig_record (LIM_Pool *pool_p, unsigned int dest)
 Call the PIG_record() function.
unsigned int LIM_pig_saa_enter (LIM_Action *action_p)
 Configure the instrument for SAA transit.
unsigned int LIM_pig_saa_exit (LIM_Action *action_p)
 Configure the instrument for SAA transit.
unsigned int LIM_pig_shed (LIM_Action *action_p)
 Shed instrument power.
unsigned int LIM_pig_siu_init (LIM_Action *action_p, PIG_siu_cfg *cfg_p)
 Init the SIU.
unsigned int LIM_pig_verify (LIM_Pool *pool_p)
 Verify the PIG configuration.


Detailed Description

Provide an interface to the PIG package functions.

**  CVS $Id: LIM_pig.c,v 1.10 2011/03/29 21:20:28 apw Exp $
**  

Function Documentation

unsigned int LIM_pig_bias_acd ( LIM_Action action_p,
PIG_acd_bias *  cfg_p 
)

Configure ACD bias voltages.

Parameters:
action_p Pointer to LIM action control information.
cfg_p Pointer to bias configuration structure.
Returns:
MSG code.

References LIM_ACTION_BIAS_ACD, and LIM_action_report().

Referenced by lim_mode_bias_acd().

unsigned int LIM_pig_bias_acd_off ( LIM_Action action_p,
unsigned int  mask 
)

Turn off ACD bias voltages.

Parameters:
action_p Pointer to LIM action control information.
mask Mask of FREE boards to operate on.
Returns:
MSG code.

References LIM_ACTION_BIAS_ACD_OFF, and LIM_action_report().

Referenced by lim_mode_bias_acd_off().

unsigned int LIM_pig_bias_acd_on ( LIM_Action action_p,
unsigned int  mask 
)

Turn on ACD bias voltages.

Parameters:
action_p Pointer to LIM action control information.
mask Mask of FREE boards to operate on.
Returns:
MSG code.

References LIM_ACTION_BIAS_ACD_ON, and LIM_action_report().

Referenced by lim_mode_bias_acd_on().

unsigned int LIM_pig_bias_cal ( LIM_Action action_p,
PIG_cal_bias *  cfg_p 
)

Configure CAL bias voltages.

Parameters:
action_p Pointer to LIM action control information.
cfg_p Pointer to bias configuration structure.
Returns:
MSG code.

References LIM_ACTION_BIAS_CAL, and LIM_action_report().

Referenced by lim_mode_bias_cal().

unsigned int LIM_pig_bias_cal_off ( LIM_Action action_p,
unsigned int  mask 
)

Turn off CAL bias voltages.

Parameters:
action_p Pointer to LIM action control information.
mask Mask of FREE boards to operate on.
Returns:
MSG code.

References LIM_ACTION_BIAS_CAL_OFF, and LIM_action_report().

Referenced by lim_mode_bias_cal_off().

unsigned int LIM_pig_bias_cal_on ( LIM_Action action_p,
unsigned int  mask 
)

Turn on CAL bias voltages.

Parameters:
action_p Pointer to LIM action control information.
mask Mask of FREE boards to operate on.
Returns:
MSG code.

References LIM_ACTION_BIAS_CAL_ON, and LIM_action_report().

Referenced by lim_mode_bias_cal_on().

unsigned int LIM_pig_bias_tkr ( LIM_Action action_p,
PIG_tkr_bias *  cfg_p 
)

Configure TKR bias voltages.

Parameters:
action_p Pointer to LIM action control information.
cfg_p Pointer to bias configuration structure.
Returns:
MSG code.

References LIM_ACTION_BIAS_TKR, and LIM_action_report().

Referenced by lim_mode_bias_tkr().

unsigned int LIM_pig_bias_tkr_off ( LIM_Action action_p,
unsigned int  mask 
)

Turn off TKR bias voltages.

Parameters:
action_p Pointer to LIM action control information.
mask Mask of FREE boards to operate on.
Returns:
MSG code.

References LIM_ACTION_BIAS_TKR_OFF, and LIM_action_report().

Referenced by lim_mode_bias_tkr_off().

unsigned int LIM_pig_bias_tkr_on ( LIM_Action action_p,
unsigned int  mask 
)

Turn on TKR bias voltages.

Parameters:
action_p Pointer to LIM action control information.
mask Mask of FREE boards to operate on.
Returns:
MSG code.

References LIM_ACTION_BIAS_TKR_ON, and LIM_action_report().

Referenced by lim_mode_bias_tkr_on().

void lim_pig_build_evt_cfg ( PIG_evt_cfg *  evt_cfg_p,
PIG_cfg *  power_cfg_p 
) [static]

Build an event configuration from a power configuration.

Parameters:
evt_cfg_p Pointer to event configuration.
power_cfg_p Pointer to power configuration.
Returns:
Nothing.

Referenced by LIM_pig_extract_evt(), and LIM_pig_insert_evt().

unsigned int LIM_pig_extract ( LIM_Action action_p,
PIG_cfg *  cfg_p 
)

Remove power from one or more components of the instrument.

Parameters:
action_p Pointer to LIM action control information.
cfg_p Pointer to power configuration structure.
Returns:
MSG code.

References LIM_ACTION_POWER_OFF, and LIM_action_report().

Referenced by lim_mode_power_off().

unsigned int LIM_pig_extract_evt ( LIM_Action action_p,
PIG_cfg *  cfg_p 
)

Remove one or more components from the event fabric.

Parameters:
action_p Pointer to LIM action control information.
cfg_p Pointer to power configuration structure.
Returns:
MSG code.

References LIM_ACTION_EVENT_REMOVE, LIM_action_report(), and lim_pig_build_evt_cfg().

Referenced by lim_mode_power_off().

unsigned int LIM_pig_insert ( LIM_Action action_p,
PIG_cfg *  cfg_p 
)

Add power to one or more components of the instrument.

Parameters:
action_p Pointer to LIM action control information.
cfg_p Pointer to power configuration structure.
Returns:
MSG code.

References LIM_ACTION_POWER_ON, and LIM_action_report().

Referenced by lim_mode_power_on().

unsigned int LIM_pig_insert_evt ( LIM_Action action_p,
PIG_cfg *  cfg_p 
)

Add one or more components to the event fabric.

Parameters:
action_p Pointer to LIM action control information.
cfg_p Pointer to power configuration structure.
Returns:
MSG code.

References LIM_ACTION_EVENT_INSERT, LIM_action_report(), and lim_pig_build_evt_cfg().

Referenced by lim_mode_power_on().

unsigned int LIM_pig_look_at_me ( LIM_Action action_p  ) 

Send the Look-At-Me command.

Parameters:
action_p Pointer to LIM action control information.
Returns:
MSG code.

Referenced by lim_mode_look_at_me().

unsigned int LIM_pig_record ( LIM_Pool pool_p,
unsigned int  dest 
)

Call the PIG_record() function.

Parameters:
pool_p Pointer to a packet pool object.
dest Destination for the dumped data.
Returns:
MSG code.

References LIM_pool_alloc().

Referenced by lim_mode_pig_record(), and LIM_pig_verify().

unsigned int LIM_pig_saa_enter ( LIM_Action action_p  ) 

Configure the instrument for SAA transit.

Parameters:
action_p Pointer to LIM action control information.
Returns:
MSG code.

References LIM_action_report(), and LIM_ACTION_SAA_CONFIG.

Referenced by lim_mode_config_hv(), lim_mode_power_on(), and lim_mode_saa_enter().

unsigned int LIM_pig_saa_exit ( LIM_Action action_p  ) 

Configure the instrument for SAA transit.

Parameters:
action_p Pointer to LIM action control information.
Returns:
MSG code.

References LIM_ACTION_NON_SAA_CONFIG, and LIM_action_report().

Referenced by lim_mode_config_hv(), lim_mode_power_on(), and lim_mode_saa_exit().

unsigned int LIM_pig_shed ( LIM_Action action_p  ) 

Shed instrument power.

Parameters:
action_p Pointer to LIM action control information.
Returns:
MSG code.

References LIM_action_report(), LIM_ACTION_SHED_BEGIN, and LIM_ACTION_SHED_END.

Referenced by lim_mode_load_shed().

unsigned int LIM_pig_siu_init ( LIM_Action action_p,
PIG_siu_cfg *  cfg_p 
)

Init the SIU.

Parameters:
action_p Pointer to LIM action control information.
cfg_p Pointer to SIU configuration structure.
Returns:
MSG code.

References LIM_ACTION_MAIN_FEED_ON, and LIM_action_report().

Referenced by lim_mode_main_feed_on().

unsigned int LIM_pig_verify ( LIM_Pool pool_p  ) 

Verify the PIG configuration.

Parameters:
pool_p Pointer to a packet pool object.
Returns:
MSG code.

References LIM_pig_record().

Referenced by lim_mode_pig_verify().


Generated on Wed Nov 21 21:17:41 2012 by  doxygen 1.5.8