社区
Windows SDK/API
帖子详情
USB-HID product name在C++下如何读取?
op20131120
2017-07-07 09:34:35
环境 vs2013 mfc
...全文
389
回复
打赏
收藏
USB-HID product name在C++下如何读取?
环境 vs2013 mfc
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
EspTiny
USB
:ESP32S2本机
USB
库。 实现了一些常见的类,例如MIDI,CDC,
HID
或DFU(更新)
描述 库允许构建
USB
类设备并以最小的努力使其可用: CDC,通讯设备类, MSC,大容量存储类,
HID
,人机界面设备类别:键盘,鼠标,游戏手柄,通用IN / OUT, MIDI,乐器数字接口类, DFU,设备固件更新等级, Web
USB
,它使用供应商类来显示web
usb
的用法。 硬件 要使用本机
USB
,我们需要将针脚19和20连接到
usb
电缆或具有类似连接器的连接器: 如何 库允许在标准
USB
设备中设置所有值,例如: 制造商 产品名称 序列号 修订 VID和PID ANY
usb
device; // any
USB
class like
HID
, MSC, CDC device.manufacturer(char*); device.
product
(char*); //
product
name device.serial(char*); // serial num
USB
Complete 3rdEdition
1.
USB
Basics 1 What
USB
Can Do 2 Benefits for Users 2 Benefits for Developers 6 Beyond the Hype 10 Evolution of an Interface 13 Original
USB
14
USB
2.0 15
USB
On-The-Go 16 Wireless
USB
16
USB
versus IEEE-1394 16
USB
versus Ethernet 17 Bus Components 17 Topology 18 Defining Terms 19 Contents iv Division of Labor 22 The Host’s Duties 22 The Peripheral’s Duties 25 What about Speed? 28 Developing a Device 29 Elements in the Link 29 Tools for Developing 30 Steps in Developing a Project 30 2. Inside
USB
Transfers 33 Transfer Basics 34 Enumeration Communications 34 Application Communications 34 Managing Data on the Bus 35 Host Speed and Bus Speed 36 Elements of a Transfer 37 Device Endpoints: the Source and Sink of Data 38 Pipes: Connecting Endpoints to the Host 40 Types of Transfers 40 Stream and Message Pipes 42 Initiating a Transfer 43 Transactions: the Building Blocks of a Transfer 44 Transaction Phases 45 Ensuring that Transfers Are Successful 51 Handshaking 51 Reporting the Status of Control Transfers 55 Error Checking 56 3. A Transfer Type for Every Purpose 61 Control Transfers 61 Availability 62 Structure 62 Data Size 66 Speed 66 Detecting and Handling Errors 68 Bulk Transfers 68 Availability 69 Structure 69 Data Size 69 Speed 71 Detecting and Handling Errors 71 Contents v Interrupt Transfers 72 Availability 72 Structure 72 Data Size 73 Speed 73 Detecting and Handling Errors 75 Isochronous Transfers 76 Availability 76 Structure 76 Data Size 79 Speed 79 Detecting and Handling Errors 80 More about Time-critical Transfers 80 Bus Bandwidth 81 Device Capabilities 81 Host Capabilities 82 Host Latencies 83 4. Enumeration: How the Host Learns about Devices 85 The Process 86 Enumeration Steps 87 Enumerating a Hub 91 Device Removal 92 Tips for Successful Enumeration 92 Descriptors 93 Types of Descriptors 94 Device Descriptor 96 Device_qualifier Descriptor 99 Configuration Descriptor 101 Other_speed_configuration Descriptor 103 Interface Association Descriptor 103 Interface
C++
获取
HID
设备列表
在
C++
程序中,获取
HID
设备列表是一个很常见的需求,因为很多设备(比如游戏手柄、电子秤等)都是使用
HID
协议来与计算机通信的。本文将介绍如何使用
C++
代码获取当前计算机上连接的
HID
设备列表,并显示设备的相关信息。本文介绍了如何使用
C++
代码获取当前计算机上连接的
HID
设备列表,并显示设备的相关信息。通过这篇文章的学习,读者可以了解Windows系统中
HID
设备的基础知识,并掌握如何使用相关API函数来获取设备信息。其中,设备的路径是一个唯一的标识符,可以用来打开设备并进行通信。是
HID
设备的头文件,
C++
BCB操作
USB
口
这里的 WinDDK 版本是 Windows Server 2003 DDK, 可以编 Win98/2000/XP/2003 的驱动程序 #include //用
C++
Builder 6.0 访问
USB
驱动程序 -- Victor Chen #include #include #include "C:/WINDDK/3790/inc/ddk/w2k/
usb
di
C++
Builder 访问
USB
口的方法
导读: 编译环境: Borland
C++
Builder 6.0, Windows Server 2003 DDK 运行环境: Win98/2000/XP/2003 下面是访问
USB
口必备的函数: #include #include #include #include "C:/WINDDK/3790/inc/ddk/w2k/
usb
di.h"#include "
Windows SDK/API
1,221
社区成员
8,136
社区内容
发帖
与我相关
我的任务
Windows SDK/API
C++ Builder Windows SDK/API
复制链接
扫一扫
分享
社区描述
C++ Builder Windows SDK/API
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章