GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PIG / V10-1-4 > pig_flying / mv2304
#include "PIG/const.h"
#include "PIG/structs.h"
#include "ITC/ITC_pubdefs.h"
Functions | |
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. | |
unsigned | PIG_extract (PIG_cfg *cfg) |
Extract one or more nodes from the C/R fabric, possibly powering off said node at the same time. | |
unsigned | PIG_extract_evt (PIG_evt_cfg *cfg) |
Extract one or more nodes from the event fabric. | |
unsigned | PIG_get_ebmState (unsigned int *inputs, unsigned int *contributors, unsigned int *destinations) |
Return the EBM configuration masks. | |
unsigned | PIG_get_pdus (void) |
Get PDUs present. | |
unsigned | PIG_insert (PIG_cfg *cfg) |
Insert one or more nodes into the C/R fabric, possibly powering on said node on at the same time. | |
unsigned | PIG_insert_evt (PIG_evt_cfg *cfg) |
Insert one or more nodes into the event fabric. | |
unsigned | PIG_order_EPU (unsigned order[PIG_N_EPU]) |
Change the power-on order of the EPUs from the default to order. | |
unsigned | PIG_order_FREE (unsigned order[PIG_N_FREE]) |
Change the power-on order of the FREE boards from the default to order. | |
unsigned | PIG_order_TEM (unsigned order[PIG_N_TEM]) |
Change the power-on order of the TEMs from the default to order. | |
unsigned | PIG_record (void *buf, ITC_cb_Completion *rtn, void *prm0, void *prm1, void *prm2) |
Record the PIG registers to the SSR. | |
unsigned | PIG_safe (void) |
Power off all the LAT components. | |
void | PIG_set_epu_delay (unsigned delay) |
Set the delay after EPU power on. | |
void | PIG_set_off_delay (unsigned delay) |
Set the delay after power-off of a component. | |
void | PIG_set_on_delay (unsigned delay) |
Set the delay after power-on of a component. | |
unsigned | PIG_shed (void) |
Shed the LAT power load. | |
unsigned | PIG_siu_init (PIG_siu_cfg cfg) |
Configure the SIU in response to the MAIN_FEED_ON notification. | |
size_t | PIG_sizeofRecord (void) |
Get the size of a PIG datagram. | |
unsigned | PIG_verify (void) |
Verify the PIG state. |
$Id: pig.h,v 1.33 2009/07/31 21:29:43 saxton Exp $
unsigned PIG_bias_ACD | ( | PIG_acd_bias * | bias | ) |
Load the ACD bias DAC registers.
bias | Pointer to structure containing the bias voltage 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.
mask | Mask specifying the FREE boards for which the bias voltage is to be turned off. |
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.
mask | Mask specifying the FREE boards for which the bias voltage is to be turned on. |
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.
bias | Pointer to structure containing the bias voltage 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.
mask | Mask specifying the towers for which the CAL bias voltage is to be turned off. |
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.
mask | Mask specifying the towers for which the CAL bias voltage is to be turned on. |
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.
bias | Pointer to structure containing the bias voltage 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.
mask | Mask specifying the towers for which the TKR bias voltage is to be turned off. |
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.
mask | Mask specifying the towers for which the TKR bias voltage is to be turned on. |
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.
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.
PIG_INMUD | Success | |
PIG_CRLSMALL | Couldn't initialize C/R list | |
LEM_xxxxx | Various LEM/LCBD errors |
unsigned PIG_extract | ( | PIG_cfg * | cfg | ) |
Extract one or more nodes from the C/R fabric, possibly powering off said node at the same time.
cfg | Pointer to a PIG configuration structure |
PIG_INMUD | Success | |
PIG_CRLSMALL | Couldn't initialize C/R list | |
LEM_xxxxx | Various LEM/LCBD errors |
unsigned PIG_extract_evt | ( | PIG_evt_cfg * | cfg | ) |
Extract one or more nodes from the event fabric.
cfg | Pointer to a PIG configuration structure |
PIG_INMUD | Success | |
PIG_CRLSMALL | Couldn't initialize C/R list | |
LEM_xxxxx | Various LEM/LCBD errors |
unsigned PIG_get_ebmState | ( | unsigned int * | inputs, | |
unsigned int * | contbs, | |||
unsigned int * | destns | |||
) |
Return the EBM configuration masks.
inputs | Address of an integer to receive the source processor input enables, or NULL if this value is not wanted. | |
contbs | Address of an integer to receive the EBM scheduler contributor enables, or NULL if this value is not wanted. | |
destns | Address of an integer to receive the round-robin and broadcast masks, or NULL if this value is not wanted. |
PIG_INMUD | Success |
unsigned PIG_get_pdus | ( | void | ) |
Get PDUs present.
Returns a two bit mask indicating the PDU(s) present in the C/R fabric
unsigned PIG_insert | ( | PIG_cfg * | cfg | ) |
Insert one or more nodes into the C/R fabric, possibly powering on said node on at the same time.
cfg | Pointer to a PIG configuration structure |
PIG_INMUD | Success | |
PIG_CRLSMALL | Couldn't initialize C/R list | |
LEM_xxxxx | Various LEM/LCBD errors |
unsigned PIG_insert_evt | ( | PIG_evt_cfg * | cfg | ) |
Insert one or more nodes into the event fabric.
cfg | Pointer to a PIG configuration structure |
PIG_INMUD | Success | |
PIG_CRLSMALL | Couldn't initialize C/R list | |
LEM_xxxxx | Various LEM/LCBD errors |
unsigned PIG_order_EPU | ( | unsigned | order[PIG_N_EPU] | ) |
Change the power-on order of the EPUs from the default to order.
order | Array of EPU ids specifying the power on order |
PIG_INMUD | Success | |
PIG_BADORD | Array of IDs contains duplicate or out of range values |
unsigned PIG_order_FREE | ( | unsigned | order[PIG_N_FREE] | ) |
Change the power-on order of the FREE boards from the default to order.
order | Array of FREE ids specifying the power on order |
PIG_INMUD | Success | |
PIG_BADORD | Array of IDs contains duplicate or out of range values |
unsigned PIG_order_TEM | ( | unsigned | order[PIG_N_TEM] | ) |
Change the power-on order of the TEMs from the default to order.
order | Array of TEM ids specifying the power on order |
PIG_INMUD | Success | |
PIG_BADORD | Array of IDs contains duplicate or out of range values |
unsigned PIG_record | ( | void * | buf, | |
ITC_cb_Completion * | rtn, | |||
void * | prm0, | |||
void * | prm1, | |||
void * | prm2 | |||
) |
Record the PIG registers to the SSR.
Takes a snapshot of the registers controlled by PIG and sends the resulting record to the SSR
buf | Pointer to a buffer to use for the record | |
rtn | Completion routine | |
prm0 | Completion routine user parameter 0 | |
prm1 | Completion routine user parameter 1 | |
prm2 | Completion routine user parameter 2 |
unsigned PIG_safe | ( | void | ) |
Power off all the LAT components.
PIG_INMUD | Success | |
PIG_CRLSMALL | Couldn't initialize C/R list | |
LEM_xxxxx | Various LEM/LCBD errors |
void PIG_set_epu_delay | ( | unsigned | delay | ) |
Set the delay after EPU power on.
delay | Time (in 100ths of a second) to wait after powering on an EPU |
void PIG_set_off_delay | ( | unsigned | delay | ) |
Set the delay after power-off of a component.
delay | Time (in 100ths of a second) to wait after powering off a component |
void PIG_set_on_delay | ( | unsigned | delay | ) |
Set the delay after power-on of a component.
delay | Time (in 100ths of a second) to wait after powering on a component |
unsigned PIG_shed | ( | void | ) |
Shed the LAT power load.
This routine powers down all the components of the LAT.
PIG_INMUD | Success | |
PIG_CRLSMALL | Couldn't initialize C/R list | |
LEM_xxxxx | Various LEM/LCBD errors |
unsigned PIG_siu_init | ( | PIG_siu_cfg | cfg | ) |
Configure the SIU in response to the MAIN_FEED_ON notification.
cfg | SIU configuration structure |
size_t PIG_sizeofRecord | ( | void | ) |
Get the size of a PIG datagram.
Calculates the space required to send a record of the registers controlled by PIG to the SSR.
unsigned PIG_verify | ( | void | ) |
Verify the PIG state.
This routine reads all the PIG-controlled registers and compares their values with the cached ones.
PIG_INMUD | Register values all matched. | |
PIG_VERFAIL0 | A single-occurrence register value didn't match. | |
PIG_VERFAIL1 | A PDU, TEM or ARC register value didn't match. | |
PIG_VERFAIL2 | A CCC or TCC register value didn't match. |