Sample KMDF Function Driver for OSR USB-FX2 The kmdffx2 sample is a Kernel-Mode Driver Framework (KMDF) driver for the OSR USB-FX2 device. It includes a test app and sample device metadata.

  1. Ez Usb Fx2 Driver Download

In the Windows Driver Kit (WDK), the osrusbfx2 sample demonstrated how to perform bulk and interrupt data transfers to an USB device. The sample was written for the OSR USB-FX2 Learning Kit.

The specification for the device is. The driver and sample device metadata also work with the sample. Universal Windows Driver Compliant This sample builds a Universal Windows Driver. It uses only APIs and DDIs that are included in OneCoreUAP.

Overview Here is the overview of the device:. The device is based on the development board supplied with the Cypress EZ-USB FX2 Development Kit (CY3681).

It contains 1 interface and 3 endpoints (Interrupt IN, Bulk Out, Bulk IN). Firmware supports vendor commands to query or set LED Bar graph display and 7-segment LED display, and to query toggle switch states. Interrupt endpoint:. Sends an 8-bit value that represents the state of the switches. Sent on startup, resume from suspend, and whenever the switch pack setting changes. Firmware does not de-bounce the switch pack. One switch change can result in multiple bytes being sent.

Bits are in the reverse order of the labels on the pack (for example, bit 0x80 is labeled 1 on the pack). Bulk endpoints are configured for loopback:. The device moves data from IN endpoint to OUT endpoint.

Ez Usb Fx2 Driver Windows 7

The device does not change the values of the data it receives nor does it internally create any data. Endpoints are always double buffered. Maximum packet size depends on speed (64 full speed, 512 high speed). Event Tracing for Windows (ETW) events:. Included osrusbfx2.man, which describes events added.

Three events are targeted to the event log:. Failure during the add device routine. Failure to start the OSR device on a USB 1.1 controller. Invocation of the 're-enumerate device' IOCTL. Read/write start/stop events can be used to measure the time taken.

For more information, see Unified Tracing later in this document. Code tour usb kmdffx2 driver This directory contains driver code that demonstrates the following functionality:. Loads the driver and responds to PnP and Power events. You can install, uninstall, disable, enable, suspend, and resume the system. Creates a context with the WDFDEVICE object. Initializes the USB device by registering a EvtPrepareHardware callback.

Marks the interface restricted so that it can be accessed by a privileged Windows Store device app. Creates a default parallel queue to receive an IOCTL request to set bar graph display. Retrieves memory handle from the requests and uses it to send a vendor command to the USB device. Registers read and write events on the default queue.

Retrieves memory from read and write requests, formats the requests, and sends it to a USB target. Creates two separate sequential queues and configures them to dispatch read and write requests directly. (.kmdffx2 only). Enables wait-wake and selective suspend support. (.kmdffx2 only). Configures a USB target continuous reader to read toggle switch states asynchronously from the interrupt endpoint. (.kmdffx2 only).

Supports additional IOCTLs to get and set the 7-segment display and toggle switches, and to reset and re-enumerate the device. (.kmdffx2 only). Creates ETW provider to log two events to the event log, and read/write start stop events. (.kmdffx2 only). WPP tracing. Usb kmdffx2 exe This directory contains a test application that can be used to drive the KMDF driver and FX2 device. Usb kmdffx2 deviceMetadata This directory contains the device metadata package for the sample.

You must copy the device metadata to the system before installing the device. For information on how to update and deploy device metadata, see the. Testing the driver You can use the sample as a testing method. The sample also includes a test application, osrusbfx2.exe, that you can use to test the device. This console application enumerates the interface registered by the driver and opens the device to send read, write, or IOCTL requests based on the command line options. Usage for Read/Write test:.r n, where n is number of bytes to read.w n, where n is number of bytes to write.c n, where n is number of iterations (default = 1).v, shows verbose read data.p, plays with Bar Display, Dip Switch, 7-Segment Display.a, performs asynchronous I/O operation.u, dumps USB configuration and pipe information. Playing with the 7 segment display, toggle switches, and bar graph display Use the command, osrusbfx2.exe -p options 1-9, to set and clear bar graph display, set and get 7 segment state, and read the toggle switch states.

The following shows the function options: 1. Light entire bar graph 4. Clear entire bar graph 5.

