36#ifndef OscilloscopeChannel_h
37#define OscilloscopeChannel_h
59 const std::string&
color,
66 const std::string&
color,
92 virtual void AddRef();
93 virtual void Release();
105 virtual CouplingType GetCoupling();
106 virtual void SetCoupling(CouplingType type);
108 virtual std::vector<OscilloscopeChannel::CouplingType> GetAvailableCouplings();
110 virtual double GetAttenuation();
111 virtual void SetAttenuation(
double atten);
113 virtual int GetBandwidthLimit();
114 virtual void SetBandwidthLimit(
int mhz);
119 bool IsPhysicalChannel()
122 virtual bool IsInverted(
size_t stream);
124 virtual float GetVoltageRange(
size_t stream);
125 virtual void SetVoltageRange(
float range,
size_t stream);
127 virtual float GetOffset(
size_t stream);
128 virtual void SetOffset(
float offset,
size_t stream);
131 void SetDigitalHysteresis(
float level);
132 void SetDigitalThreshold(
float level);
140 std::string GetProbeName();
142 virtual bool CanInvert();
143 virtual void Invert(
bool invert);
144 virtual bool IsInverted();
146 virtual bool HasInputMux();
147 virtual size_t GetInputMuxSetting();
148 virtual void SetInputMux(
size_t select);
159 float m_downloadProgress;
160 double m_downloadStartTime;
Declaration of InstrumentChannel.
Definition AcceleratorBuffer.h:204
A single channel of an instrument.
Definition InstrumentChannel.h:63
DownloadState
Enum values to be mapped to GetDownloadState() int result value for specific channel download states.
Definition InstrumentChannel.h:283
Instrument * m_instrument
The instrument we're part of (may be null in the case of filters etc)
Definition InstrumentChannel.h:313
Fake oscilloscope driver used for offline waveform analysis.
Definition MockOscilloscope.h:45
A single channel on an oscilloscope.
Definition OscilloscopeChannel.h:49
void SetDefaultDisplayName()
Gives a channel a default display name if there's not one already.
Definition OscilloscopeChannel.cpp:79
virtual DownloadState GetDownloadState() override
Returns the current download state of this channel.
Definition OscilloscopeChannel.cpp:359
virtual bool IsHighRateOffsetCapable()
Check if this channel is able to handle high rate (e.g. every mouse movement) offset changes.
Definition OscilloscopeChannel.cpp:379
virtual double GetDownloadStartTime() override
returns the start time of a download, if we are DOWNLOAD_IN_PROGRESS; undefined, otherwise
Definition OscilloscopeChannel.cpp:369
size_t m_refcount
Number of references (channel is disabled when last ref is released)
Definition OscilloscopeChannel.h:166
virtual void SetDisplayName(std::string name) override
Sets the human-readable nickname for this channel, as displayed in the GUI.
Definition OscilloscopeChannel.cpp:254
virtual float GetDownloadProgress() override
returns the current completion of the download (on the range [0, 1]), if not DOWNLOAD_UNKNOWN
Definition OscilloscopeChannel.cpp:364
virtual std::string GetDisplayName() override
Gets the human-readable nickname for this channel, as displayed in the GUI.
Definition OscilloscopeChannel.cpp:261
Generic representation of an oscilloscope, logic analyzer, or spectrum analyzer.
Definition Oscilloscope.h:51
StreamType
General data type stored in a stream.
Definition Stream.h:57
A unit of measurement, plus conversion to pretty-printed output.
Definition Unit.h:59