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


Interface   Data Structures   File List   Data Fields   Globals  

bias.c File Reference

Functions that modify the bias voltages. More...

#include <pig_p.h>
#include <pig_const_p.h>
#include <PIG/PIG_msgs.h>
#include <PIG/pig.h>
#include <LEM/defs.h>
#include <LEM/encode.h>
#include <LEM/list.h>
#include <LEM/list_macros.h>

Functions

static unsigned bias_ACD_onoff (unsigned mask, int on)
static unsigned bias_twr (PIG_twr_bias *bias, unsigned regId)
static unsigned bias_twr_onoff (unsigned regId, unsigned mask, int on)
unsigned PIG_bias_ACD (PIG_acd_bias *bias)
 Load the ACD bias DAC registers.
unsigned PIG_bias_ACD_off (unsigned mask)
 Turn off ACD bias voltages.
unsigned PIG_bias_ACD_on (unsigned mask)
 Turn on ACD bias voltages.
unsigned PIG_bias_CAL (PIG_cal_bias *bias)
 Load the CAL bias DAC registers.
unsigned PIG_bias_CAL_off (unsigned mask)
 Turn off CAL bias voltages.
unsigned PIG_bias_CAL_on (unsigned mask)
 Turn on CAL bias voltages.
unsigned PIG_bias_TKR (PIG_tkr_bias *bias)
 Load the TKR bias DAC registers.
unsigned PIG_bias_TKR_off (unsigned mask)
 Turn off TKR bias voltages.
unsigned PIG_bias_TKR_on (unsigned mask)
 Turn on TKR bias voltages.
unsigned PIG_enter_SAA (void)
 Write registers to place the LAT into SAA mode.
unsigned PIG_exit_SAA (void)
 Write registers to pull the LAT out of SAA mode.


Detailed Description

Functions that modify the bias voltages.

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

Function Documentation

unsigned PIG_bias_ACD ( PIG_acd_bias bias  ) 

Load the ACD bias DAC registers.

Parameters:
bias Pointer to structure containing the bias voltage values
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

References _PIG_pwrState::acd_hv, _PIG_pwrState::acd_mode, _PIG_pwrState::acd_on, _PIG_pwrState::acd_saa, _PIG_pwrState::aem, _PIG_acd_bias::arc, getPwrState(), _PIG_arc_bias::hv_bias, _PIG_arc_bias::hv_valid, _PIG_arc_bias::hvbs1, _PIG_arc_bias::hvbs2, PIG_ARC_HV1_MASK, PIG_ARC_HV2_MASK, PIG_ARC_HV_MASK, PIG_N_FREE, _PIG_arc_bias::saa_bias, _PIG_arc_bias::saa_valid, savePwrState(), _PIG_arc_bias::veto_en_a, and _PIG_arc_bias::veto_en_b.

unsigned PIG_bias_ACD_off ( unsigned  mask  ) 

Turn off ACD bias voltages.

Parameters:
mask Mask specifying the FREE boards for which the bias voltage is to be turned off.
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

unsigned PIG_bias_ACD_on ( unsigned  mask  ) 

Turn on ACD bias voltages.

Parameters:
mask Mask specifying the FREE boards for which the bias voltage is to be turned on.
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

unsigned PIG_bias_CAL ( PIG_cal_bias bias  ) 

Load the CAL bias DAC registers.

Parameters:
bias Pointer to structure containing the bias voltage values
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

unsigned PIG_bias_CAL_off ( unsigned  mask  ) 

Turn off CAL bias voltages.

Parameters:
mask Mask specifying the towers for which the CAL bias voltage is to be turned off.
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

unsigned PIG_bias_CAL_on ( unsigned  mask  ) 

Turn on CAL bias voltages.

Parameters:
mask Mask specifying the towers for which the CAL bias voltage is to be turned on.
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

unsigned PIG_bias_TKR ( PIG_tkr_bias bias  ) 

Load the TKR bias DAC registers.

Parameters:
bias Pointer to structure containing the bias voltage values
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

unsigned PIG_bias_TKR_off ( unsigned  mask  ) 

Turn off TKR bias voltages.

Parameters:
mask Mask specifying the towers for which the TKR bias voltage is to be turned off.
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

unsigned PIG_bias_TKR_on ( unsigned  mask  ) 

Turn on TKR bias voltages.

Parameters:
mask Mask specifying the towers for which the TKR bias voltage is to be turned on.
Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

unsigned PIG_enter_SAA ( void   ) 

Write registers to place the LAT into SAA mode.

Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors

unsigned PIG_exit_SAA ( void   ) 

Write registers to pull the LAT out of SAA mode.

Return values:
PIG_INMUD Success
PIG_CRLSMALL Couldn't initialize C/R list
LEM_xxxxx Various LEM/LCBD errors


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