Get bar graph state 6. Get switch state 7. Get switch interrupt message 8.

Get 7 segment state 9. Set 7 segment state 10. Reset the device 11.

Re-enumerate the device 12. Exit Selection: Reset and re-enumerate the device Use the command, osrusbfx2.exe -p with option 10 and 11, to either reset the device or re-enumerate the device. Read and write to bulk endpoints The following commands send read and write requests to the device's bulk endpoint.

Windows

osrusbfx2.exe -r 64 The preceding command reads 64 bytes to the bulk IN endpoint. osrusbfx2.exe -w 64 The preceding command writes 64 bytes to the bulk OUT endpoint. osrusbfx2.exe -r 64 -w 64 -c 100 -v The preceding command first writes 64 bytes of data to bulk OUT endpoint (Pipe 1), then reads 64 bytes from bulk IN endpoint (Pipe 2), and then compares the read buffer with write buffer to see if they match.

If the buffer contents match, it repeats this operation 100 times. osrusbfx2.exe -a The preceding command reads and writes to the device asynchronously in an infinite loop. The bulk endpoints are double buffered.

Depending on the operational speed (full or high), the buffer size is either 64 bytes or 512 bytes, respectively. A request to read data does not complete if the buffers are empty.

If the buffers are full, a request to write data does not complete until the buffers are emptied. When you are doing a synchronous read, make sure the endpoint buffer has data (for example, when you send a 512 bytes write request to the device operating in full speed mode).

Because the endpoints are double buffered, the total buffer capacity is 256 bytes. The first 256 bytes fills the buffer, and the write request waits in the USB stack until the buffers are emptied.

Ez Usb Fx2 Driver Windows 7

If you run another instance of the application to read 512 bytes of data, both write and read requests complete successfully. Displaying descriptors The following command displays all the descriptors and endpoint information.

Ez Usb Fx2 now has a special edition for these Windows versions: Windows 7, Windows 7 64 bit, Windows 7 32 bit, Windows 10, Windows 10 64 bit, Windows 10 32 bit, Windows 8, Windows Vista Starter 64bit, Windows 10 64bit, Windows 10 IoT 64bit, Windows 10 Team 64bit, Windows 10 Education 32bit, Windows Vista Home Basic 64bit, Windows Vista Home Basic 32bit, Windows 10 Home 64bit, Windows 7 Ultimate 32bit, Windows 7 Starter 32bit, Windows Vista Enterprise (Microsoft Windows NT 6.0.6000.0) 64bit, Windows 7 Home Premium 64bit, Windows 8 Enterprise 32bit, Windows 7 Professional 32bit. Driver Model OS Original Upload Date Last Modification Driver File File Size Compatible Computer Models Availabilty To Instalation Manager Ez Usb Fx2 978 For Windows 7 32 bit 9/19/2014 alldrivers-978.exe 21kb Sony SVE15136CNS, Toshiba Satellite C850-B124, LG P310-K.CPW1A9, Medion P8612, AT PREMIO BINGO, HP AY024AA-ABA s5360f, HP HP Compaq 6530b, Toshiba SATELLITE C870-181, Panasonic CF-W8FWDAJR, Compaq DT203A-ABF S6400FR FR410, HP Presario F500, and more. Ez Usb Fx2 V31.121.1 For Windows 7 64 bit 3/1/2015 bqdl-v31.121.1.exe 113kb Lenovo ThinkCentre Edge 72, IBM IBM System x3200 M2 -4367I6A, Fujitsu CELSIUS R610, HP FQ562AA-A2L m9500f, Fujitsu CELSIUS M730, IBM ThinkCentre A30, Sony VGN-CR21EW, HCL Infosystems GETZ-LD, NEC PC-MJ28VHZEJ, Fujitsu FMVLX50LX, Shuttle XP400, and more. Ez Usb Fx2 63270 For Windows 7 2/24/2015 alldrivers-63270.exe 156kb HP HP Pavilion dv7 Noteblook PC, HP RC520AA-ABU m7590.uk, LG R560-K.ABA6L, Systemax Si X58 Game, NEC PB12V00106, and more. Ez Usb Fx2 I41.191.19 For Windows 10 11/7/2014 alldrivers-i41.191.19.exe 135kb HP GJ345AA-UUW a6122.sc, Packard Bell IMEDIA MCE 8010, IBM 187263U, National NI PXI-8106 Embedded Controlle, Gateway PROFILE3, EMachines EMachines G420, Leading Edge LECQ43SOHO, Panasonic CF-W7BWHAJS, HP HP Compaq nc2400, Sony VGN-FS38LP, Acer Aspire 1820PTZ, Lenovo ThinkPad Edge 13, and more. Ez Usb Fx2 O202.11.16 For Windows 10 64 bit 2/8/2015 alldrivers-o202.11.16.exe 209kb LG R560-UAPW3E, Gateway M-7343U, NEC PC-MY21AEZR3, Sony PCV-RX407, SAMSUN R710, LG 15U530-GT30K, IBM 26523CU, HP PY132AA-AB4 a1180d, Toshiba Dynabook EX/35LWH, Toshiba Dynabook CX/47G, Sony VGN-Z17GNB, Sony VPCEB15FA, Acer AM1620/VeritonM262, and more. Nero 7.5.1.1 keygen. Ez Usb Fx2 432.109 For Windows 7 32 bit bzenar-432.109.exe 26kb Toshiba TECRA R10, HP HP Pavilion dv9660 Notebook PC, Compaq PJ688AV-ABA SR1005T NA440, Zoostorm 7010-0246A, Acer TravelMate 8371, Viglen EQ100, Samsung RV420/RV520/RV720/E3530/S3530/E3420/E3520, Compaq NP291AA-AB2 SR5837CX, HP HP Compaq 6715b, Toshiba Dynabook T552/36HRJ, Panasonic CF-53AAC01FE, HP BN496AV-ABA HPE-170t, and more.

