阅读:1227回复:0
关于cypress的ezusbsys.h文件中的问题
我知道这部分是用与winioctl通信的,像下面的struct
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, struct的定义,有怎么特殊的规格才能与上层winioctl通信吗?像这样的定义替换,后面的意思是怎么呀?好像只有第2个参数有点区别,请大侠解释一下,以下面的为例吧。 #define IOCTL_EZUSB_BULK_WRITE CTL_CODE(FILE_DEVICE_UNKNOWN, \ Ezusb_IOCTL_INDEX+20,\ METHOD_IN_DIRECT, \ FILE_ANY_ACCESS) |
|