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: 89ece625d9d6
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b011d453f8b5
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Dec 7, 2020

  1. Copy the full SHA
    b011d45 View commit details
Showing with 17 additions and 0 deletions.
  1. +15 −0 scopeprotocols/JitterSpectrumFilter.cpp
  2. +2 −0 scopeprotocols/JitterSpectrumFilter.h
15 changes: 15 additions & 0 deletions scopeprotocols/JitterSpectrumFilter.cpp
Original file line number Diff line number Diff line change
@@ -56,6 +56,21 @@ JitterSpectrumFilter::~JitterSpectrumFilter()
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Factory methods

bool JitterSpectrumFilter::ValidateChannel(size_t i, StreamDescriptor stream)
{
if(stream.m_channel == NULL)
return false;

if( (i == 0) &&
(stream.m_channel->GetType() == OscilloscopeChannel::CHANNEL_TYPE_ANALOG) &&
(stream.m_channel->GetYAxisUnits() == Unit::UNIT_FS)
)
{
return true;
}

return false;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Accessors
2 changes: 2 additions & 0 deletions scopeprotocols/JitterSpectrumFilter.h
Original file line number Diff line number Diff line change
@@ -45,6 +45,8 @@ class JitterSpectrumFilter : public FFTFilter

virtual void Refresh();

virtual bool ValidateChannel(size_t i, StreamDescriptor stream);

static std::string GetProtocolName();
virtual void SetDefaultName();