Ez Usb Fx2 X1.10498 For Windows 7 64 bit 1/4/2015 hqbn-x1.10498.exe 151kb Lenovo ThinkPad Edge E430, NEC Express5800/56Xd N8000-566C, HP VN465AA-UUW HPE-010sc, IBM 831136U, Sweetwater Sound CS400, Toshiba Satellite C660-196, IBM 813135U, HP Presario R3000, MouseComputer Z68A-SD60, IBM ThinkCentre M50, WIPRO WSG37425V-0038, and more. Ez Usb Fx2 72792 For Windows 7 d-72792.exe 48kb Compaq P8657F-ABA SR1000V NA510, HP PS378AA-ABN t875.no, Sony VGN-G21XPB, Notebook MIM 2270, NEC RND51078695, HP ED713AA-ABF w5155.f, and more. Ez Usb Fx2 U32648 For Windows 10 alldrivers-u32648.exe 151kb Sony VGN-FW17GUH, ASUS BP5275, IBM System x3650 M4 -7915F2M, NEC PC-MJ30AAZ76, Sony VGN-K30, Sony SVE14A25CDB, HP Presario R3200, LG T1-5224A3, and more. Ez Usb Fx2 Q2.13482.1 For Windows 10 64 bit mk-q2.13482.1.exe 124kb Sony VGN-NS10LS, Lenovo 1038DBG, HP H9-1168hk, Panasonic CF-Y7BWTAJS, and more.

Ez Usb Fx2 Driver Download

Ez Usb Fx2 M62932.1 For Windows 8 alldrivers-m62932.1.exe 138kb Seneca PRO0542, Panasonic CF-Y2FW7AXS, LG E200-A.C211R, Sony VPCJ126FJ, Packard Bell IMEDIA D7010 NL, Sony SVE14117ECW, Packard Bell IMEDIA B2501 BE, HP AV890AV-ABJ e9280jp, and more. Ez Usb Fx2 62390 For Windows 7 32 bit alldrivers-62390.exe 69kb Shuttle XP400, Acer Acer Project, Compaq PX734AA-ABA a123l NA520, DakTech DTGM5, NEC PC-LS350LS1YG, Fujitsu FMVA56CWG, and more. Ez Usb Fx2 M81.1989 For Windows 7 64 bit 12/9/2014 alldrivers-m81.1989.exe 30kb HP PJ425AA-ABN t670.no, HP HPE-350es, Dell PowerEdge C8220, Toshiba Satellite P50-A X3110, HP KP335AA-UUW m9253.sc, and more.