GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCBT / V1-6-2 > lcbt / rad750


Interface   Data Structures   File List   Data Fields   Globals  

LCBT_eventBuff.c File Reference

LCB Event Buff routines. More...

#include <LCBT/LCBT.h>
#include <PBS/MBA.h>
#include <PBS/WCT.h>
#include <PBS/TMR.h>
#include <PBS/TASK.h>
#include <PBS/QI.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <LCBT_printf.h>

Functions

void LCBT_installTestEvtHandler ()
 installs simple print evt callback on protocol=1
void LCBT_uninstallTestEvtHandler ()
 removes simple print evt callback on protocol=1
unsigned int * LCBT_readEvtFromFile (char *fileName, int *actSize32)
 allocates memory and reads file into that buffer
void LCBT_sendEvtBuff (unsigned int *evtBuff, int buffSize32, int latpAddr, int delayNanoSec, int repeat)
 sends memory (with event data) over event fabric to EPU


Detailed Description

LCB Event Buff routines.

Author:
Ed Bacho -- ebacho@slac.stanford.edu Routines to send simulated event data from the SIU to am EPU. The steps are in a loop: Read header from file with lenght of data and time Delay appropriate time according to fil Read dat into an aligned buffer Send buffer from SIU to designated EPU (on protocol=1)

Function Documentation

LCBT_installTestEvtHandler (  ) 

installs simple print evt callback on protocol=1

Returns:
nothing

unsigned int * LCBT_readEvtFromFile ( char *  fileName,
int *  actSize32 
)

allocates memory and reads file into that buffer

Parameters:
fileName name of file to read
actSize32 isnot 0, returns actual buffersize in int32
Returns:
pointer to buffer with data

References EPRINTF, and PRINTF.

void LCBT_sendEvtBuff ( unsigned int *  evtBuff,
int  buffSize32,
int  latpAddr,
int  delayNanoSec,
int  repeat 
)

sends memory (with event data) over event fabric to EPU

Parameters:
evtBuff - buffer of events
buffSize32 - length of buffer in int32's
latpAddr - dest address, if 0 will send to SIU0
delayNanoSec specify set delay between events, if 0 no delay
repeat repeat buffer send forever
Returns:
nothing

References LCBT_STALL.

LCBT_uninstallTestEvtHandler (  ) 

removes simple print evt callback on protocol=1

Returns:
nothing


Generated on Fri Mar 25 12:53:43 2011 by  doxygen 1.5.8