ACQ2XX_API
Data Structures | Defines | Functions | Variables
ProcessController.cpp File Reference
#include <assert.h>
#include <iostream>
#include <map>
#include <vector>
#include <set>
#include <stdlib.h>
#include <libgen.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "popt.h"
#include "ProcessController.h"
#include "acq_demux.h"
#include "local.h"
#include "AcqType.h"
#include "AcqDataModel.h"
#include "CommandBuffer.h"
#include "Timer.h"
#include "WorkingDir.h"

Go to the source code of this file.

Data Structures

class  InputValidator
class  LiveFeedProcessController
class  TblockLiveFeedInputValidator
class  SubsetProcessController
class  LiveLogProcessController
class  MeanVisitor
class  LiveMeanProcessController
class  EvLiveFeedInputValidator
class  LivePrePostProcessController
class  OfflineProcessController
class  IncomingProcessController
class  InitializesDefaults
class  InitializesDefaults::OfflineProcessControllerCreator
class  InitializesDefaults::LiveMeanProcessControllerCreator
class  InitializesDefaults::LiveLogProcessControllerCreator
class  InitializesDefaults::LivePrePostProcessControllerCreator
class  InitializesDefaults::IncomingProcessControllerCreator

Defines

#define LM_FEED   "/dev/acq200/data.dma/tbstat2"
#define LM_LINE_SZ   32
#define TBLOCK_LEN   0x600000
#define _ACQ_DEMUX_TBLOCK_ROOT   "/dev/acq200/tblocks/%s"
#define ACQ_DEMUX_TBLOCK_ROOT
#define MEANFILE   "/dev/shm/live_means"
#define _EV_FEED   "/dev/acq200/data.dma/tbstat_ev"
#define EV_FEED   (getenv("EV_FEED")? getenv("EV_FEED"): _EV_FEED)
#define SAMPLE_SIZE   (32 * sizeof(short))
#define TBLOCK_LEN   0x600000
#define TBLOCK_HALF   0x300000
#define TBLOCK_GT   0x400000
#define TBLOCK_LT   0x200000
#define TBLOCK_TRIM   0x100000
#define ACQ132_BLOCKLEN   (32 * sizeof(short) * 256)

Functions

void addLiveCal (AcqDataModel &dataModel)
static bool isComment (char *myline)
bool acq_state_idle (void)
unsigned round_up (unsigned offset)
unsigned round_down (unsigned offset)
unsigned round_up_samples (int samples)
void spawn_task (const char *cbuf)
static void updateEvnIndicator (int evnum)

Variables

int MAXQ = 16
int acq200_debug
static InitializesDefaults ID

Define Documentation

#define _ACQ_DEMUX_TBLOCK_ROOT   "/dev/acq200/tblocks/%s"

Definition at line 57 of file ProcessController.cpp.

#define _EV_FEED   "/dev/acq200/data.dma/tbstat_ev"

Definition at line 618 of file ProcessController.cpp.

#define ACQ132_BLOCKLEN   (32 * sizeof(short) * 256)
#define ACQ_DEMUX_TBLOCK_ROOT
Value:
(getenv("ACQ_DEMUX_TBLOCK_ROOT")? \
         getenv("ACQ_DEMUX_TBLOCK_ROOT"): _ACQ_DEMUX_TBLOCK_ROOT)

Definition at line 58 of file ProcessController.cpp.

#define EV_FEED   (getenv("EV_FEED")? getenv("EV_FEED"): _EV_FEED)

Definition at line 620 of file ProcessController.cpp.

#define LM_FEED   "/dev/acq200/data.dma/tbstat2"

Definition at line 35 of file ProcessController.cpp.

#define LM_LINE_SZ   32

Definition at line 36 of file ProcessController.cpp.

#define MEANFILE   "/dev/shm/live_means"

Definition at line 541 of file ProcessController.cpp.

Referenced by MeanVisitor::MeanVisitor().

#define SAMPLE_SIZE   (32 * sizeof(short))

Definition at line 636 of file ProcessController.cpp.

Referenced by LivePrePostProcessController::B2S().

#define TBLOCK_GT   0x400000

Definition at line 639 of file ProcessController.cpp.

#define TBLOCK_HALF   0x300000
#define TBLOCK_LEN   0x600000

Definition at line 637 of file ProcessController.cpp.

#define TBLOCK_LEN   0x600000
#define TBLOCK_LT   0x200000

Definition at line 640 of file ProcessController.cpp.

#define TBLOCK_TRIM   0x100000

Definition at line 641 of file ProcessController.cpp.


Function Documentation

bool acq_state_idle ( void  )

Definition at line 383 of file ProcessController.cpp.

Referenced by LiveFeedProcessController::run().

void addLiveCal ( AcqDataModel dataModel)
static bool isComment ( char *  myline) [static]

Definition at line 378 of file ProcessController.cpp.

Referenced by LiveFeedProcessController::run().

unsigned round_down ( unsigned  offset)

Definition at line 711 of file ProcessController.cpp.

References ACQ132_BLOCKLEN.

Referenced by LivePrePostProcessController::processAction().

unsigned round_up ( unsigned  offset)
unsigned round_up_samples ( int  samples)

Definition at line 715 of file ProcessController.cpp.

References round_up().

Referenced by LivePrePostProcessController::processAction().

void spawn_task ( const char *  cbuf)

Definition at line 818 of file ProcessController.cpp.

static void updateEvnIndicator ( int  evnum) [static]

Definition at line 885 of file ProcessController.cpp.

References File::writeln().

Referenced by LivePrePostProcessController::dump().


Variable Documentation

Definition at line 58 of file acq196_api_test.cpp.

Referenced by main(), processOpts(), and Quad::Quad().

Definition at line 1243 of file ProcessController.cpp.

int MAXQ = 16