OpenHantek
Toggle main menu visibility
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
7
class
HantekDsoControl
;
8
using namespace
Hantek
;
9
10
11
struct
ModelDSO6022BE
:
public
DSOModel
{
12
static
const
int
ID
= 0x6022;
13
ModelDSO6022BE
();
14
void
applyRequirements
(
HantekDsoControl
*dsoControl )
const override
;
15
};
16
17
18
struct
ModelDSO6022BL
:
public
DSOModel
{
19
static
const
int
ID
= 0x602a;
20
ModelDSO6022BL
();
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
DSOModel
Describes a device This is the central class to describe a hantek compatible DSO. It contains all usb...
Definition
dsomodel.h:17
DSOModel::applyRequirements
virtual void applyRequirements(HantekDsoControl *) const =0
This model may need to modify the HantekDsoControl class to work correctly.
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)
Definition
dsomodel.cpp:6
HantekDsoControl
The DsoControl abstraction layer for Hantek USB DSOs. TODO Please anyone, refactor this class into sm...
Definition
hantekdsocontrol.h:53
dsomodel.h
Hantek
Definition
controlsettings.h:9
ModelDSO2020::ModelDSO2020
ModelDSO2020()
Definition
modelDSO6022.cpp:138
ModelDSO2020::applyRequirements
void applyRequirements(HantekDsoControl *dsoControl) const override
This model may need to modify the HantekDsoControl class to work correctly.
Definition
modelDSO6022.cpp:143
ModelDSO2020::ID
static const int ID
Definition
modelDSO6022.h:27
ModelDSO6022BE::applyRequirements
void applyRequirements(HantekDsoControl *dsoControl) const override
This model may need to modify the HantekDsoControl class to work correctly.
Definition
modelDSO6022.cpp:124
ModelDSO6022BE::ID
static const int ID
Definition
modelDSO6022.h:12
ModelDSO6022BE::ModelDSO6022BE
ModelDSO6022BE()
Definition
modelDSO6022.cpp:119
ModelDSO6022BL::ModelDSO6022BL
ModelDSO6022BL()
Definition
modelDSO6022.cpp:128
ModelDSO6022BL::applyRequirements
void applyRequirements(HantekDsoControl *dsoControl) const override
This model may need to modify the HantekDsoControl class to work correctly.
Definition
modelDSO6022.cpp:133
ModelDSO6022BL::ID
static const int ID
Definition
modelDSO6022.h:19
hantekdso
models
modelDSO6022.h
Generated by
1.17.0