4#include "devicecommand.h"
46 friend class TestDsoCommand;
The AbstractPokitService class provides a common base for Pokit services classes.
The AbstractCommand class extends AbstractCommand to add a PokitDevice instance.
The DsoCommand class implements the dso CLI command.
DsoService::Settings settings
Settings for the Pokit device's DSO mode.
qint32 samplesToGo
Number of samples we're expecting in the current window.
bool showCsvHeader
Whether or not to show a header as the first line of CSV output.
void serviceDetailsDiscovered() override
Handles service detail discovery events.
void outputSamples(const DsoService::Samples &samples)
Outputs DSO samples in the selected ouput format.
quint8(* minRangeFunc)(const PokitProduct product, const quint32 maxValue)
Pointer to function for converting rangeOptionValue to a Pokit device's range enumerator.
QStringList supportedOptions(const QCommandLineParser &parser) const override
Returns a list of CLI option names supported by this command.
DsoCommand(QObject *const parent=nullptr)
Construct a new DsoCommand object with parent.
DsoService * service
Bluetooth service this command interracts with.
QStringList processOptions(const QCommandLineParser &parser) override
Processes the relevant options from the command line parser.
void settingsWritten()
Invoked when the DSO settings have been written.
quint32 rangeOptionValue
The parsed value of range option.
QStringList requiredOptions(const QCommandLineParser &parser) const override
Returns a list of CLI option names required by this command.
AbstractPokitService * getService() override
Returns a Pokit service object for the derived command class.
DsoService::Metadata metadata
Most recent DSO metadata.
void metadataRead(const DsoService::Metadata &data)
Invoked when metadata has been received from the DSO.
The DsoService class accesses the DSO (Digital Storage Oscilloscope) service of Pokit devices.
@ DcVoltage
Measure DC voltage.
@ FreeRunning
Run free, without waiting for edge triggers.
Declares the DsoService class.
Declares the PokitMeter namespace.
Declares the PokitPro namespace.
PokitProduct
Pokit products known to, and supported by, the QtPokit library.
QObject * parent() const const
Attributes included in the Settings characterstic.