UNPKG

node-beaglebone-usbboot

Version:
32 lines (31 loc) 1.03 kB
import { EventEmitter } from 'events'; export declare const isUsbBootCapableUSBDevice: (idVendor: number, idProduct: number) => boolean; export declare const isROMUSBDevice: (idVendor: number, idProduct: number) => boolean; export declare const isSPLUSBDevice: (idVendor: number, idProduct: number) => boolean; export declare class UsbBBbootScanner extends EventEmitter { private usbBBbootDevices; private boundAttachDevice; private boundDetachDevice; private interval; private stepCounter; private attachedDeviceIds; constructor(); start(): void; stop(): void; private step; private get; private getOrCreate; private remove; private attachDevice; private process; private transfer; private detachDevice; } export declare class UsbBBbootDevice extends EventEmitter { portId: string; static readonly LAST_STEP: number; private STEP; constructor(portId: string); readonly progress: number; step: number; }