52 bool doInitialize(
bool init)
override;
54 bool sustain(
const timespec& t);
60 double SyncTimeStart{0.0};
62 bool FlagFixed{
false};
64 double AmplitudeUnit{0.01};
66 unsigned ChannelCount{0};
81 bool DataEnable{
true};
83 unsigned Threshold{60};
85 double ThresholdValue{70.0};
93 bool PeakFound{
false};
97 void CalculateThreshold();
103 : GateInfo(new TGateInfo[8])
111 double SyncTimeOffset{0.0};
119 unsigned GateCount{0};
121 double TimeUnits{1e6};
125 long PopDivider{100};
130 uint32_t SyncCounter{0};
134 uint32_t CopySyncIndex{0};
136 uint32_t PopIndex{0};
138 bool CopyEnabled{
false};
143 bool TcgEnable{
false};
145 bool BiDirMode{
false};
149 double Sweep[3]{0, 0, 0};
152 TChannelInfo* FChannelInfo{
nullptr};
156 ElapseTimer SingleShotTimer;
158 [[nodiscard]]
long TimeUnits(
const TChannelInfo& ci,
const Value& value)
const;
Implements a repetitive signal acquisition emulator.
Definition RsaEmulator.h:14
double Gain
Definition RsaEmulator.h:165
double Time
Definition RsaEmulator.h:164
~AcquisitionEmulator() override
AcquisitionEmulator(const Parameters &)
bool handleParam(IdType id, ParamInfo *info, const Value *setval, Value *getval) override
Pure virtual method to be overridden in a derived class. This method handles the interface parameters...
EPolarity
Definition RsaEmulator.h:41
@ plPositive
Definition RsaEmulator.h:47
@ plFull
Definition RsaEmulator.h:45
@ plNegative
Definition RsaEmulator.h:43
bool enumParamIds(IdList &ids) override
Gets all interface parameters ids.
bool setRunMode(bool runMode, bool clear) override
Sets the implementation in hold or Run mode.
IdType getParamId(EDefaultParam param, unsigned gate, unsigned channel) const override
Gets the ID of the parameter for the specified gate.
IdType getResultId(EDefaultResult result, unsigned gate, unsigned channel) const override
Returns the ID of the result for the specified gate.
bool getRunMode() const override
Gets the current run mode of a derived class.
bool handleResult(IdType id, ResultInfo *info, BufferInfo *bufInfo) override
Handles results.
bool enumResultIds(IdList &ids) override
Gets interface results ids.
Base class for the repetitive signal acquisition interface.
Definition RsaInterface.h:19
Template to make the sustain system call a class method regularly.
Definition Sustain.h:184
Counted vector having additional methods and operators for ease of usage.
Definition TVector.h:25
Value container class able to performing arithmetic functions.
Definition Value.h:19
Definition Application.h:10
TDynamicBuffer< Allocator > DynamicBuffer
Actual specialized dynamic buffer type using the default allocator.
Definition TDynamicBuffer.h:540
Parameters structure passed to an RSA implementation class.
Definition RsaInterface.h:25
Definition RsaTypes.h:328
Structure to hold parameter information.
Definition RsaTypes.h:121
Definition RsaTypes.h:232
EDefaultResult
Definition RsaTypes.h:471
EDefaultParam
Definition RsaTypes.h:384
unsigned long long IdType
Type for gathering parameter ID's.
Definition RsaTypes.h:26