GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PIG / V10-1-5 > pig_rooting / rad750
#include <PIG/cli.h>
#include <PIG/pig.h>
#include <PIG/PIG_msgs.h>
#include <PBS/MBA.h>
#include <string.h>
Functions | |
unsigned | PIG_cmdRsp_init (PIG_MF_SELECT mf, PIG_PDU_SELECT pdu, PIG_DAB_SELECT dab) |
Configure the command response fabric. | |
unsigned | PIG_tem_on (unsigned tem, PIG_PDU_SELECT pdu) |
Power on the tem using the specified PDU. | |
unsigned | PIG_cal_on (unsigned twr) |
Power on the CAL. | |
unsigned | PIG_tkr_on (unsigned twr) |
Power on the TKR. | |
unsigned | PIG_tem_off (unsigned tem) |
Power off the TEM. | |
unsigned | PIG_cal_off (unsigned twr) |
Power off the CAL. | |
unsigned | PIG_tkr_off (unsigned twr) |
Power off the TKR. | |
unsigned | PIG_epu_on (unsigned epu, PIG_PDU_SELECT pdu) |
Power on an EPU using the specified PDU and power convertor. | |
unsigned | PIG_epu_off (unsigned epu) |
Power off an EPU. | |
unsigned | PIG_acd_on (PIG_PDU_SELECT pdu, unsigned use_sec_ps) |
Power on the ACD, specifying the power supply and convertor. | |
unsigned | PIG_acd_off (void) |
Power off the ACD. | |
PIG_cfg * | PIG_new_cfg (void) |
Allocate a PIG_cfg structure. | |
void | PIG_clear_cfg (PIG_cfg *cfg) |
Clear a configuration structure. | |
void | PIG_set_tem (PIG_cfg *cfg, unsigned sel_mask, unsigned pdu_mask) |
Set the TEM sel and pdu fields of the PIG configuration. | |
void | PIG_set_tkr (PIG_cfg *cfg, unsigned sel_mask) |
Set the TEM TKR field in a PIG configuration. | |
void | PIG_set_cal (PIG_cfg *cfg, unsigned sel_mask) |
Set the TEM CAL field in a PIG configuration. | |
void | PIG_set_epu (PIG_cfg *cfg, unsigned sel_mask, unsigned pdu_mask) |
Set the EPU fields in a PIG configuration. | |
void | PIG_set_free (PIG_cfg *cfg, unsigned free) |
Set the ACD FREE field in a PIG configuration. | |
void | PIG_set_acd (PIG_cfg *cfg, PIG_PDU_SELECT pdu, unsigned sec_sup) |
Set ACD power fields in a PIG configuration. | |
void | PIG_clear_acd (PIG_cfg *cfg) |
Clear the ACD power fields in a PIG configuration. | |
void | PIG_set_all (PIG_cfg *cfg, PIG_PDU_SELECT pdu) |
Set all power selection bits in a PIG configuration. | |
void | PIG_cb_NULL (ITC_QueueItem *qitem, unsigned int status, void *prm0, void *prm1, void *prm2, unsigned int tx) |
Completion call-back for use with PIG_record when working from the command line. |
$Id: cli.c,v 1.28 2011/03/28 17:15:49 saxton Exp $
unsigned PIG_acd_off | ( | void | ) |
Power off the ACD.
unsigned PIG_acd_on | ( | PIG_PDU_SELECT | pdu, | |
unsigned | use_sec_ps | |||
) |
Power on the ACD, specifying the power supply and convertor.
pdu | PDU to use (0 | 1) | |
use_sec_ps | Use the secondary power supply (0 no | 1 yes) |
unsigned PIG_cal_off | ( | unsigned | twr | ) |
Power off the CAL.
twr | ID of the twr to power off(1 ... f) |
unsigned PIG_cal_on | ( | unsigned | twr | ) |
Power on the CAL.
twr | ID of the twr to power on (1 ... f) |
void PIG_cb_NULL | ( | ITC_QueueItem * | qitem, | |
unsigned int | status, | |||
void * | prm0, | |||
void * | prm1, | |||
void * | prm2, | |||
unsigned int | tx | |||
) |
Completion call-back for use with PIG_record when working from the command line.
qitem | Queue item to be returned to the pool | |
status | Success or failure of the ITC delivery | |
prm0 | User defined parameter 0 (pointer to the FPM pool) | |
prm1 | User defined (NULL) | |
prm2 | User defined (NULL) | |
tx | Transmission status |
void PIG_clear_acd | ( | PIG_cfg * | cfg | ) |
Clear the ACD power fields in a PIG configuration.
cfg | Pointer to a PIG_cfg structure |
void PIG_clear_cfg | ( | PIG_cfg * | cfg | ) |
Clear a configuration structure.
cfg | Pointer to a PIG_cfg structure |
Referenced by PIG_new_cfg().
unsigned PIG_cmdRsp_init | ( | PIG_MF_SELECT | mf, | |
PIG_PDU_SELECT | pdu, | |||
PIG_DAB_SELECT | dab | |||
) |
Configure the command response fabric.
Complete the configuration of the cmdRsp fabric by closing the main feed and configuring the DAB.
mf | Select main-feed (0 none | 1 primary | 2 secondary) | |
pdu | Select pdu (0 none | 1 PDU_0 | 2 PDU_1 | 3 both) | |
dab | Select dab (0 none | 1 primary | 2 secondary) |
unsigned PIG_epu_off | ( | unsigned | epu | ) |
Power off an EPU.
epu | EPU to power on (0 .. 3) |
unsigned PIG_epu_on | ( | unsigned | epu, | |
PIG_PDU_SELECT | pdu | |||
) |
Power on an EPU using the specified PDU and power convertor.
epu | EPU to power on (0 .. 3) | |
pdu | PDU to use (0 | 1) |
PIG_cfg* PIG_new_cfg | ( | void | ) |
Allocate a PIG_cfg structure.
References PIG_clear_cfg().
void PIG_set_acd | ( | PIG_cfg * | cfg, | |
PIG_PDU_SELECT | pdu, | |||
unsigned | sec_sup | |||
) |
Set ACD power fields in a PIG configuration.
cfg | Pointer to a PIG_cfg structure | |
pdu | ID of the PDU to use to power the ACD | |
sec_sup | 1 (Use secondary power supply) | 0 (do not use secondary power supply) |
Referenced by PIG_set_all().
void PIG_set_all | ( | PIG_cfg * | cfg, | |
PIG_PDU_SELECT | pdu | |||
) |
Set all power selection bits in a PIG configuration.
Sets all the relevant bits in the the PIG_cfg structure to alter the power state of all components of the LAT, and configures all components of the LAT to be powered from the identified PDU
cfg | Pointer to a PIG_cfg structure | |
pdu | ID of the PDU to use (ignored if cfg is passed into PIG_extract) |
References PIG_set_acd(), PIG_set_cal(), PIG_set_epu(), PIG_set_free(), PIG_set_tem(), and PIG_set_tkr().
void PIG_set_cal | ( | PIG_cfg * | cfg, | |
unsigned | sel_mask | |||
) |
Set the TEM CAL field in a PIG configuration.
cfg | Pointer to a PIG_cfg structure | |
sel_mask | Sixteen-bit mask indicating the CAL towers whose power state is to be altered |
Referenced by PIG_set_all().
void PIG_set_epu | ( | PIG_cfg * | cfg, | |
unsigned | sel_mask, | |||
unsigned | pdu_mask | |||
) |
Set the EPU fields in a PIG configuration.
cfg | Pointer to a PIG_cfg structure | |
sel_mask | Three-bit mask indicating the EPUs whose power state is to be altered | |
pdu_mask | Three single bits indicating which PDU should be used to power each EPU (ignored if cfg is passed into PIG_extract) |
Referenced by PIG_set_all().
void PIG_set_free | ( | PIG_cfg * | cfg, | |
unsigned | free | |||
) |
Set the ACD FREE field in a PIG configuration.
cfg | Pointer to a PIG_cfg structure | |
free | Twelve bit mask indicating the free boards whose power state is to be altered |
Referenced by PIG_set_all().
void PIG_set_tem | ( | PIG_cfg * | cfg, | |
unsigned | sel_mask, | |||
unsigned | pdu_mask | |||
) |
Set the TEM sel and pdu fields of the PIG configuration.
cfg | Pointer to a PIG_cfg structure | |
sel_mask | Sixteen-bit mask indicating the TEMs whose power state is to be altered | |
pdu_mask | Sixteen single bits indicating which PDU should be used to power each TEM (ignored if the cfg is passed into PIG_extract) |
Referenced by PIG_set_all().
void PIG_set_tkr | ( | PIG_cfg * | cfg, | |
unsigned | sel_mask | |||
) |
Set the TEM TKR field in a PIG configuration.
cfg | Pointer to a PIG_cfg structure | |
sel_mask | Sixteen-bit mask indicating the TKR towers whose power state is to be altered |
Referenced by PIG_set_all().
unsigned PIG_tem_off | ( | unsigned | tem | ) |
Power off the TEM.
tem | ID of the tem to power off (1 .. f) |
unsigned PIG_tem_on | ( | unsigned | tem, | |
PIG_PDU_SELECT | pdu | |||
) |
Power on the tem using the specified PDU.
tem | ID of the tem to power on (1 ... f) | |
pdu | ID of the pdu to use (0 | 1) |
unsigned PIG_tkr_off | ( | unsigned | twr | ) |
Power off the TKR.
twr | ID of the twr to power off(1 ... f) |
unsigned PIG_tkr_on | ( | unsigned | twr | ) |
Power on the TKR.
twr | ID of the twr to power on (1 ... f) |