|
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. More... | |
| DSOModel (int id, unsigned vendorID, unsigned productID, unsigned vendorIDnoFirmware, unsigned productIDnoFirmware, unsigned firmwareVersion, const std::string &firmwareToken, const std::string &name, const Dso::ControlSpecification &&specification) | |
| virtual | ~DSOModel ()=default |
| const Dso::ControlSpecification * | spec () const |
| Return the device specifications. More... | |
Data Fields | |
| const int | ID |
| const unsigned | vendorID |
| The USB vendor ID. More... | |
| const unsigned | productID |
| The USB product ID. More... | |
| const unsigned | vendorIDnoFirmware |
| The USB vendor ID if no firmware is uploaded yet. More... | |
| const unsigned | productIDnoFirmware |
| The USB product ID if no firmware is uploaded yet. More... | |
| const unsigned | firmwareVersion |
| std::string | firmwareToken |
| std::string | name |
| User visible name. Does not need internationalisation/translation. More... | |
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 std::string & | firmwareToken, | ||
| const std::string & | name, | ||
| const Dso::ControlSpecification && | specification | ||
| ) |
|
virtualdefault |
|
pure virtual |
This model may need to modify the HantekDsoControl class to work correctly.
Implemented in ModelDSO2020, ModelDSO6022BL, ModelDDS120, and ModelDSO6022BE.
|
inline |
Return the device specifications.
| std::string 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 |
| std::string 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.