OpenHantek
Loading...
Searching...
No Matches
DSOModel Class Referenceabstract

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>

Inheritance diagram for DSOModel:
ModelDDS120 ModelDEMO ModelDSO2020 ModelDSO6021 ModelDSO6022BE ModelDSO6022BL ModelISDS205B ModelMDSO

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::ControlSpecificationspec () 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

Detailed Description

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.

Constructor & Destructor Documentation

◆ DSOModel()

DSOModel::DSOModel ( int id,
unsigned vendorID,
unsigned productID,
unsigned vendorIDnoFirmware,
unsigned productIDnoFirmware,
unsigned firmwareVersion,
const QString & firmwareToken,
const QString & name,
const Dso::ControlSpecification && specification )

◆ ~DSOModel()

virtual DSOModel::~DSOModel ( )
virtualdefault

Member Function Documentation

◆ applyRequirements()

virtual void DSOModel::applyRequirements ( HantekDsoControl * ) const
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.

◆ spec()

const Dso::ControlSpecification * DSOModel::spec ( ) const
inline

Return the device specifications.

Field Documentation

◆ firmwareToken

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.

◆ firmwareVersion

const unsigned DSOModel::firmwareVersion

The BCD version of the uploaded firmware

◆ ID

const int DSOModel::ID

◆ name

const QString DSOModel::name

User visible name. Does not need internationalisation/translation.

◆ productID

const unsigned DSOModel::productID

The USB product ID.

◆ productIDnoFirmware

const unsigned DSOModel::productIDnoFirmware

The USB product ID if no firmware is uploaded yet.

◆ specification

Dso::ControlSpecification DSOModel::specification
protected

◆ vendorID

const unsigned DSOModel::vendorID

The USB vendor ID.

◆ vendorIDnoFirmware

const unsigned DSOModel::vendorIDnoFirmware

The USB vendor ID if no firmware is uploaded yet.


The documentation for this class was generated from the following files: