IHidChannel interface

This is a wrapper for a stream of incoming IHidReports from a device and a callback to output IHidReports to the device.

Signature

export declare interface IHidChannel 

Properties

Property Modifiers Type Description
descriptor readonly IHidUsage[] Contains all of the IHidUsages reported by the device upon device discovery.
input readonly Observable<IHidReport> A continuous stream of incoming IHidReports from a device.

Methods

Method Description
getFeatureReport(usagePage, usage) Returns a feature IHidReport from the device.
output(usagePage, usage, value) Writes a IHidReport to the device.
setFeatureReport(usagePage, usage, value) Writes a feature IHidReport to the device.