GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > DUTIL / V1-0-0

Constituent: power     Tag: rad750


Interface   Compound List   File List   Compound Members   File Members  

power.h File Reference

Provides functions to power on and configure the LAT. More...

#include "LCB/LIOX_sync_handle.h"

Include dependency graph for power.h:

Include dependency graph

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

Included by dependency graph

Functions

void powerOn (LIOXs slh, unsigned mask0, unsigned mask1, unsigned delay)
 Configures the PDUs to power the required components of the LAT.

int powerOff (LIOXs slh, unsigned cptMask, unsigned delay)
 Configures the PDUs to power the required components of the LAT.

int configCRU (LIOXs slh, unsigned cptMask)
 Configures the CRU to allow LATp C/R with the specified components and sets the LATp addresses of those cpts.

int configEBM (LIOXs slh, unsigned cptMask)
 Configures the source and destination enables of the EBM.

int powerOnTWR (LIOXs slh, unsigned tkrMask, unsigned calMask, unsigned delay)
 Power on the CAL and TRK.

int powerOnACD (LIOXs slh, unsigned freeMask, unsigned delay)
 Power on the FREE boards.

int powerOffTWR (LIOXs slh, unsigned tkrMask, unsigned calMask, unsigned delay)
 Power off the CAL and TRK.

int powerOffACD (LIOXs slh, unsigned freeMask, unsigned delay)
 Power on the FREE boards.

int addTEM (LIOXs slh, unsigned temID, unsigned pduID, unsigned delay)
 Power on a TEM and configure it along with the CRU and EBM.

int removeTEM (LIOXs slh, unsigned temID, unsigned delay)
 Power off a TEM and remove it from the CRU and EBM configurations.

int addEPU (LIOXs slh, unsigned epuID, unsigned pduID, unsigned delay)
 Power on an EPU and configure it along with the CRU and EBM.

int removeEPU (LIOXs slh, unsigned epuID, unsigned delay)
 Power off an EPU and remove it from the CRU and EBM configurations.


Detailed Description

Provides functions to power on and configure the LAT.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

int addEPU LIOXs  slh,
unsigned  epuID,
unsigned  pduID,
unsigned  delay
 

Power on an EPU and configure it along with the CRU and EBM.

Parameters:
slh Synchronous LIOX handle
epuID 0 ... 2
pduID 0 -> use Primary PDU, 1 -> use Redundant PDU
delay Time (in 60ths of a second) to wait after powering a cpt before proceeding
Returns:
0 if successful, -1 if failed

int addTEM LIOXs  slh,
unsigned  temID,
unsigned  pduID,
unsigned  delay
 

Power on a TEM and configure it along with the CRU and EBM.

Parameters:
slh Synchronous LIOX handle
temID 0 ... 15
pduID 0 -> use Primary PDU, 1 -> use Redundant PDU
delay Time (in 60ths of a second) to wait after powering a cpt before proceeding
Returns:
0 if successful, -1 if failed

int configCRU LIOXs  slh,
unsigned  cptMask
 

Configures the CRU to allow LATp C/R with the specified components and sets the LATp addresses of those cpts.

int configCRU(LIOXs slh, unsigned cptMask)

Parameters:
slh Synchronous LIOX handle
cptMask Bit mask indicating which components should be configured
Returns:
0 on success, -1 on failure
1) Any component that is not specified in cptMask will be inaccessible following the execution of this function

2) Only the TEMs, DAB and PDUs are configured by this function.

3) cptMask is laid out in the manner of the CRU command and response enable bit masks (LAT-TD-01547, figs 12 & 13).

TEM0 = 0x00000001 TEM1 = 0x00000002 TEM2 = 0x00000004 : TEMe = 0x00004000 TEMf = 0x00008000 GEM = 0x00010000 AEM = 0x00020000 EBM = 0x00040000 PDU0 = 0x00080000 PDU1 = 0x00100000 SIUx = 0x01000000 SIU0 = 0x02000000 SIU1 = 0x04000000 EPU0 = 0x08000000 EPU1 = 0x10000000 EPU2 = 0x20000000

int configEBM LIOXs  slh,
unsigned  cptMask
 

Configures the source and destination enables of the EBM.

int configEBM(LIOXs slh, unsigned cptMask)

Parameters:
slh Synchronous LIOX handle
cptMask Bit mask indicating which components should be configured
Returns:
0 on success, -1 on failure
1) cptMask is the concatenation of registers 4-6 of the EBM controller block (LAT-TD-01546, the source enable registers) with an additional bit in the most- significant-byte representing the SSR

GEM = 0x00000001 TEM0 = 0x00000002 TEM1 = 0x00000004 TEM2 = 0x00000008 : TEMe = 0x00008000 TEMf = 0x00010000 AEM = 0x00020000 SIUX = 0x00040000 SIU0 = 0x00080000 SIU1 = 0x00100000 EPU0 = 0x00200000 EPU1 = 0x00400000 EPU2 = 0x00800000

