ACQ2XX_API
Data Structures | Defines | Typedefs | Functions | Variables
AcqType.cpp File Reference

Encapsulates ACQ2xx product design details . More...

#include "local.h"
#include <iostream>
#include <string>
#include <map>
#include <stdlib.h>
#include "acq2xx_api.h"
#include "acq_transport.h"
#include "AcqType.h"
#include "string.h"
#include <errno.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <strings.h>

Go to the source code of this file.

Data Structures

class  FakeTimestamp
class  Acq196EventSignature
class  Acq196AcqType
class  NullAcqType
class  Acq132AcqType
class  Acq164AcqType
class  Acq196MacAcqType
class  PentaLockinAcqType

Defines

#define CMD   128
#define REPLY   512
#define TS_SHM   "/dev/shm/acq_timestamp"
#define ACQ196_MAGIC   (short)0xaa55

Typedefs

typedef map< string, string > KeyValueMap

Functions

static int parse (const char personality[])
static int is_signature (short *data, int nchan)

Variables

static double last_time = -1.0
NullAcqType nullAcqTypeInstance
KeyValueMap acqPrams
static string model

Detailed Description

Encapsulates ACQ2xx product design details .

like channel mapping, number of channels, word size.

pulls details from card using get.personality

Refs: see ICD for frame definition

Definition in file AcqType.cpp.


Define Documentation

#define ACQ196_MAGIC   (short)0xaa55

Definition at line 711 of file AcqType.cpp.

Referenced by is_signature().

#define CMD   128

Definition at line 40 of file AcqType.cpp.

#define REPLY   512

Definition at line 41 of file AcqType.cpp.

Referenced by AcqType::getAcqType().

#define TS_SHM   "/dev/shm/acq_timestamp"

Definition at line 52 of file AcqType.cpp.


Typedef Documentation

typedef map<string, string> KeyValueMap

Definition at line 515 of file AcqType.cpp.


Function Documentation

static int is_signature ( short *  data,
int  nchan 
) [static]

Definition at line 712 of file AcqType.cpp.

References ACQ196_MAGIC.

Referenced by Acq196EventSignature::create().

static int parse ( const char  personality[]) [static]

Definition at line 523 of file AcqType.cpp.

References acqPrams.

Referenced by AcqType::_getAcqType().


Variable Documentation

Definition at line 517 of file AcqType.cpp.

Referenced by AcqType::_getAcqType(), and parse().

double last_time = -1.0 [static]

Definition at line 107 of file AcqType.cpp.

Referenced by Acq196EventSignature::timeInSeconds().

string model [static]

Definition at line 511 of file AcqType.cpp.

Referenced by AcqType::_getAcqType(), and AcqType::getAcqType().