GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PIG / V8-8-2

Constituent: pig_power     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

power.h File Reference

SIB power register manipulation routines. More...

#include "PIG/structs.h"

Include dependency graph for power.h:

This graph shows which files directly or indirectly include this file:


Functions

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

Detailed Description

SIB power register manipulation routines.

Author:
James Swain - jswain@slac.stanford.edu
history 08 Oct 2004: Prepare for first public release. Add history block 08 Oct 2004: JS - Add delay after power on. Implemented as a static var initialised by a default (provided by #define). Also supplied is a function to override the default 14 Oct 2004: Moved the PIG_get_epus function into pig_flying (pig.h)

Function Documentation

unsigned PIG_power_check void   ) 
 

Read back the state of the SIB power register.

Returns:
State of the power register
Warning:
This function reads from the memory mapped PCI space of the SIB and should only be called on a system with a SIB

void PIG_power_off void   ) 
 

Set the SIB power register to 0.

Warning:
This function writes into the SIB memory mapped PCI space and should only be called on a system with a SIB

void PIG_power_on PIG_siu_cfg  cfg  ) 
 

Write to the power register on the SIB.

Parameters:
cfg SIU configuration structure
Warning:
This function writes into the SIB memory mapped PCI space and should only be called on a system with a SIB

void PIG_power_set_delay unsigned  delay  ) 
 

Override the default PIG power-on delay.

Parameters:
delay Number of clock ticks to wait after hitting the PCI power register


Generated on Wed Mar 15 23:41:07 2006 by  doxygen 1.4.4