GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
LCBT / dev
Constituent: lcbtOld     Tag: linux-gcc
Interface Compound List File List Compound Members File Members
LCBT.c File Reference
Basic init and misc public funcs for LCBT module.
More...
#include "PBS/PBS.h"
#include "PBS/MBA.h"
#include "PBS/CACHE.h"
#include "LCBT/LCBT_initBoard.h"
#include "LCBT/LCBT.h"
#include "trace.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for LCBT.c:
|
Functions |
| int | LCBT_init (int latpAddr, int useRedundantPath) |
| | inits LCB driver and start 2 tasks associated with driver
|
| void | LCBT_setOption (unsigned int mask) |
| | set test option mask, see LCBT.h for values
|
| void | LCBT_setEventWatermarks (int eventQWatermark, int eventBuffWatermark) |
| | Set watermarks to cause interrupts from EventQueue and EventBuff fifos.
|
Detailed Description
Basic init and misc public funcs for LCBT module.
- Author:
- Ed Bacho -- ebacho@slac.stanford.edu
Function Documentation
| int LCBT_init |
( |
int |
latpAddr, |
|
|
int |
useRedundantPath |
|
) |
|
|
|
|
inits LCB driver and start 2 tasks associated with driver
- Parameters:
-
| latpAddr | LATp addr to assign to this board |
| useRedundantPath | 0=normal path, 1=redundant path |
- Returns:
- 0=sucess else indicates errors in init
This routine inits the LCBT module. It must be called once after boot to setup the LCB driver for tests. (currently there is no way to shut down the driver, therefore to change the above parms, like latpAddr, one needs to reboot and call with new parameters. If this is called multiple times, the current LCB driver will create multiple tasks trying to listen to the ISR) |
Here is the call graph for this function:
| void LCBT_setEventWatermarks |
( |
int |
eventQWatermark, |
|
|
int |
eventBuffWatermark |
|
) |
|
|
|
|
Set watermarks to cause interrupts from EventQueue and EventBuff fifos.
- Parameters:
-
| eventQWatermark | 0=75% full, 1=50% full, 2=25% full, 3=NotEmpty |
| eventBuffWatermark | 0=75% full, 1=50% full, 2=25% full, 3=NotEmpty |
- Returns:
- none
Sets up watermarks that cause interrupts from EventQueue or EventBuff. The EventQueue can hold 1024 event descriptors and interrupts on the number of events currently in buffer. The EventBuff holds up 516K of data and interrupts on the amount of event data availible (as oppsed to the number of events) |
| void LCBT_setOption |
( |
unsigned int |
mask |
) |
|
|
|
|
set test option mask, see LCBT.h for values
- Parameters:
-
| mask | mask of tests options |
- Returns:
- none
|
Generated on Wed Sep 8 02:52:00 2004 by
1.3.3