Add logic state model
This commit is contained in:
19
KeyBorad/KeyBorad/LOGIC/Lgc_State.h
Normal file
19
KeyBorad/KeyBorad/LOGIC/Lgc_State.h
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QtCore/QtGlobal>
|
||||||
|
|
||||||
|
enum class Lgc_TransportType : quint8
|
||||||
|
{
|
||||||
|
None = 0,
|
||||||
|
Cdc,
|
||||||
|
Gatt,
|
||||||
|
};
|
||||||
|
|
||||||
|
struct Lgc_State
|
||||||
|
{
|
||||||
|
bool IsConnected = false;
|
||||||
|
bool IsHandshakeDone = false;
|
||||||
|
Lgc_TransportType ActiveTransport = Lgc_TransportType::None;
|
||||||
|
quint32 ProtocolVersion = 0;
|
||||||
|
quint32 CapabilityFlags = 0;
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user