GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PIG / V8-8-1
Constituent: pig_flying     Tag: linux-gcc
#include "PIG/PIG_msgs.h"
#include "PIG/power.h"
#include "taskDelay_p.h"
#include "pig_macro_p.h"
#include "MSG/MSG_pubdefs.h"
#include <string.h>
Include dependency graph for pig.c:
Functions | |
static unsigned | change_order (unsigned *new_order, unsigned n, unsigned *old_order) |
Change the power-on order from the default to new_order. | |
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. | |
void | delay_off (void) |
Delay the task for pig_off_delay 60ths of a second. | |
void | delay_on (void) |
Delay the task for pig_on_delay 60ths of a second. | |
unsigned | PIG_order_EPU (unsigned order[N_EPU]) |
Change the power-on order of the EPUs from the default to order. | |
unsigned | PIG_order_TEM (unsigned order[N_TEM]) |
Change the power-on order of the TEMs from the default to order. | |
unsigned | PIG_order_FREE (unsigned order[N_FREE]) |
Change the power-on order of the FREE boards from the default to order. | |
unsigned | get_epu_id (unsigned index) |
Maps an index to an EPU id (part of the machinery that allows the specification of a power on order). | |
unsigned | get_free_id (unsigned index) |
Maps an index to an FREE id (part of the machinery that allows the specification of a power on order). | |
unsigned | get_tem_id (unsigned index) |
Maps an index to an TEM id (part of the machinery that allows the specification of a power on order). | |
Variables | |
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 [N_TEM] = {0x5,0x6,0x9,0xa,0xc,0xd,0xe,0x1,0x2,0x3,0x7,0xb,0xf,0x0,0x4,0x8} |
Specify the order in which to power on the tems. | |
static unsigned | epu_order [N_EPU] = {0, 1, 2} |
Specify the order in which to power on the EPUs. | |
static unsigned | free_order [N_FREE] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb} |
Specify the order in which to power the FREE boards. |
|
Change the power-on order from the default to new_order.
|
|
Maps an index to an EPU id (part of the machinery that allows the specification of a power on order).
|
|
Maps an index to an FREE id (part of the machinery that allows the specification of a power on order).
|
|
Maps an index to an TEM id (part of the machinery that allows the specification of a power on order).
|
|
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.
|
|
Set the delay after power-off of a component.
|
|
Set the delay after power-on.
|