ACQ400_XRM (xrmIoc)
Loading...
Searching...
No Matches
anatrg.h
1/*
2 * anatrg.h
3 *
4 * Created on: 16 Aug 2026
5 * Author: pgm
6 */
7
8#ifndef XRMIOCAPP_SRC_ANATRG_H_
9#define XRMIOCAPP_SRC_ANATRG_H_
10
11#include <vector>
12
13struct Command {
14 const char* key;
15 Command(const char* _key);
16 bool match(const char *testkey);
17
18 virtual unsigned operator() (int p1, int p2, int hyst) const = 0;
19};
20
21class AnaTrg {
22
23 const int nchan;
24 const unsigned offset;
25 void* const mapping;
26
27 void setThreshold(int chan, unsigned abcd);
28 void setThreshold(unsigned abcd);
29public:
30 AnaTrg(int _nchan, void* _mapping, unsigned _offset);
31 int operator() (const char* key, int p1, int p2, int hyst);
32
33 static std::vector<Command*> commands;
34};
35
36
37#endif /* XRMIOCAPP_SRC_ANATRG_H_ */