Constructors
constructor
- new Transfer(device, endpointAddr, type, timeout, callback): Transfer
Parameters
- device: Device
- endpointAddr: number
- type: number
- timeout: number
- callback: ((error: LibUSBException, buf: Buffer, actual: number) => void)
- (error, buf, actual): void
Returns void
Methods
cancel
- cancel(): boolean
Returns boolean
submit
- submit(buffer, callback?): Transfer
Parameters
- buffer: Buffer
Optional
callback: ((error: undefined | LibUSBException, buffer: Buffer, actualLength: number) => void)- (error, buffer, actualLength): void
Returns void
Represents a USB transfer