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

Constituent: start     Tag: rad750


Interface   Compound List   File List   Compound Members   File Members  

start.c File Reference

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

#include "DUTIL/start.h"
#include "LCB_cfg_p.h"
#include "PBS/MBA.h"
#include "PBS/FORK.h"
#include "PBS/TASK.h"
#include "PBS/FPA.h"
#include "LCB/LCB.h"
#include "LCB/LCB_log.h"
#include "LCB/LCB_init.h"
#include "LCB/LCB_io.h"
#include "LCB/LCB_dispatch.h"
#include "LCB/LCB_err.h"
#include "LCB/LCB_bulk.h"
#include "LCB/LCB_reg.h"
#include "LCB/LIOX.h"
#include "LCB/LIOX_init.h"
#include "LCB/LIOX_sys.h"
#include "LCB/LIOX_sync.h"
#include "LCB/LIOX_cmd.h"
#include "LCB/LIOX_addr.h"
#include <stdio.h>
#include <string.h>

Include dependency graph for start.c:

Include dependency graph

Defines

#define _printf(format, args...)
 Provide printf-like functionality.


Functions

void useOtherLATp (LCB lcb, LIOXs slh)
 Invert the command and event path bits in the configuration registers of the LCB (change to the other LATp fabric) Note that the switching is order dependant. Change the command path first, then change the event path.

void usePrimaryLATp (LCB lcb, LIOXs slh)
 Clear the C/R and event path bits Note that the switching is order dependant. Change the command path first, then change the event path.

void useRedundantLATp (LCB lcb, LIOXs slh)
 Set the C/R and event path bits Note that the switching is order dependant. Change the command path first, then change the event path.

unsigned getEPUaddr (LIOXs slh)
 Returns address to use in the event contributions.

unsigned int createSLH (LCB lcb, LIOXs *slh)
 Allocate memory for and initializes Synchronous LIOX handle.

unsigned int t_LCB_drainQ (LCB lcb)
 Drains the result and event hardware FIFOs.

unsigned LCB_startup (LCB *pLCB, LCB_cfg *cfg)
 Laundry list of LCB initializations.

unsigned LCB_promote (LIOXs slh)
 Assert the LCB commander wire - field promotion from SLAVE to COMMANDER.

unsigned LCB_demote (LIOXs slh)
 De-assert the LCB commander wire.


Detailed Description

Provides functions to power on and configure the LAT.

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

Define Documentation

#define _printf format,
args...   ) 
 

Value:

printf ( __FUNCTION__"():%05d "format".\n" , __LINE__ , ## args); \
          fflush ( stdout);
Provide printf-like functionality.


Function Documentation

unsigned int createSLH LCB  lcb,
LIOXs *  slh
 

Allocate memory for and initializes Synchronous LIOX handle.

Parameters:
lcb Initialized LCB handle
slh Pointer to uninitialed Synchronous LIOX handle
Returns:
LCB_OK

unsigned getEPUaddr LIOXs  slh  ) 
 

Returns address to use in the event contributions.

Parameters:
slh Synchronous LIOX handle
Returns:
Destination address to use when configuring the GEM
Once the round-robin functionality is available in the EBM, this will return 0. Until then it returns the address of the commander node.

unsigned LCB_demote LIOXs  slh  ) 
 

De-assert the LCB commander wire.

Parameters:
slh Synchronous LIOX handle
Returns:
Status of the CSR write

unsigned LCB_promote LIOXs  slh  ) 
 

Assert the LCB commander wire - field promotion from SLAVE to COMMANDER.

Parameters:
slh Synchronous LIOX handle
Returns:
Status of the CSR write

unsigned LCB_startup LCB *  pLCB,
LCB_cfg cfg
 

Laundry list of LCB initializations.

Parameters:
pLCB pointer to hold Initialized LCB handle
cfg Pointer to a LCB_cfg structure containing configuration information
Returns:
LCB_OK

Here is the call graph for this function:

unsigned int t_LCB_drainQ LCB  lcb  )  [static]
 

Drains the result and event hardware FIFOs.

Parameters:
lcb Initialized LCB handle
Returns:
LCB_OK

void useOtherLATp LCB  lcb,
LIOXs  slh
 

Invert the command and event path bits in the configuration registers of the LCB (change to the other LATp fabric) Note that the switching is order dependant. Change the command path first, then change the event path.

Parameters:
lcb Pointer to the LCB
slh Synchronous LIOX handle

void usePrimaryLATp LCB  lcb,
LIOXs  slh
 

Clear the C/R and event path bits Note that the switching is order dependant. Change the command path first, then change the event path.

Parameters:
lcb Pointer to the LCB
slh Synchronous LIOX handle

void useRedundantLATp LCB  lcb,
LIOXs  slh
 

Set the C/R and event path bits Note that the switching is order dependant. Change the command path first, then change the event path.

Parameters:
lcb Pointer to the LCB
slh Synchronous LIOX handle


Generated on Tue Aug 17 02:08:57 2004 by doxygen 1.3.3