int powerOff LIOXs  slh,
unsigned  cptMask,
unsigned  delay
 

Configures the PDUs to power the required components of the LAT.

int powerOff (LIOXs slh, unsigned cptMask, unsigned delay)

Parameters:
slh Synchronous LIOX handle
cptMask Bit mask indicating which components should be powered off
delay Time (in 60ths of a second) to wait after powering a cpt before powering the next
Returns:
0 on success, -1 on failure
1) Function assumes that the CRU is unconfigured so begins by configuring the CRU to access the requested PDUs and sets the LATp addresses of the aforementioned PDUs.

2) Currently only the Primary EPU DC-DC converters are available.

3) Currently only the Primary ACD supply and converters are available.

4) cptMask is laid out in the manner of the CRU command and response enable bit masks (LAT-TD-01547, figs 12 & 13).

TEM0 = 0x00000001 TEM1 = 0x00000002 TEM2 = 0x00000004 : TEMe = 0x00004000 TEMf = 0x00008000 GEM = 0x00010000 AEM = 0x00020000 EBM = 0x00040000 PDU0 = 0x00080000 PDU1 = 0x00100000 SIUx = 0x01000000 SIU0 = 0x02000000 SIU1 = 0x04000000 EPU0 = 0x08000000 EPU1 = 0x10000000 EPU2 = 0x20000000

int powerOffACD LIOXs  slh,
unsigned  freeMask,
unsigned  delay
 

Power on the FREE boards.

Parameters:
slh Synchrounous LIOX handle
freeMask Bitmask indicating which free boards should be powered
delay Time (in 60ths of a second) between each power-on command
Returns:
0 on success, -1 on failure

int powerOffTWR LIOXs  slh,
unsigned  tkrMask,
unsigned  calMask,
unsigned  delay
 

Power off the CAL and TRK.

Parameters:
slh Synchronous LIOX handle
tkrMask Bitmask indicating which tracker towers to turn on
calMask Bitmask indicating which cal towers to turn on
delay Time (in 60ths of a second) between each power-on command
Returns:
0 on success, -1 on failure

void powerOn LIOXs  slh,
unsigned  mask0,
unsigned  mask1,
unsigned  delay
 

Configures the PDUs to power the required components of the LAT.

void powerOn (LIOXs slh, unsigned mask0, unsigned mask1, unsigned delay)

Parameters:
slh Synchronous LIOX handle
mask0 Bit mask indicating which components should be powered on by the PRIMARY PDU
mask1 Bit mask indicating which components should be powered on by the REDUNDANT PDU
delay Time (in 60ths of a second) to wait after powering a cpt before powering the next
1) Function assumes that the CRU is unconfigured so begins by configuring the CRU to access the requested PDUs and sets the LATp addresses of the aforementioned PDUs.

2) Currently only the Primary EPU DC-DC converters are available.

3) Currently only the Primary ACD supply and converters are available.

4) mask0 and mask1 are laid out in the manner of the CRU command and response enable bit masks (LAT-TD-01547, figs 12 & 13).

TEM0 = 0x00000001 TEM1 = 0x00000002 TEM2 = 0x00000004 : TEMe = 0x00004000 TEMf = 0x00008000 GEM = 0x00010000 AEM = 0x00020000 EBM = 0x00040000 PDU0 = 0x00080000 PDU1 = 0x00100000 SIUx = 0x01000000 SIU0 = 0x02000000 SIU1 = 0x04000000 EPU0 = 0x08000000 EPU1 = 0x10000000 EPU2 = 0x20000000

int powerOnACD LIOXs  slh,
unsigned  freeMask,
unsigned  delay
 

Power on the FREE boards.

Parameters:
slh Synchrounous LIOX handle
freeMask Bitmask indicating which free boards should be powered
delay Time (in 60ths of a second) between each power-on command
Returns:
0 on success, -1 on failure

int powerOnTWR LIOXs  slh,
unsigned  tkrMask,
unsigned  calMask,
unsigned  delay
 

Power on the CAL and TRK.

Parameters:
slh Synchronous LIOX handle
tkrMask Bitmask indicating which tracker towers to turn on
calMask Bitmask indicating which cal towers to turn on
delay Time (in 60ths of a second) between each power-on command
Returns:
0 on success, -1 on failure

int removeEPU LIOXs  slh,
unsigned  epuID,
unsigned  delay
 

Power off an EPU and remove it from the CRU and EBM configurations.

Parameters:
slh Synchronous LIOX handle
epuID 0 ... 3
delay Time (in 60ths of a second) to wait after powering a cpt before proceeding
Returns:
0 if successful, -1 if failed

int removeTEM LIOXs  slh,
unsigned  temID,
unsigned  delay
 

Power off a TEM and remove it from the CRU and EBM configurations.

Parameters:
slh Synchronous LIOX handle
temID 0 ... 15
delay Time (in 60ths of a second) to wait after powering a cpt before proceeding
Returns:
0 if successful, -1 if failed


Generated on Fri Jul 9 02:10:41 2004 by doxygen 1.3.3