//打开 USB 口读写, 由驱动程序的 Pipe 名确定 HANDLE hPipe = OpenMyDevPipe("MyPipe1") //驱动程序里面的 Pipe 名, 对应访问某个端点的 I/O, 这里我乱写的, 需要与驱动一致 if(hPipe != INVALID_HANDLE_VALUE) //打开 Pipe 成功 { ReadFile(hPipe, Buffer, BufSize, &nBytesRead, NULL) //从 hPipe 里读取数据到 Buffer 里 //WriteFile(hPipe, Buffer, BytesToWrite, &nBytesWritten, NULL) //把 Buffer 里面的 BytesToWrite 字节写入 hPipe CloseHandle(hPipe) } //使用 DeviceIoControl 访问 USB 设备 HANDLE hDevice = OpenMyDevice() if(hDevice != INVALID_HANDLE_VALUE) //打开设备成功 { //这些 DeviceIoControl 功能都是由设备定义的, 具体看设备和驱动的资料 if(DeviceIoControl(hDevice, IOCTL_READ_xxxx, &IOBlock, sizeof(IOBLOCK), &c, 1, &nBytes, NULL)) { //成功 } CloseHandle(hDevice) }
标签: Pipe OpenMyDevPipe MyPipe1 HANDLE
上传时间: 2014-11-25
上传用户:stampede
USB驱动源程序,详见内部说明及代码部分
上传时间: 2015-09-19
上传用户:hongmo
usb芯片 cy7c68013的驱动程序文件,使用vc,ddk开发。
上传时间: 2015-09-19
上传用户:pinksun9
这是一款usb开发板的固件驱动ezusb_firmware
标签: ezusb_firmware usb 开发板 固件
上传时间: 2015-09-21
上传用户:guanliya
详细说明:华硕USB接口的RT2570芯片集无线网卡在Linux下的驱动程序,支持asus wl-167g无线usb网卡,rt73---D-link 无线usb网卡以及TL-WN321G无线网卡和台湾RALink公司采用rt2570的802.11g 网卡,可用来移植嵌入式无线网卡驱动
上传时间: 2015-09-21
上传用户:xauthu
s3c2410平台下USB驱动的源代码:USB1.1协议及S3C2410 USB device实验
标签: USB s3c2410 S3C2410 device
上传时间: 2015-09-22
上传用户:edisonfather
由串口资源实现USB驱动的解决方案,包含原码和开发文档及流程图。每个函数都经过验证
上传时间: 2013-12-18
上传用户:jing911003
SL811 USB接口芯片用于VxWorks系统的驱动源代码
上传时间: 2013-12-04
上传用户:lxm
USB接口芯片ISP1161A1驱动程序源代码示例(DOS版)
上传时间: 2013-12-24
上传用户:wweqas
ISP1181 USB接口芯片PCI驱动程序源代码
上传时间: 2014-01-19
上传用户:zhenyushaw