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


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.8 2009/08/14 16:49:43 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

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 Fri Aug 14 10:34:09 2009 by  doxygen 1.5.3