@@ -10,39 +10,39 @@ constexpr int kSettingsVer = 1;
1010*/
1111
1212TimeDeltaAnalyzerSettings::TimeDeltaAnalyzerSettings ():
13- mRefChannel (UNDEFINED_CHANNEL),
14- mRefEdgeIsPos (true ),
15- mTagChannel (UNDEFINED_CHANNEL),
16- mTagEdgeIsPos (true )
13+ mStartChannel (UNDEFINED_CHANNEL),
14+ mStartEdgeIsPos (true ),
15+ mStopChannel (UNDEFINED_CHANNEL),
16+ mStopEdgeIsPos (true )
1717 {
18- mRefChannelInterface .reset (new AnalyzerSettingInterfaceChannel ());
19- mRefChannelInterface ->SetTitleAndTooltip
20- (" Reference " , " Measure time delta from this channel to target channel" );
21- mRefEdgeInterface .reset (new AnalyzerSettingInterfaceBool ());
22- mRefEdgeInterface ->SetTitleAndTooltip
23- (" Pos Edge" , " Reference rising edge is active" );
24- mTagChannelInterface .reset (new AnalyzerSettingInterfaceChannel ());
25- mTagChannelInterface ->SetTitleAndTooltip
26- (" Target " , " Measure time delta from this channel to target channel" );
27- mTagEdgeInterface .reset (new AnalyzerSettingInterfaceBool ());
28- mTagEdgeInterface ->SetTitleAndTooltip
29- (" Pos Edge" , " Target rising edge is active" );
30-
31- mRefChannelInterface ->SetChannel (mRefChannel );
32- mTagChannelInterface ->SetChannel (mTagChannel );
33-
34- AddInterface (mRefChannelInterface .get ());
35- AddInterface (mRefEdgeInterface .get ());
36- AddInterface (mTagChannelInterface .get ());
37- AddInterface (mTagEdgeInterface .get ());
18+ mStartChannelInterface .reset (new AnalyzerSettingInterfaceChannel ());
19+ mStartChannelInterface ->SetTitleAndTooltip
20+ (" Start " , " Measure time delta from this channel to stop channel" );
21+ mStartEdgeInterface .reset (new AnalyzerSettingInterfaceBool ());
22+ mStartEdgeInterface ->SetTitleAndTooltip
23+ (" Pos Edge" , " Start rising edge is active" );
24+ mStopChannelInterface .reset (new AnalyzerSettingInterfaceChannel ());
25+ mStopChannelInterface ->SetTitleAndTooltip
26+ (" Stop " , " Measure time delta from start channel to this channel" );
27+ mStopEdgeInterface .reset (new AnalyzerSettingInterfaceBool ());
28+ mStopEdgeInterface ->SetTitleAndTooltip
29+ (" Pos Edge" , " Stop rising edge is active" );
30+
31+ mStartChannelInterface ->SetChannel (mStartChannel );
32+ mStopChannelInterface ->SetChannel (mStopChannel );
33+
34+ AddInterface (mStartChannelInterface .get ());
35+ AddInterface (mStartEdgeInterface .get ());
36+ AddInterface (mStopChannelInterface .get ());
37+ AddInterface (mStopEdgeInterface .get ());
3838
3939 AddExportOption (0 , " Export as text/csv file" );
4040 AddExportExtension (0 , " text" , " txt" );
4141 AddExportExtension (0 , " csv" , " csv" );
4242
4343 ClearChannels ();
44- AddChannel (mRefChannel , " Ref " , false );
45- AddChannel (mTagChannel , " Tag " , false );
44+ AddChannel (mStartChannel , " Start " , false );
45+ AddChannel (mStopChannel , " Stop " , false );
4646 }
4747
4848TimeDeltaAnalyzerSettings::~TimeDeltaAnalyzerSettings ()
@@ -51,23 +51,23 @@ TimeDeltaAnalyzerSettings::~TimeDeltaAnalyzerSettings()
5151
5252bool TimeDeltaAnalyzerSettings::SetSettingsFromInterfaces ()
5353 {
54- mRefChannel = mRefChannelInterface ->GetChannel ();
55- mRefEdgeIsPos = mRefEdgeInterface ->GetValue ();
56- mTagChannel = mTagChannelInterface ->GetChannel ();
57- mTagEdgeIsPos = mTagEdgeInterface ->GetValue ();
54+ mStartChannel = mStartChannelInterface ->GetChannel ();
55+ mStartEdgeIsPos = mStartEdgeInterface ->GetValue ();
56+ mStopChannel = mStopChannelInterface ->GetChannel ();
57+ mStopEdgeIsPos = mStopEdgeInterface ->GetValue ();
5858
5959 ClearChannels ();
60- AddChannel (mRefChannel , " Time Delta" , true );
60+ AddChannel (mStartChannel , " Time Delta" , true );
6161
6262 return true ;
6363 }
6464
6565void TimeDeltaAnalyzerSettings::UpdateInterfacesFromSettings ()
6666 {
67- mRefChannelInterface ->SetChannel (mRefChannel );
68- mRefEdgeInterface ->SetValue (mRefEdgeIsPos );
69- mTagChannelInterface ->SetChannel (mTagChannel );
70- mTagEdgeInterface ->SetValue (mTagEdgeIsPos );
67+ mStartChannelInterface ->SetChannel (mStartChannel );
68+ mStartEdgeInterface ->SetValue (mStartEdgeIsPos );
69+ mStopChannelInterface ->SetChannel (mStopChannel );
70+ mStopEdgeInterface ->SetValue (mStopEdgeIsPos );
7171 }
7272
7373void TimeDeltaAnalyzerSettings::LoadSettings (const char * settings)
@@ -77,14 +77,14 @@ void TimeDeltaAnalyzerSettings::LoadSettings(const char* settings)
7777 text_archive.SetString (settings);
7878
7979 text_archive >> settingsVer;
80- text_archive >> mRefChannel ;
81- text_archive >> mRefEdgeIsPos ;
82- text_archive >> mTagChannel ;
83- text_archive >> mTagEdgeIsPos ;
80+ text_archive >> mStartChannel ;
81+ text_archive >> mStartEdgeIsPos ;
82+ text_archive >> mStopChannel ;
83+ text_archive >> mStopEdgeIsPos ;
8484
8585 ClearChannels ();
86- AddChannel (mRefChannel , " Time Delta" , true );
87- AddChannel (mTagChannel , " Time Delta" , true );
86+ AddChannel (mStartChannel , " Time Delta" , true );
87+ AddChannel (mStopChannel , " Time Delta" , true );
8888
8989 UpdateInterfacesFromSettings ();
9090 }
@@ -94,10 +94,10 @@ const char* TimeDeltaAnalyzerSettings::SaveSettings()
9494 SimpleArchive text_archive;
9595
9696 text_archive << kSettingsVer ;
97- text_archive << mRefChannel ;
98- text_archive << mRefEdgeIsPos ;
99- text_archive << mTagChannel ;
100- text_archive << mTagEdgeIsPos ;
97+ text_archive << mStartChannel ;
98+ text_archive << mStartEdgeIsPos ;
99+ text_archive << mStopChannel ;
100+ text_archive << mStopEdgeIsPos ;
101101
102102 return SetReturnString (text_archive.GetString ());
103103 }
0 commit comments