Files
0417_QT_code/LOGIC/Lgc_Consumer.h

32 lines
818 B
C
Raw Normal View History

2026-03-26 10:45:29 +08:00
#pragma once
#include "MID/Mid_Def.h"
/*
* report id 0x03 Consumer
*
*
* 1. 0 report id 0x03
* 2. 12 16 consumer usage
* 3. 3
*
* 0x01 / 0x04 modifier usage
*/
struct Lgc_Consumer_Struct_Result
{
// 这一包是否匹配 report id 0x03。
bool IsMatch = false;
// 如果匹配 0x03长度是否也正确。
bool IsLengthOk = false;
// 解析得到的 consumer usage。
quint16 Usage = 0;
// 给调试窗口显示的简短中文说明。
QString TextExplain;
};
void Lgc_Consumer_Func_Parse(const QByteArray& ByteArray, Lgc_Consumer_Struct_Result* p_Result);