Data Structures | Defines | Functions | Variables

llcontrol.h File Reference

shared data structs for llcontrol. More...

Go to the source code of this file.

Data Structures

struct  Card
 defines resources dedicated to each card. More...
struct  TimingStats
 defines timing of the shot. More...
struct  TestDescription
 defines a test [shot] . More...
struct  TestDescription::ARG

Defines

#define MAXTEST   12
#define ACQ196_BIGBUF_AREA   0x1000000
#define MAXCARDS   16
#define MAXAO32   6
#define LLC200_INIT_SZ   sizeof(struct LLC200_INIT)
#define V2_NOBUF   1
 no buffer required, 0 offset may be valid!
#define IS_SYNC_2V(mode)
#define EACHCARD_INIT   int icard
#define EACHCARD(td)   (&(td)->cards[icard])
#define EACHMBX(td)   ((td)->cards[icard].mbx)
#define EACHBUF(td)   ((td)->cards[icard].buf)
#define EACHSLOT(td)   ((td)->cards[icard].slot)
#define FOREACHCARD   for (icard = 0; icard != td->ncards; ++icard)
#define FIRSTCARD(td)   (&(td)->cards[0])
#define FIRSTMBX(td)   ((td)->cards[0].mbx)
#define FIRSTBUF(td)   ((td)->cards[0].buf)
#define FIRSTSLOT(td)   ((td)->cards[0].slot)
#define THIS_CARD   icard
#define MASTER   (icard == 0)

Functions

int runTest (struct TestDescription *td)
 generic top level text exec.
void setupAbortHandler (struct TestDescription *td)
void setupMonitor (int millisec)
void initCardResource (struct Card *card)
static int td_sample_size (struct TestDescription *td)
static int td_dss (struct TestDescription *td)
static int isAcq216 (void)
static int isAcq216HS (void)
void updateTimingStats (struct TimingStats *buffer, int iter, struct TimingStats *stats)

Variables

int verbose
int G_quit

Detailed Description

shared data structs for llcontrol.

Definition in file llcontrol.h.


Define Documentation

#define ACQ196_BIGBUF_AREA   0x1000000

Definition at line 130 of file llcontrol.h.

Referenced by initCardResource().

#define EACHBUF (   td  )     ((td)->cards[icard].buf)
#define EACHCARD (   td  )     (&(td)->cards[icard])
#define EACHCARD_INIT   int icard

Definition at line 220 of file llcontrol.h.

#define EACHMBX (   td  )     ((td)->cards[icard].mbx)
#define EACHSLOT (   td  )     ((td)->cards[icard].slot)
#define FIRSTBUF (   td  )     ((td)->cards[0].buf)

Definition at line 234 of file llcontrol.h.

Referenced by do_run(), runSYNC_2V(), runSYNC_2VAO32(), and runSYNC_ECM().

#define FIRSTCARD (   td  )     (&(td)->cards[0])

Definition at line 232 of file llcontrol.h.

#define FIRSTMBX (   td  )     ((td)->cards[0].mbx)

Definition at line 233 of file llcontrol.h.

Referenced by do_run(), runSCM216(), runSYNC_2V(), runSYNC_2VAO32(), and runSYNC_ECM().

#define FIRSTSLOT (   td  )     ((td)->cards[0].slot)

Definition at line 235 of file llcontrol.h.

#define FOREACHCARD   for (icard = 0; icard != td->ncards; ++icard)
#define IS_SYNC_2V (   mode  ) 
Value:
((mode) == M_SYNC_2V || (mode) == M_SYNC_2VAO32 || \
                (mode) == M_SYNC_2VRFM)

Definition at line 209 of file llcontrol.h.

Referenced by main().

#define LLC200_INIT_SZ   sizeof(struct LLC200_INIT)

Definition at line 205 of file llcontrol.h.

Referenced by initBuf(), loadPramfile(), and writeOutput().

#define MASTER   (icard == 0)

Definition at line 238 of file llcontrol.h.

Referenced by appEnterLLC_SYNC_2VAO32().

#define MAXAO32   6

Definition at line 132 of file llcontrol.h.

Referenced by main().

#define MAXCARDS   16

Definition at line 131 of file llcontrol.h.

#define MAXTEST   12

Definition at line 101 of file llcontrol.h.

#define THIS_CARD   icard

Definition at line 237 of file llcontrol.h.

Referenced by runSCM216(), runSYNC_2VAO32(), and runTest().

#define V2_NOBUF   1

no buffer required, 0 offset may be valid!

Definition at line 207 of file llcontrol.h.

Referenced by initV2Stats().


Function Documentation

void initCardResource ( struct Card card  ) 
static int isAcq216 ( void   )  [inline, static]

Definition at line 267 of file llcontrol.h.

Referenced by dumpTimingStats(), extractTprocess(), loadPramfile(), runTest(), and setDefaults().

static int isAcq216HS ( void   )  [inline, static]

Definition at line 270 of file llcontrol.h.

Referenced by initPrams(), main(), and makeChannelMask().

int runTest ( struct TestDescription td  ) 
void setupAbortHandler ( struct TestDescription td  ) 

Definition at line 796 of file llcontrol-core.c.

References quit_handler().

Referenced by main().

void setupMonitor ( int  millisec  ) 

Definition at line 839 of file llcontrol-core.c.

References monitor_handler().

Referenced by main(), and monitor_handler().

static int td_dss ( struct TestDescription td  )  [inline, static]

Definition at line 261 of file llcontrol.h.

References TestDescription::iterations, and td_sample_size().

Referenced by main().

static int td_sample_size ( struct TestDescription td  )  [inline, static]
void updateTimingStats ( struct TimingStats buffer,
int  iter,
struct TimingStats stats 
)

Definition at line 561 of file llcontrol.c.

References TimingStats::iter.

Referenced by do_run(), runSCM216(), runSYNC_2V(), runSYNC_2VAO32(), runSYNC_2VRFM(), and runSYNC_ECM().


Variable Documentation

int G_quit
int verbose

Definition at line 400 of file llcontrol.c.