![]() Next, query the device for USB-specific information such as device speed, interface descriptors, related endpoints, and their pipes. ![]() Step 2: Query the device for USB descriptors For example code that gets the device handle and opens the device, see Template code discussion. The template enumerates devices by using SetupAPI routines, opens a file handle for the device, and creates a WinUSB interface handle required for subsequent tasks. You can use the template as a starting point.įor information about the template code, how to create, build, deploy, and debug the skeleton app, see Write a Windows desktop app based on the WinUSB template. To access a USB device, start by creating a skeleton app based on the WinUSB template included in the integrated environment of Windows Driver Kit (WDK) (with Debugging Tools for Windows) and Microsoft Visual Studio. Step 1: Create a skeleton app based on the WinUSB template You can use these examples to extend the procedures to other USB devices. The examples in this article are based on the OSR USB FX2 Learning Kit device.For more information about this process, see WinUSB (Winusb.sys) Installation. You have installed Winusb.sys as the device's function driver.This information applies to Windows 8.1, Windows 8, Windows 7, Windows Server 2008, Windows Vista versions of Windows.The following items apply to this walkthrough: Microsoft does not provide a managed API for WinUSB. You can use these functions in your C/C++ application to communicate with your USB device. WinUSB functions require Windows XP or later. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |