GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PIG / V10-1-1
Constituent: pig_flying     Tag: rad750
#include "pig_p.h"
#include "pig_const_p.h"
#include "pig_macro_p.h"
#include "PIG/pig.h"
#include "PIG/power.h"
#include "PIG/PIG_msgs.h"
#include "PIG_DB/schema.h"
#include "CDM/CDM_pubdefs.h"
#include "LEM/list.h"
#include "LEM/encode.h"
#include "LEM/decode.h"
#include "LEM/msg_macros.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/TASK.h"
#include "PBS/TOV.h"
#include <string.h>
Include dependency graph for cmdrsp.c:
Enumerations | |
enum | { CSR_STALL = 200, TEM_USE_RED_DAB = 3 << 24, ARC_LAM_STALL = 640, PWR_CAL = 0x2, PWR_TKR = 0x1, PWR_OFF = 0, PWR_ON = 1, DEFAULT_EPU_DELAY = 50, DEFAULT_ON_DELAY = 100, DEFAULT_OFF_DELAY = 10 } |
Functions | |
static unsigned | epus_on (LEM_micr *cr, PIG_cfg *cfg, PIG_state *state) |
static unsigned | epus_off (LEM_micr *cr, PIG_cfg *cfg, PIG_state *state) |
static unsigned | tems_on (LEM_micr *cr, PIG_cfg *cfg, PIG_state *state, const PIG_DB_Schema *pdb) |
static unsigned | tems_off (LEM_micr *cr, PIG_cfg *cfg, PIG_state *state) |
static unsigned | twr_pwr (LEM_micr *cr, unsigned short mask, unsigned select, unsigned action, PIG_state *state, const PIG_DB_Schema *pdb) |
static unsigned | acd_on (LEM_micr *cr, PIG_cfg *cfg, PIG_state *state, const PIG_DB_Schema *pdb) |
static unsigned | acd_off (LEM_micr *cr, PIG_cfg *cfg, PIG_state *state) |
static unsigned | free_on (LEM_micr *cr, PIG_cfg *cfg, PIG_state *state) |
static unsigned | free_off (LEM_micr *cr, PIG_cfg *cfg, PIG_state *state) |
static void | delay_epu (void) |
static void | delay_off (void) |
static void | delay_on (void) |
static unsigned | get_epu_id (unsigned index) |
static unsigned | get_free_id (unsigned index) |
static unsigned | get_tem_id (unsigned index) |
static unsigned | change_order (unsigned *new_order, unsigned n, unsigned *old_order) |
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_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_safe (void) |
Power off all the LAT components. | |
unsigned | PIG_shed (void) |
Shed the LAT power load. | |
unsigned | PIG_get_pdus (void) |
Get PDUs present. | |
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_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. | |
Variables | |
static unsigned | pig_epu_delay = DEFAULT_EPU_DELAY |
Time to wait after powering up an EPU. | |
static unsigned | pig_off_delay = DEFAULT_OFF_DELAY |
Time to wait after powering off a component. | |
static unsigned | pig_on_delay = DEFAULT_ON_DELAY |
Time to wait after powering on a component. | |
static unsigned | tem_order [PIG_N_TEM] |
Specify the order in which to power on the tems. | |
static unsigned | epu_order [PIG_N_EPU] = {0, 1, 2} |
Specify the order in which to power on the EPUs. | |
static unsigned | free_order [PIG_N_FREE] |
Specify the order in which to power the FREE boards. |
|
Extract one or more nodes from the C/R fabric, possibly powering off said node at the same time.
|
|
Get PDUs present. Returns a two bit mask indicating the PDU(s) present in the C/R fabric
|
|
Insert one or more nodes into the C/R fabric, possibly powering on said node on at the same time.
|
|
Change the power-on order of the EPUs from the default to order.
|
|
Change the power-on order of the FREE boards from the default to order.
|
|
Change the power-on order of the TEMs from the default to order.
|
|
Power off all the LAT components.
|
|
Set the delay after EPU power on.
|
|
Set the delay after power-off of a component.
|
|
Set the delay after power-on of a component.
|
|
Shed the LAT power load. Calls PIG_safe, then opens the LAT side of the main feed switch to reduce the load on the SC
|
|
Initial value: {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb}
|
|
Initial value: {0x5, 0x6, 0x9, 0xa, 0xc, 0xd, 0xe, 0x1, 0x2, 0x3, 0x7, 0xb, 0xf, 0x0, 0x4, 0x8}
|