C# Класс HidSharp.HidDevice

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetReportDescriptor ( ) : byte[]

Returns the raw report descriptor of the USB device. Currently this is only supported on Linux.

Open ( ) : HidStream

Makes a connection to the USB HID class device, or throws an exception if the connection cannot be made.

ToString ( ) : string
TryOpen ( HidStream &stream ) : bool

Tries to make a connection to the USB HID class device.

Описание методов

GetReportDescriptor() публичный Метод

Returns the raw report descriptor of the USB device. Currently this is only supported on Linux.
public GetReportDescriptor ( ) : byte[]
Результат byte[]

Open() публичный абстрактный Метод

Makes a connection to the USB HID class device, or throws an exception if the connection cannot be made.
public abstract Open ( ) : HidStream
Результат HidStream

ToString() публичный Метод

public ToString ( ) : string
Результат string

TryOpen() публичный Метод

Tries to make a connection to the USB HID class device.
public TryOpen ( HidStream &stream ) : bool
stream HidStream The stream to use to communicate with the device.
Результат bool