Skip to main content
Module

x/deno_usbhidapi/mod.ts>HID

🦕 Deno FFI bindings for the HIDAPI library to access USB devices.
Go to Latest
class HID
import { HID } from "https://deno.land/x/deno_usbhidapi@v0.2.1/mod.ts";

Static Methods

close(device: bigint): void
enumerate(vendorId?, productId?): HIDInfo[]
exit(): void
getFeatureReport(device: bigint, data: Uint8Array): void
init(): void
open(
vendorId: number,
productId: number,
serialNumber?: Uint8Array | null,
): bigint
read(device: bigint, length: number): Promise<Uint8Array>
readTimeout(
device: bigint,
length: number,
ms: number,
): Uint8Array | null
sendFeatureReport(device: bigint, data: Uint8Array): void
write(device: bigint, data: Uint8Array): void