Table of Contents

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 string

Path of the device

VendorId ushort

Vendor id

ProductId ushort

Product id

SerialNumber string

Serial Number

ReleaseNumber ushort

Release number

ManufacturerString string

Manufacturer string

ProductString string

Product string

UsagePage ushort

Usage page

Usage ushort

Usage

InterfaceNumber int

interface number

BusType BusType

BusType (Available since hidapi 0.13.0)

Properties

BusType

BusType (Available since hidapi 0.13.0)

public BusType BusType { get; init; }

Property Value

BusType

InterfaceNumber

interface number

public int InterfaceNumber { get; init; }

Property Value

int

ManufacturerString

Manufacturer string

public string ManufacturerString { get; init; }

Property Value

string

Path

Path of the device

public string Path { get; init; }

Property Value

string

ProductId

Product id

public ushort ProductId { get; init; }

Property Value

ushort

ProductString

Product string

public string ProductString { get; init; }

Property Value

string

ReleaseNumber

Release number

public ushort ReleaseNumber { get; init; }

Property Value

ushort

SerialNumber

Serial Number

public string SerialNumber { get; init; }

Property Value

string

Usage

Usage

public ushort Usage { get; init; }

Property Value

ushort

UsagePage

Usage page

public ushort UsagePage { get; init; }

Property Value

ushort

VendorId

Vendor id

public ushort VendorId { get; init; }

Property Value

ushort

Methods

ConnectToDevice()

Connects to the device defined by the 'Path' property.

public Device ConnectToDevice()

Returns

Device

A new Device