Files
0417_QT_code/LOGIC/Lgc_Vendor.h

32 lines
799 B
C
Raw Normal View History

2026-03-26 10:45:29 +08:00
#pragma once
#include "MID/Mid_Def.h"
/*
* report id 0x04 Vendor
*
* 0x04 VIA
*
* [report_id(1) | modifier(1) | usage_bitmap(29)]
*
*
* - 0x01
* - 0x04
*/
struct Lgc_Vendor_Struct_Result
{
// 拆出来的 Vendor 状态。
Mid_Struct_VendorState VendorState;
// 是否匹配到 report id 0x04。
bool IsMatch = false;
// 长度是否符合 31 字节。
bool IsLengthOk = false;
// 给调试窗口看的中文解释。
QString TextExplain;
};
void Lgc_Vendor_Func_Parse(const QByteArray& ByteArray, Lgc_Vendor_Struct_Result* p_Result);