OpenHantek
Public Member Functions | Data Fields | Protected Attributes
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:
ModelDSO2090 ModelDSO2090A ModelDSO2150 ModelDSO2250 ModelDSO5200 ModelDSO5200A ModelDSO6022BE ModelDSO6022BL

Public Member Functions

virtual void applyRequirements (HantekDsoControl *) const =0
 This model may need to modify the HantekDsoControl class to work correctly.
 
 DSOModel (int id, long vendorID, long productID, long vendorIDnoFirmware, long productIDnoFirmware, const std::string &firmwareToken, const std::string &name, const Dso::ControlSpecification &&specification)
 
const Dso::ControlSpecificationspec () const
 Return the device specifications.
 

Data Fields

const int ID
 
const long vendorID
 The USB vendor ID.
 
const long productID
 The USB product ID.
 
const long vendorIDnoFirmware
 The USB vendor ID if no firmware is flashed yet.
 
const long productIDnoFirmware
 
std::string firmwareToken
 
std::string 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.

Field Documentation

◆ firmwareToken

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.

◆ productIDnoFirmware

const long DSOModel::productIDnoFirmware

The USB product ID if no firmware is flashed yet


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