-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.d.ts
More file actions
35 lines (29 loc) · 996 Bytes
/
header.d.ts
File metadata and controls
35 lines (29 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export type USBSpeed = 'low' | 'full' | 'high' | 'super' | 'superPlus';
export declare interface UsbDevice extends USBDevice {
/**
* The USB bus the device is connected to (e.g. `1-1`, `2-3.4`, etc.)
*/
bus: string;
/**
* The USB address the device is connected to
*/
address: number;
/**
* The USB port numbers the device is connected through (e.g. `[1]`, `[3, 4]`, etc.)
*/
ports: Array<number>
/**
* The USB speed of the device (e.g. `Low`, `Full`, `High`, `Super`, `SuperPlus` or `undefined` if unknown)
*/
speed?: USBSpeed;
/**
* Detaches the kernel driver from the specified interface number (Linux only)
* @param interfaceNumber
*/
detachKernelDriver(interfaceNumber: number): Promise<void>;
/**
* Attaches the kernel driver for the specified interface number (Linux only)
* @param interfaceNumber
*/
attachKernelDriver(interfaceNumber: number): Promise<void>;
}