ACQ2XX_API
Data Structures | Defines | Functions | Variables
Acq132.cpp File Reference
#include <assert.h>
#include <iostream>
#include <map>
#include <math.h>
#include <string.h>
#include "local.h"
#include "Acq132.h"
#include "AcqDataModel.h"

Go to the source code of this file.

Data Structures

class  RGM_EventSignature
class  DR_EventSignature
struct  ChannelMap
class  Cmask

Defines

#define NUMCHAN   32
#define ACQ132_ES_DEC_CNT_MASK   0xff00
#define ACQ132_ES_LAT_MASK   0x00fc
#define ACQ132_ES_DEC_CNT(es)   (((es)&ACQ132_ES_DEC_CNT_MASK)>>8)
#define ACQ132_ES_LAT_CNT(es)   (((es)&ACQ132_ES_LAT_MASK)>>2)
#define NQUAD   4
#define NCHANNELMAPS   8

Functions

static void dumpES_num (File &f, int offset, int decim_phase, int es_num, int len)
static void dumpTimestamp (File &f, int sample, double t1, DR_EventSignature *dr)

Variables

static const int es_cold_offset_samples [129]
struct ChannelMap default_channelMaps []
struct ChannelMap lfp_channelMaps []
struct ChannelMapchannelMaps = default_channelMaps
static int SCAN_LIST3_HACK = getenv("SCAN_LIST3_HACK") != 0

Define Documentation

#define ACQ132_ES_DEC_CNT (   es)    (((es)&ACQ132_ES_DEC_CNT_MASK)>>8)

Definition at line 40 of file Acq132.cpp.

Referenced by DR_EventSignature::getDecimationPhase().

#define ACQ132_ES_DEC_CNT_MASK   0xff00

Definition at line 37 of file Acq132.cpp.

#define ACQ132_ES_LAT_CNT (   es)    (((es)&ACQ132_ES_LAT_MASK)>>2)

Definition at line 41 of file Acq132.cpp.

Referenced by DR_EventSignature::getOffset().

#define ACQ132_ES_LAT_MASK   0x00fc

Definition at line 38 of file Acq132.cpp.

#define NCHANNELMAPS   8

Definition at line 368 of file Acq132.cpp.

Referenced by Acq132DataModel::Acq132DataModel().

#define NQUAD   4

Definition at line 336 of file Acq132.cpp.

Referenced by Acq132DataModel::Acq132DataModel().

#define NUMCHAN   32

Definition at line 33 of file Acq132.cpp.

Referenced by Acq132DataModel::process().


Function Documentation

static void dumpES_num ( File f,
int  offset,
int  decim_phase,
int  es_num,
int  len 
) [static]

Definition at line 565 of file Acq132.cpp.

References File::getFp().

static void dumpTimestamp ( File f,
int  sample,
double  t1,
DR_EventSignature dr 
) [static]

Variable Documentation

Definition at line 366 of file Acq132.cpp.

Initial value:
 {
{ SCAN_A, LEFT,  { Channel(13), Channel(14), Channel(15), Channel(16) } },
{ SCAN_A, RIGHT, { Channel(29), Channel(30), Channel(31), Channel(32) } },
{ SCAN_B, LEFT,  { Channel( 9), Channel(10), Channel(11), Channel(12) } },
{ SCAN_B, RIGHT, { Channel(25), Channel(26), Channel(27), Channel(28) } },
{ SCAN_C, LEFT,  { Channel( 5), Channel( 6), Channel( 7), Channel( 8) } },
{ SCAN_C, RIGHT, { Channel(21), Channel(22), Channel(23), Channel(24) } },
{ SCAN_D, LEFT,  { Channel( 1), Channel( 2), Channel( 3), Channel( 4) } },
{ SCAN_D, RIGHT, { Channel(17), Channel(18), Channel(19), Channel(20) } },      
}

Definition at line 344 of file Acq132.cpp.

const int es_cold_offset_samples[129] [static]
Initial value:
 { 

        0,
        -5,-1,
              0,2,1,1,2,2,2,2,2,2,2,2,2,2,      
        2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,        
        2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,        
        2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,        
        2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,        
        2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,        
        2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,        
        2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,        
}

Definition at line 46 of file Acq132.cpp.

Referenced by DR_EventSignature::getOffset().

Initial value:
 {
{ SCAN_A, LEFT,  { Channel( 3), Channel( 4), Channel( 1), Channel( 2) } },
{ SCAN_A, RIGHT, { Channel(19), Channel(20), Channel(17), Channel(18) } },
{ SCAN_B, LEFT,  { Channel( 7), Channel( 8), Channel( 5), Channel( 6) } },
{ SCAN_B, RIGHT, { Channel(23), Channel(24), Channel(21), Channel(22) } },
{ SCAN_C, LEFT,  { Channel(11), Channel(12), Channel( 9), Channel(10) } },
{ SCAN_C, RIGHT, { Channel(27), Channel(28), Channel(25), Channel(26) } },
{ SCAN_D, LEFT,  { Channel(15), Channel(16), Channel(13), Channel(14) } },
{ SCAN_D, RIGHT, { Channel(31), Channel(32), Channel(29), Channel(30) } },
}

Definition at line 355 of file Acq132.cpp.

Referenced by Acq132DataModel::Acq132DataModel().

int SCAN_LIST3_HACK = getenv("SCAN_LIST3_HACK") != 0 [static]

Definition at line 845 of file Acq132.cpp.