Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d6b0fd89ac89
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6dca062b102a
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Aug 16, 2020

  1. Copy the full SHA
    6dca062 View commit details
Showing with 13 additions and 0 deletions.
  1. +10 −0 scopeprotocols/FFTDecoder.cpp
  2. +3 −0 scopeprotocols/FFTDecoder.h
10 changes: 10 additions & 0 deletions scopeprotocols/FFTDecoder.cpp
Original file line number Diff line number Diff line change
@@ -90,6 +90,16 @@ double FFTDecoder::GetVoltageRange()
return m_range;
}

void FFTDecoder::SetVoltageRange(double range)
{
m_range = range;
}

void FFTDecoder::SetOffset(double offset)
{
m_offset = offset;
}

string FFTDecoder::GetProtocolName()
{
return "FFT";
3 changes: 3 additions & 0 deletions scopeprotocols/FFTDecoder.h
Original file line number Diff line number Diff line change
@@ -56,6 +56,9 @@ class FFTDecoder : public ProtocolDecoder
virtual double GetOffset();
virtual bool ValidateChannel(size_t i, OscilloscopeChannel* channel);

virtual void SetVoltageRange(double range);
virtual void SetOffset(double offset);

PROTOCOL_DECODER_INITPROC(FFTDecoder)

protected: