Jump to content

UsbDataTransfer

From EDM2
Revision as of 22:19, 5 January 2017 by Martini (talk | contribs) (Created page with "==Description== Executes synchronous Bulk or Interrupt Transfer with a specific endpoint. ==Syntax== <pre> ulrc=UsbDataTransfer(Handle,Endpoint,AltInterface,*pulNumBytes,*puc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Executes synchronous Bulk or Interrupt Transfer with a specific endpoint.

Syntax

ulrc=UsbDataTransfer(Handle,Endpoint,AltInterface,*pulNumBytes,*pucData,ulTimeout,usFlags)

Parameters

Handle
Endpoint
AltInterface
*pulNumBytes
*pucData
ulTimeout
usFlags

Return Code

Errors

 [0000] - NO_ERROR
 [0006] - ERROR_INVALID_HANDLE
 [0008] - ERROR_NOT_ENOUGH_MEMORY
 [0057] - ERROR_INVALID_PARAMETER
 [005F] - ERROR_INTERRUPT (95)
 [0122] - ERROR_TOO_MANY_HANDLES (290)
 [0280] - ERROR_TIMEOUT (640)
 [1B58] - USB_NOT_INIT (7000)
 [1B5B] - USB_ERROR_INVALID_ENDPOINT (7003)
 [1B5C] - USB_ERROR_LESSTRANSFERED (7004)
 [4000] - USB_IORB_REQUEST
 [80XX] - USB_IORB_FAILED

Remarks

Example Code


Related Functions