Declaration of SerialTrigger.
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
void SetFloatVal(float f)
Sets the parameter to a floating point value.
Definition: FilterParameter.cpp:323
float GetFloatVal() const
Returns the value of the parameter interpreted as a floating point number.
Definition: FilterParameter.h:125
Generic representation of an oscilloscope, logic analyzer, or spectrum analyzer.
Definition: Oscilloscope.h:50
Abstract base class for serial protocol triggers with pattern matching.
Definition: SerialTrigger.h:42
Descriptor for a single stream coming off a channel.
Definition: StreamDescriptor.h:46
Trigger when a UART sees a certain data pattern.
Definition: UartTrigger.h:56
FilterParameter & m_stoptype
Stop type.
Definition: UartTrigger.h:183
MatchType GetMatchType()
Returns the currently selected match mode.
Definition: UartTrigger.h:117
FilterParameter & m_parity
Parity type.
Definition: UartTrigger.h:177
ParityType GetParityType()
Get the currently selected parity mode.
Definition: UartTrigger.h:89
void SetParityType(ParityType type)
Set the parity for the trigger.
Definition: UartTrigger.h:85
float GetStopBits()
Get the length of the stop bit, in UI.
Definition: UartTrigger.h:155
int64_t GetBitRate()
Get the current baud rate.
Definition: UartTrigger.h:143
void SetPolarity(Polarity type)
Sets the UART polarity.
Definition: UartTrigger.h:135
FilterParameter & m_polarity
Polarity.
Definition: UartTrigger.h:186
Polarity
Polarity of the port.
Definition: UartTrigger.h:122
@ IDLE_LOW
Idle low, pull high to send a bit.
Definition: UartTrigger.h:127
@ IDLE_HIGH
Idle high, pull low to send a bit.
Definition: UartTrigger.h:124
FilterParameter & m_matchtype
Match type.
Definition: UartTrigger.h:180
static std::string GetTriggerName()
Returns the trigger name "UART".
Definition: UartTrigger.cpp:94
MatchType
What kind of pattern to match.
Definition: UartTrigger.h:94
@ TYPE_DATA
Match on a data byte.
Definition: UartTrigger.h:96
@ TYPE_START
Match on a start bit.
Definition: UartTrigger.h:102
@ TYPE_STOP
Match on a stop bit.
Definition: UartTrigger.h:105
@ TYPE_PARITY_ERR
Match on a parity error.
Definition: UartTrigger.h:99
void SetMatchType(MatchType type)
Sets the match mode for the trigger.
Definition: UartTrigger.h:113
Polarity GetPolarity()
Get the current trigger polarity.
Definition: UartTrigger.h:139
void SetBitRate(int64_t t)
Sets the baud rate.
Definition: UartTrigger.h:151
void SetStopBits(float n)
Set the length of the stop bit.
Definition: UartTrigger.h:163
UartTrigger(Oscilloscope *scope)
Creates a new UART trigger.
Definition: UartTrigger.cpp:51
ParityType
Type of parity to use.
Definition: UartTrigger.h:63
@ PARITY_EVEN
Even parity.
Definition: UartTrigger.h:71
@ PARITY_MARK
Mark parity.
Definition: UartTrigger.h:74
@ PARITY_SPACE
Space parity.
Definition: UartTrigger.h:77
@ PARITY_NONE
No parity.
Definition: UartTrigger.h:65
@ PARITY_ODD
Odd parity.
Definition: UartTrigger.h:68
FilterParameter & m_baudrate
Baud rate.
Definition: UartTrigger.h:174