USB关于用户自定义请求的ioctl处理的一点疑问


IOCTL_Ezusb_VENDOR_REQUEST跟IOCTL_EZUSB_VENDOR_OR_CLASS_REQUEST有啥区别与联系?
====我总结的一点:
IOCTL_EZUSB_VENDOR_OR_CLASS_REQUEST用于处理类型为VENDOR_OR_CLASS_REQUEST_CONTROL的request, control structure for sending vendor or class specific requests to the control endpoint.(传送至控制端点的vendor或class请求时的控制结构体)
而IOCTL_Ezusb_VENDOR_REQUEST用于处理类型为VENDOR_REQUEST_IN的request

Set the base of the IOCTL control codes. This is somewhat of an
arbitrary base number, so you can change this if you want unique
IOCTL codes. You should consult the Windows NT DDK for valid ranges of IOCTL index codes before you choose a base index number.

Performs a vendor or class specific control transfer to EP0. The contents of
the input parameter determine the type of request. See the USB spec
for more information on class and vendor control transfers.

IOCTL_Ezusb_VENDOR_REQUEST处理的是基本的设备请求,譬如A0-AF的请求IOCTL_EZUSB_VENDOR_OR_CLASS_REQUEST可以处理用户自定义设备请求,感觉后者包含前者的功能
但是不明确

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值