36#ifndef WindowTrigger_h
37#define WindowTrigger_h
Declaration of TwoLevelTrigger.
A parameter to a filter.
Definition: FilterParameter.h:86
void SetIntVal(int64_t i)
Sets the parameter to an integer value.
Definition: FilterParameter.cpp:307
int64_t GetIntVal() const
Returns the value of the parameter interpreted as an integer.
Definition: FilterParameter.h:119
Generic representation of an oscilloscope, logic analyzer, or spectrum analyzer.
Definition: Oscilloscope.h:50
Descriptor for a single stream coming off a channel.
Definition: StreamDescriptor.h:46
Base class for all triggers that have two thresholds rather than one.
Definition: TwoLevelTrigger.h:45
Window trigger - detect when the signal leaves a specified range.
Definition: WindowTrigger.h:46
WindowType GetWindowType()
Gets the type of window.
Definition: WindowTrigger.h:102
void SetWindowType(WindowType type)
Sets the type of window.
Definition: WindowTrigger.h:98
void SetWidth(int64_t ps)
Sets the time the signal needs to stay in/outside the window.
Definition: WindowTrigger.h:110
FilterParameter & m_width
Time the signal needs to stay in / outside the window.
Definition: WindowTrigger.h:123
void SetCrossingDirection(Crossing dir)
Sets the crossing direction (only used for "stay inside" and "stay outside" window types)
Definition: WindowTrigger.h:90
WindowTrigger(Oscilloscope *scope)
Creates a new window trigger.
Definition: WindowTrigger.cpp:51
FilterParameter & m_windowType
Condition to trigger on.
Definition: WindowTrigger.h:129
static std::string GetTriggerName()
Return the constant trigger name "Window".
Definition: WindowTrigger.cpp:92
FilterParameter & m_crossingType
Crossing direction for stay-inside and stay-outside types.
Definition: WindowTrigger.h:126
WindowType
How to trigger.
Definition: WindowTrigger.h:75
@ WINDOW_EXIT
Trigger immediately upon exit from the window.
Definition: WindowTrigger.h:80
@ WINDOW_ENTER
Trigger immediately upon entry to the window.
Definition: WindowTrigger.h:77
@ WINDOW_ENTER_TIMED
Trigger upon entry to the window, if we were outside it for at least X time.
Definition: WindowTrigger.h:86
@ WINDOW_EXIT_TIMED
Trigger upon exit from the window, if we were in it for at least X time.
Definition: WindowTrigger.h:83
int64_t GetWidth()
Gets the time the signal needs to stay in / outside the winodw.
Definition: WindowTrigger.h:114
Crossing GetCrossingDirection()
Gets the selected crossing direction.
Definition: WindowTrigger.h:94
Crossing
Type of level crossing to detect for "stay inside" and "stay outside" windows.
Definition: WindowTrigger.h:57
@ CROSS_NONE
Nothing.
Definition: WindowTrigger.h:68
@ CROSS_UPPER
Upper threshold.
Definition: WindowTrigger.h:59
@ CROSS_EITHER
Either threshold.
Definition: WindowTrigger.h:65
@ CROSS_LOWER
Lower threshold.
Definition: WindowTrigger.h:62