GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PIG / V10-1-3 > pig_power / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

power.c File Reference

Power switching on the SIB. More...

#include "PIG/power.h"
#include "PBS/TASK.h"
#include "PBS/TOV.h"

Enumerations

enum  { PCI_PWR_REG = 0xc1000008 }
enum  { DEFAULT_PWR_DELAY = 50 }

Functions

void PIG_power_set_delay (unsigned delay)
 Set the delay after main power on.
void PIG_power_on (PIG_siu_cfg cfg)
 Write to the power register on the SIB.
unsigned PIG_power_check (void)
 Read back the state of the SIB power register.
void PIG_power_off (void)
 Set the SIB power register to 0.

Variables

static unsigned pig_power_delay = DEFAULT_PWR_DELAY
 Time to wait for the power to come on after hitting the SIB power register.


Detailed Description

Power switching on the SIB.

Author:
James Swain & Owen Saxton
$Id: power.c,v 1.13 2009/07/31 21:31:45 saxton Exp $

Function Documentation

unsigned PIG_power_check ( void   ) 

Read back the state of the SIB power register.

Returns:
State of the power register

void PIG_power_on ( PIG_siu_cfg  cfg  ) 

Write to the power register on the SIB.

Parameters:
cfg SIU configuration structure

void PIG_power_set_delay ( unsigned  delay  ) 

Set the delay after main power on.

Parameters:
delay Time (in 100ths of a second) to wait after hitting the SIB PCI power register


Generated on Fri Jul 31 14:50:27 2009 by  doxygen 1.5.3