-
Notifications
You must be signed in to change notification settings - Fork 14
/
V1495.hh
38 lines (30 loc) · 969 Bytes
/
V1495.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _V1495_HH_
#define _V1495_HH_
#include <CAENVMElib.h>
#include "MongoLog.hh"
#include "Options.hh"
#include "V1724.hh"
//Register address definitions taken from XENON1T m_veto class in kodiaq
//https://github.com/coderdj/kodiaq and XENON1T DAQ m_veto config files
/*
#define V1495_ModuleReset 0x800A
#define V1495_MaskInA 0x1020
#define V1495_MaskInB 0x1024
#define V1495_MaskInD 0x1028
#define V1495_MajorityThreshold 0x1014
#define V1495_CoincidenceWidth 0x1010
#define V1495_CTRL 0x1018
*/
using namespace std;
class V1495{
public:
V1495(std::shared_ptr<MongoLog>&, std::shared_ptr<Options>&, int, int, unsigned);
virtual ~V1495();
int WriteReg(unsigned int reg, unsigned int value);
private:
int fBoardHandle, fBID;
unsigned int fBaseAddress;
std::shared_ptr<Options> fOptions;
std::shared_ptr<MongoLog> fLog;
};
#endif