Nefarius.Drivers.WinUSB 5.0.1

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Nefarius.Drivers.WinUSB --version 5.0.1                
NuGet\Install-Package Nefarius.Drivers.WinUSB -Version 5.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nefarius.Drivers.WinUSB" Version="5.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nefarius.Drivers.WinUSB --version 5.0.1                
#r "nuget: Nefarius.Drivers.WinUSB, 5.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Nefarius.Drivers.WinUSB as a Cake Addin
#addin nuget:?package=Nefarius.Drivers.WinUSB&version=5.0.1

// Install Nefarius.Drivers.WinUSB as a Cake Tool
#tool nuget:?package=Nefarius.Drivers.WinUSB&version=5.0.1                

Nefarius.Drivers.WinUSB

This is a fork of the fantastic MadWizard.WinUSBNet project by Thomas Bleeker and contributors.

.NET .NET 4.7.2 .NET 4.8 .NET 6/7/8 NuGet Version NuGet

Managed wrapper for the WinUSB APIs on Microsoft Windows.

Changes of this fork

  • Replaced P/Invoke code with source generators
  • Changed namespace to Nefarius.Drivers.WinUSB to avoid conflicts with the origin library
  • Removed device notification listener as my other lib Nefarius.Utilities.DeviceManagement provides a drop-in replacement without depending on WinForms or WPF
  • Added USBDevice::GetSingleDeviceByPath to allow opening a WinUSB device via device path (symbolic link)

Documentation

Link to API docs.

Generating documentation

  • dotnet build -c:Release
  • dotnet tool install -g Nefarius.Tools.XMLDoc2Markdown
  • xmldoc2md .\bin\net8.0-windows\Nefarius.Drivers.WinUSB.dll .\docs\

TO-DOs

  • Migrate all buffers to Spans where possible
  • More/better tests 😇

Features

Taken verbatim from the source repository.

  • MIT licensed with C# source code available (free for both personal and commercial use)
  • CLS compliant library (usable from all .NET languages such as C#, VB.NET and C++.NET)
  • Synchronous and asynchronous data transfers
  • Support for 32-bit and 64-bit Windows versions
  • Support for multiple interfaces and endpoints
  • Intellisense documentation
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net7.0-windows7.0 is compatible.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
.NET Framework net472 is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Nefarius.Drivers.WinUSB:

Repository Stars
CircumSpector/DS4Windows
A reimagination of DS4Windows.
Version Downloads Last updated
5.1.0 161 10/13/2024
5.0.1 103 10/1/2024
5.0.1-pre001 79 10/1/2024
5.0.0 179 8/5/2024
5.0.0-pre002 63 8/3/2024
5.0.0-pre001 69 8/1/2024
4.3.83 568 4/21/2023
4.2.75 539 1/4/2023
4.1.71 444 10/17/2022
4.0.64 438 10/11/2022
3.0.58 424 9/28/2022
3.0.6 427 5/30/2022
3.0.3 413 5/30/2022