-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
40 lines (37 loc) · 1.08 KB
/
index.d.ts
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
36
37
38
39
40
export declare const Build: {
VERSION: string;
BUILD_DATETIME: string;
COMMIT: string;
COMMIT_DATETIME: string;
};
export declare type XLinkDeviceState = 'unknown' | 'booted' | 'unbooted' | 'bootloader' | 'flash-booted' | 'gate' | 'gate-booted';
export declare type XLinkProtocol = 'usb-vsc' | 'usb-cdc' | 'pcie' | 'ipc' | 'tcp-ip' | 'nmb-of-protocols' | 'unknown';
export declare type XLinkPlatform = 'unknown' | 'myriad-2' | 'myriad-x' | 'rvc3'
export declare type XLinkError =
| 'success'
| 'already-open'
| 'communication-not-open'
| 'communication-fail'
| 'communication-unknown-error'
| 'device-not-found'
| 'timeout'
| 'error'
| 'out-of-memory'
| 'insufficient-permissions'
| 'device-already-in-use'
| 'not-implemented'
| 'usb-error'
| 'tcp-ip-error'
| 'pcie-error';
export declare type DeviceInfo = {
name: string;
mxid: string;
state: XLinkDeviceState;
protocol: XLinkProtocol;
platform: XLinkPlatform;
status: XLinkError;
};
export declare const Device: {
getAllAvailableDevices(): DeviceInfo[];
getAllConnectedDevices(): DeviceInfo[];
};