35#ifndef StreamDescriptor_inlines_h
36#define StreamDescriptor_inlines_h
38inline Unit StreamDescriptor::GetXAxisUnits()
43inline Unit StreamDescriptor::GetYAxisUnits()
45 if(m_channel ==
nullptr)
46 return Unit(Unit::UNIT_VOLTS);
53 if(m_channel ==
nullptr)
56 return m_channel->
GetData(m_stream);
61 return (m_channel == rhs.m_channel) && (m_stream == rhs.m_stream);
66 return (m_channel != rhs.m_channel) || (m_stream != rhs.m_stream);
71 if(m_channel < rhs.m_channel)
73 if( (m_channel == rhs.m_channel) && (m_stream < rhs.m_stream) )
79inline uint8_t StreamDescriptor::GetFlags()
const
87inline float StreamDescriptor::GetVoltageRange()
93 return schan->GetVoltageRange(m_stream);
96inline float StreamDescriptor::GetOffset()
102 return schan->GetOffset(m_stream);
105inline void StreamDescriptor::SetVoltageRange(
float v)
109 schan->SetVoltageRange(v, m_stream);
112inline void StreamDescriptor::SetOffset(
float v)
116 schan->SetOffset(v, m_stream);
119inline float StreamDescriptor::GetScalarValue()
121 if(m_channel ==
nullptr)
WaveformBase * GetData(size_t stream)
Get the contents of a data stream.
Definition: InstrumentChannel.h:184
virtual Unit GetYAxisUnits(size_t stream)
Returns the Y axis unit for a specified stream.
Definition: InstrumentChannel.h:140
float GetScalarValue(size_t stream)
Gets the value of a scalar data stream.
Definition: InstrumentChannel.h:200
virtual Unit GetXAxisUnits()
Returns the X axis unit for this channel.
Definition: InstrumentChannel.h:134
uint8_t GetStreamFlags(size_t stream)
Get the flags of a data stream.
Definition: InstrumentChannel.h:192
A single channel on an oscilloscope.
Definition: OscilloscopeChannel.h:49
Descriptor for a single stream coming off a channel.
Definition: StreamDescriptor.h:46
A unit of measurement, plus conversion to pretty-printed output.
Definition: Unit.h:57