阅读:1523回复:1
FX2设备应用程序调用IOCTL_EZUSB_VENDOR_OR_CLASS_REQUEST的问题。
typedef struct _VENDOR_OR_CLASS_REQUEST_CONTROL
{ // transfer direction (0=host to device, 1=device to host) UCHAR direction; // request type (1=class, 2=vendor) UCHAR requestType; // recipient (0=device,1=interface,2=endpoint,3=other) UCHAR recepient; // // see the USB Specification for an explanation of the // following paramaters. // UCHAR requestTypeReservedBits; UCHAR request; USHORT value; USHORT index; } VENDOR_OR_CLASS_REQUEST_CONTROL, *PVENDOR_OR_CLASS_REQUEST_CONTROL; 我是在VC6下基于做GPD做的应用程序 这个控制代码的部分: // see the USB Specification for an explanation of the // following paramaters. // UCHAR requestTypeReservedBits; UCHAR request; USHORT value; USHORT index; 没有详细解释怎么回事.我去查看USB 2.0的SPEcification也没有找到,谁可以提供一下这几个量的用法设置。 我是用来发往固件的厂商自定义请求,recipient 应该是哪一个呢?(0=device,1=interface,2=endpoint,3=other) |
|
沙发#
发布于:2007-03-27 13:00
0x01 Recipient
|
|
|