You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scopehal/Oscilloscope.h
+3-53Lines changed: 3 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -384,63 +384,13 @@ class Oscilloscope : public virtual Instrument
384
384
*/
385
385
virtualboolIsInverted(size_t i);
386
386
387
-
/**
388
-
@brief Gets the download state of the specified channel.
389
-
390
-
The returned int value can either be an integer ranging from 0 to 100 corresponding to the percentage of the waveform that has already been downloaded,
391
-
or a (negative) int value to be mapped to the OscilloscopeChannel::DownloadState enum
392
-
393
-
@param i Zero-based index of channel
394
-
*/
395
-
virtualintGetChannelDownloadState(size_t i);
396
-
397
387
protected:
398
388
399
-
/**
400
-
@brief Let the driver decide wehther channels download progress should be displayed or not, according to the current sample depth configuration.
401
-
402
-
If scope download speed is fast enough according the the currently set sample depth, progress should not be shown to prevent flickering effect on the download bar.
403
-
404
-
If this method is not called by the driver, Oscilloscope class will try and determine whether download progress bar should be shown or not automatically.
405
-
406
-
@param show true if the download progress bar should be displayed, false otherwise
407
-
*/
408
-
voidSetShowChannelsDownloadProgress(bool show);
409
-
410
-
/**
411
-
@brief Drivers should call this method at a download operation start to tell the Oscilloscope class to initialize all channel download states.
412
-
413
-
*/
389
+
/// @brief Helper method called by drivers to reset all channels to "waiting to download" state.
414
390
voidChannelsDownloadStarted();
415
391
416
-
/**
417
-
@brief Updates the download state for the specified channel.
418
-
419
-
The provided int value can either be an integer ranging from 0 to 100 corresponding to the percentage of the waveform that has already been downloaded
420
-
or a (negative) int value to be mapped to the OscilloscopeChannel::DownloadState enum
421
-
422
-
@param i Zero-based index of channel
423
-
@param downloadState the download state value
424
-
425
-
*/
426
-
voidUpdateChannelDownloadState(size_t i, int downloadState);
427
-
428
-
// Handling of waveform downnload operation state
429
-
private:
430
-
// True when the download progress bar should be displayed (i.e. slow download speed)
431
-
bool m_showChannelProgressBar = false;
432
-
// True when the driver is handling download progressbar display state on its side
433
-
bool m_forceShowChannelProgressBar = false;
434
-
// Time of start of the latest download operation for this instrument
435
-
double m_downloadStartTime = 0;
436
-
// Sample depth that was set on this Oscilloscope the last time the download speed have been evaluated
437
-
uint64_t m_downloadSpeedEvalSampleDepth = 0;
438
-
// Number of enabled channels on this Oscilloscope the last time the download speed have been evaluated
439
-
size_t m_downloadSpeedEvalEnabledChannels;
440
-
// True whent the download speed has been evaluated
441
-
bool m_downloadSpeedEvaluated = false;
442
-
// Dowbload state for each channel of this Oscilloscope
443
-
std::vector<int> m_channelDownloadStates;
392
+
/// @brief Helper method called by drivers to set one channel's download status.
0 commit comments