OpenHantek
Toggle main menu visibility
Loading...
Searching...
No Matches
controlcommand.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
3
#pragma once
4
5
#include <inttypes.h>
6
#include <vector>
7
8
namespace
Hantek
{
9
enum class
ControlCode
: uint8_t;
10
}
11
12
class
ControlCommand
:
public
std::vector< uint8_t > {
13
14
protected
:
15
ControlCommand
(
Hantek::ControlCode
code
,
unsigned
size );
16
17
public
:
18
bool
pending
=
false
;
19
uint8_t
code
;
20
uint8_t
value
= 0;
21
ControlCommand
*
next
=
nullptr
;
22
};
ControlCommand::pending
bool pending
Definition
controlcommand.h:18
ControlCommand::code
uint8_t code
Definition
controlcommand.h:19
ControlCommand::value
uint8_t value
Definition
controlcommand.h:20
ControlCommand::ControlCommand
ControlCommand(Hantek::ControlCode code, unsigned size)
Definition
controlcommand.cpp:5
ControlCommand::next
ControlCommand * next
Definition
controlcommand.h:21
Hantek
Definition
controlsettings.h:9
Hantek::ControlCode
ControlCode
All supported control commands.
Definition
controlcode.h:46
hantekprotocol
controlcommand.h
Generated by
1.17.0