12#error This is a C++ include file and cannot be used from plain C
21#define ngcdcsPREAMP_ADDR_GAIN1 0x20
22#define ngcdcsPREAMP_ADDR_BW1 0x21
23#define ngcdcsPREAMP_ADDR_SA1 0x22
24#define ngcdcsPREAMP_ADDR_VREF1 0x10
25#define ngcdcsPREAMP_ADDR_GAIN2 0x24
26#define ngcdcsPREAMP_ADDR_BW2 0x25
27#define ngcdcsPREAMP_ADDR_SA2 0x26
28#define ngcdcsPREAMP_ADDR_VREF2 0x2c
33#define ngcdcsPREAMP_MAX_CHAN 8
38#define ngcdcsPREAMP_VREF_CMD 0x0
43#define ngcdcsPREAMP_I2C_FLAGS 0x0040
107 virtual void Reset();
110 virtual int Enable(
int check = 1);
119 virtual int Invert(
int flag);
122 virtual int Gain(
int idx,
int value);
125 virtual int Bandwidth(
int idx,
int value);
131 virtual int Attn(
int idx,
int value);
137 virtual int Vref(
int idx,
double volt);
140 virtual int SetupKey(
const char *key,
const int *idx,
const char *value,
144 virtual int StatusKey(
const char *key,
const int *idx,
char *value,
163 int Volt2Reg_(
double);
Definition ngcbIFC.hpp:754
ngcbMOD(const ngcbMOD &other)
Copy constructor.
Definition ngcbMOD.cpp:43
int numChan
Number of channels in use.
Definition ngcdcsPREAMP.hpp:92
virtual int Vref(int idx, double volt)
Set reference voltage.
Definition ngcdcsPREAMP.cpp:532
virtual ~ngcdcsPREAMP()
Destructor.
Definition ngcdcsPREAMP.cpp:43
ngcdcsPREAMP(const ngcb_route_t &r)
Constructor with route.
Definition ngcdcsPREAMP.cpp:28
virtual int Disable()
Call-back at transition to not operational state.
Definition ngcdcsPREAMP.cpp:227
int bw[ngcdcsPREAMP_MAX_CHAN]
Bandwidth.
Definition ngcdcsPREAMP.hpp:77
double vref[ngcdcsPREAMP_MAX_CHAN]
Reference voltage.
Definition ngcdcsPREAMP.hpp:89
virtual int Enable(int check=1)
Call-back at transition to operational state.
Definition ngcdcsPREAMP.cpp:106
int shortIn[ngcdcsPREAMP_MAX_CHAN]
Short input.
Definition ngcdcsPREAMP.hpp:80
virtual int ShortInput(int idx, int value)
Set short input.
Definition ngcdcsPREAMP.cpp:368
int vrefCmd
Reference voltage DAC command.
Definition ngcdcsPREAMP.hpp:98
virtual int Attn(int idx, int value)
Set attenuation.
Definition ngcdcsPREAMP.cpp:431
virtual int Gain(int idx, int value)
Set gain.
Definition ngcdcsPREAMP.cpp:266
virtual int Selftest()
Execute selftest.
Definition ngcdcsPREAMP.cpp:232
virtual int SetupKey(const char *key, const int *idx, const char *value, int *status=NULL)
Setup.
Definition ngcdcsPreampSetup.cpp:25
int gain[ngcdcsPREAMP_MAX_CHAN]
Gain.
Definition ngcdcsPREAMP.hpp:74
virtual void Reset()
Align software state after reset.
Definition ngcdcsPREAMP.cpp:95
int invertSignal
Invert signals.
Definition ngcdcsPREAMP.hpp:104
double version
Preamplifier version.
Definition ngcdcsPREAMP.hpp:95
virtual int Bandwidth(int idx, int value)
Set bandwidth.
Definition ngcdcsPREAMP.cpp:312
int monitor
Monitor channel.
Definition ngcdcsPREAMP.hpp:86
virtual int StatusKey(const char *key, const int *idx, char *value, int *status=NULL)
Status.
Definition ngcdcsPreampStatus.cpp:25
virtual int Invert(int flag)
Invert signals.
Definition ngcdcsPREAMP.cpp:240
virtual int Monitor(int chan)
Set monitor.
Definition ngcdcsPREAMP.cpp:482
int attn[ngcdcsPREAMP_MAX_CHAN]
Attenuation.
Definition ngcdcsPREAMP.hpp:83
int busCmd
Definition ngcdcsPREAMP.hpp:101
#define ngcdcsPREAMP_MAX_CHAN
Definition ngcdcsPREAMP.hpp:33
Definition ngcbIFC.hpp:72
Definition ngcdcsPREAMP.hpp:49
int preset
Definition ngcdcsPREAMP.hpp:52
ngcdcs_i2c_t()
Constructor.
Definition ngcdcsPREAMP.hpp:55
int value
Definition ngcdcsPREAMP.hpp:51
int addr
Definition ngcdcsPREAMP.hpp:50