OpenHantek
modelDSO6022.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0+
2 
3 #pragma once
4 
5 #include "dsomodel.h"
6 
7 class HantekDsoControl;
8 using namespace Hantek;
9 
10 
11 struct ModelDSO6022BE : public DSOModel {
12  static const int ID = 0x6022;
14  void applyRequirements(HantekDsoControl* dsoControl) const override;
15 };
16 
17 
18 struct 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
26 struct ModelDSO2020 : public DSOModel {
27  static const int ID = 0x6022;
28  ModelDSO2020();
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 
41 struct ModelEzUSB : public DSOModel {
42  static const int ID = 0x6022;
43  ModelEzUSB();
44  void applyRequirements(HantekDsoControl* dsoControl) const override;
45 };
46 
47 struct ModelSaleae : public DSOModel {
48  static const int ID = 0x6022;
49  ModelSaleae();
50  void applyRequirements(HantekDsoControl* dsoControl) const override;
51 };
52 
53 #endif
Definition: controlsettings.h:9
Definition: modelDSO6022.h:26
Describes a device This is the central class to describe a hantek compatible DSO. It contains all usb...
Definition: dsomodel.h:16
Definition: modelDSO6022.h:11
Definition: modelDSO6022.h:18
The DsoControl abstraction layer for Hantek USB DSOs. TODO Please anyone, refactor this class into sm...
Definition: hantekdsocontrol.h:31