13#error This is a C++ include file and cannot be used from plain C
22#define ngcdcsPREAMP_ADDR_GAIN1 0x20
23#define ngcdcsPREAMP_ADDR_BW1 0x21
24#define ngcdcsPREAMP_ADDR_SA1 0x22
25#define ngcdcsPREAMP_ADDR_VREF1 0x10
26#define ngcdcsPREAMP_ADDR_GAIN2 0x24
27#define ngcdcsPREAMP_ADDR_BW2 0x25
28#define ngcdcsPREAMP_ADDR_SA2 0x26
29#define ngcdcsPREAMP_ADDR_VREF2 0x2c
34#define ngcdcsPREAMP_MAX_CHAN 8
39#define ngcdcsPREAMP_VREF_CMD 0x0
44#define ngcdcsPREAMP_I2C_FLAGS 0x0040
108 virtual void Reset();
111 virtual int Enable(
int check = 1);
120 virtual int Invert(
int flag);
123 virtual int Gain(
int idx,
int value);
126 virtual int Bandwidth(
int idx,
int value);
132 virtual int Attn(
int idx,
int value);
138 virtual int Vref(
int idx,
double volt);
141 virtual int SetupKey(
const char *key,
const int *idx,
const char *value,
145 virtual int StatusKey(
const char *key,
const int *idx,
char *value,
164 int Volt2Reg_(
double);
Definition ngcbIFC.hpp:760
ngcbMOD(const ngcbMOD &other)
Copy constructor.
Definition ngcbMOD.cpp:43
int numChan
Number of channels in use.
Definition ngcdcsPREAMP.hpp:93
virtual int Vref(int idx, double volt)
Set reference voltage.
Definition ngcdcsPREAMP.cpp:533
virtual ~ngcdcsPREAMP()
Destructor.
Definition ngcdcsPREAMP.cpp:44
ngcdcsPREAMP(const ngcb_route_t &r)
Constructor with route.
Definition ngcdcsPREAMP.cpp:29
virtual int Disable()
Call-back at transition to not operational state.
Definition ngcdcsPREAMP.cpp:228
int bw[ngcdcsPREAMP_MAX_CHAN]
Bandwidth.
Definition ngcdcsPREAMP.hpp:78
double vref[ngcdcsPREAMP_MAX_CHAN]
Reference voltage.
Definition ngcdcsPREAMP.hpp:90
virtual int Enable(int check=1)
Call-back at transition to operational state.
Definition ngcdcsPREAMP.cpp:107
int shortIn[ngcdcsPREAMP_MAX_CHAN]
Short input.
Definition ngcdcsPREAMP.hpp:81
virtual int ShortInput(int idx, int value)
Set short input.
Definition ngcdcsPREAMP.cpp:369
int vrefCmd
Reference voltage DAC command.
Definition ngcdcsPREAMP.hpp:99
virtual int Attn(int idx, int value)
Set attenuation.
Definition ngcdcsPREAMP.cpp:432
virtual int Gain(int idx, int value)
Set gain.
Definition ngcdcsPREAMP.cpp:267
virtual int Selftest()
Execute selftest.
Definition ngcdcsPREAMP.cpp:233
virtual int SetupKey(const char *key, const int *idx, const char *value, int *status=NULL)
Setup.
Definition ngcdcsPreampSetup.cpp:26
int gain[ngcdcsPREAMP_MAX_CHAN]
Gain.
Definition ngcdcsPREAMP.hpp:75
virtual void Reset()
Align software state after reset.
Definition ngcdcsPREAMP.cpp:96
int invertSignal
Invert signals.
Definition ngcdcsPREAMP.hpp:105
double version
Preamplifier version.
Definition ngcdcsPREAMP.hpp:96
virtual int Bandwidth(int idx, int value)
Set bandwidth.
Definition ngcdcsPREAMP.cpp:313
int monitor
Monitor channel.
Definition ngcdcsPREAMP.hpp:87
virtual int StatusKey(const char *key, const int *idx, char *value, int *status=NULL)
Status.
Definition ngcdcsPreampStatus.cpp:26
virtual int Invert(int flag)
Invert signals.
Definition ngcdcsPREAMP.cpp:241
virtual int Monitor(int chan)
Set monitor.
Definition ngcdcsPREAMP.cpp:483
int attn[ngcdcsPREAMP_MAX_CHAN]
Attenuation.
Definition ngcdcsPREAMP.hpp:84
int busCmd
Definition ngcdcsPREAMP.hpp:102
#define ngcdcsPREAMP_MAX_CHAN
Definition ngcdcsPREAMP.hpp:34
Definition ngcbIFC.hpp:78
Definition ngcdcsPREAMP.hpp:50
int preset
Definition ngcdcsPREAMP.hpp:53
ngcdcs_i2c_t()
Constructor.
Definition ngcdcsPREAMP.hpp:56
int value
Definition ngcdcsPREAMP.hpp:52
int addr
Definition ngcdcsPREAMP.hpp:51