|
OpenHantek
|
Describes a device This is the central class to describe a hantek compatible DSO. It contains all usb information to find the device on the bus, references to the firmware as well as the user visible name and device specification. More...
#include <dsomodel.h>
Public Member Functions | |
| virtual void | applyRequirements (HantekDsoControl *) const =0 |
| This model may need to modify the HantekDsoControl class to work correctly. | |
| DSOModel (int id, unsigned vendorID, unsigned productID, unsigned vendorIDnoFirmware, unsigned productIDnoFirmware, unsigned firmwareVersion, const QString &firmwareToken, const QString &name, const Dso::ControlSpecification &&specification) | |
| virtual | ~DSOModel ()=default |
| const Dso::ControlSpecification * | spec () const |
| Return the device specifications. | |
Data Fields | |
| const int | ID |
| const unsigned | vendorID |
| The USB vendor ID. | |
| const unsigned | productID |
| The USB product ID. | |
| const unsigned | vendorIDnoFirmware |
| The USB vendor ID if no firmware is uploaded yet. | |
| const unsigned | productIDnoFirmware |
| The USB product ID if no firmware is uploaded yet. | |
| const unsigned | firmwareVersion |
| const QString | firmwareToken |
| const QString | name |
| User visible name. Does not need internationalisation/translation. | |
Protected Attributes | |
| Dso::ControlSpecification | specification |
Describes a device This is the central class to describe a hantek compatible DSO. It contains all usb information to find the device on the bus, references to the firmware as well as the user visible name and device specification.
| DSOModel::DSOModel | ( | int | id, |
| unsigned | vendorID, | ||
| unsigned | productID, | ||
| unsigned | vendorIDnoFirmware, | ||
| unsigned | productIDnoFirmware, | ||
| unsigned | firmwareVersion, | ||
| const QString & | firmwareToken, | ||
| const QString & | name, | ||
| const Dso::ControlSpecification && | specification ) |
|
virtualdefault |
|
pure virtual |
This model may need to modify the HantekDsoControl class to work correctly.
Implemented in ModelDDS120, ModelDEMO, ModelDSO2020, ModelDSO6021, ModelDSO6022BE, ModelDSO6022BL, ModelISDS205B, and ModelMDSO.
|
inline |
Return the device specifications.
| const QString DSOModel::firmwareToken |
Firmwares are compiled into the executable with a filename pattern of devicename-firmware.hex and devicename-loader.hex. The firmwareToken is the "devicename" of the pattern above.
| const unsigned DSOModel::firmwareVersion |
The BCD version of the uploaded firmware
| const int DSOModel::ID |
| const QString DSOModel::name |
User visible name. Does not need internationalisation/translation.
| const unsigned DSOModel::productID |
The USB product ID.
| const unsigned DSOModel::productIDnoFirmware |
The USB product ID if no firmware is uploaded yet.
|
protected |
| const unsigned DSOModel::vendorID |
The USB vendor ID.
| const unsigned DSOModel::vendorIDnoFirmware |
The USB vendor ID if no firmware is uploaded yet.