Class DeviceInfo
- Namespace
- HidApi
- Assembly
- HidApi.Net.dll
Describes a HID device.
public record DeviceInfo : IEquatable<DeviceInfo>
- Inheritance
-
DeviceInfo
- Implements
- Inherited Members
Constructors
DeviceInfo(string, ushort, ushort, string, ushort, string, string, ushort, ushort, int, BusType)
Describes a HID device.
public DeviceInfo(string Path, ushort VendorId, ushort ProductId, string SerialNumber, ushort ReleaseNumber, string ManufacturerString, string ProductString, ushort UsagePage, ushort Usage, int InterfaceNumber, BusType BusType)
Parameters
Path
stringPath of the device
VendorId
ushortVendor id
ProductId
ushortProduct id
SerialNumber
stringSerial Number
ReleaseNumber
ushortRelease number
ManufacturerString
stringManufacturer string
ProductString
stringProduct string
UsagePage
ushortUsage page
Usage
ushortUsage
InterfaceNumber
intinterface number
BusType
BusTypeBusType (Available since hidapi 0.13.0)
Properties
BusType
BusType (Available since hidapi 0.13.0)
public BusType BusType { get; init; }
Property Value
InterfaceNumber
interface number
public int InterfaceNumber { get; init; }
Property Value
ManufacturerString
Manufacturer string
public string ManufacturerString { get; init; }
Property Value
Path
Path of the device
public string Path { get; init; }
Property Value
ProductId
Product id
public ushort ProductId { get; init; }
Property Value
ProductString
Product string
public string ProductString { get; init; }
Property Value
ReleaseNumber
Release number
public ushort ReleaseNumber { get; init; }
Property Value
SerialNumber
Serial Number
public string SerialNumber { get; init; }
Property Value
Usage
Usage
public ushort Usage { get; init; }
Property Value
UsagePage
Usage page
public ushort UsagePage { get; init; }
Property Value
VendorId
Vendor id
public ushort VendorId { get; init; }
Property Value
Methods
ConnectToDevice()
Connects to the device defined by the 'Path' property.
public Device ConnectToDevice()