OpenHantek
Loading...
Searching...
No Matches
modelDSO6022.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#pragma once
4
5#include "dsomodel.h"
6
8using namespace Hantek;
9
10
11struct ModelDSO6022BE : public DSOModel {
12 static const int ID = 0x6022;
14 void applyRequirements( HantekDsoControl *dsoControl ) const override;
15};
16
17
18struct ModelDSO6022BL : public DSOModel {
19 static const int ID = 0x602a;
21 void applyRequirements( HantekDsoControl *dsoControl ) const override;
22};
23
24
25// Voltcraft DSO-2020 USB Oscilloscope
26struct ModelDSO2020 : public DSOModel {
27 static const int ID = 0x6022;
29 void applyRequirements( HantekDsoControl *dsoControl ) const override;
30};
31
32
33// two test cases with simple EZUSB board (LCsoft) without EEPROM or with Saleae VID/PID in EEPROM
34// after loading the FW they look like a 6022BE (without useful sample values as Port B and D are left open)
35// LCSOFT_TEST_BOARD is also used in modelDSO6022.cpp
36
37// #define LCSOFT_TEST_BOARD
38
39#ifdef LCSOFT_TEST_BOARD
40
41struct ModelEzUSB : public DSOModel {
42 static const int ID = 0x6022;
43 ModelEzUSB();
44 void applyRequirements( HantekDsoControl *dsoControl ) const override;
45};
46
47struct ModelSaleae : public DSOModel {
48 static const int ID = 0x6022;
49 ModelSaleae();
50 void applyRequirements( HantekDsoControl *dsoControl ) const override;
51};
52
53#endif
Describes a device This is the central class to describe a hantek compatible DSO. It contains all usb...
Definition dsomodel.h:17
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)
Definition dsomodel.cpp:6
The DsoControl abstraction layer for Hantek USB DSOs. TODO Please anyone, refactor this class into sm...
Definition hantekdsocontrol.h:53
Definition controlsettings.h:9
ModelDSO2020()
Definition modelDSO6022.cpp:138
void applyRequirements(HantekDsoControl *dsoControl) const override
This model may need to modify the HantekDsoControl class to work correctly.
Definition modelDSO6022.cpp:143
static const int ID
Definition modelDSO6022.h:27
void applyRequirements(HantekDsoControl *dsoControl) const override
This model may need to modify the HantekDsoControl class to work correctly.
Definition modelDSO6022.cpp:124
static const int ID
Definition modelDSO6022.h:12
ModelDSO6022BE()
Definition modelDSO6022.cpp:119
ModelDSO6022BL()
Definition modelDSO6022.cpp:128
void applyRequirements(HantekDsoControl *dsoControl) const override
This model may need to modify the HantekDsoControl class to work correctly.
Definition modelDSO6022.cpp:133
static const int ID
Definition modelDSO6022.h:19