OpenHantek
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 ModelDSO2020 ModelDSO6022BE ModelDSO6022BL

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

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 std::string &  firmwareToken,
const std::string &  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 ModelDSO2020, ModelDSO6022BL, ModelDDS120, and ModelDSO6022BE.

◆ spec()

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

Return the device specifications.

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.

◆ firmwareVersion

const unsigned DSOModel::firmwareVersion

The BCD version of the uploaded firmware

◆ ID

const int DSOModel::ID

◆ name

std::string 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: