Jump to content

UsbClose: Difference between revisions

From EDM2
W.m.brul (talk | contribs)
added parameter descriptions and example code
W.m.brul (talk | contribs)
 
Line 31: Line 31:


==Related Functions==
==Related Functions==
* [[UsbOpen]]


[[Category:USBCalls]]
[[Category:USBCalls]]

Latest revision as of 17:28, 12 February 2017

Description

Releases access to a specific USB device.

Syntax

ulrc = UsbClose(Handle)

Parameters

Handle
the Device Handle received from the previous UsbOpen.

Return Code

0x0000 - NO_ERROR

Errors

0x1B58 - USB_NOT_INIT
0xFF13 - ERROR_I24_INVALID_PARAMETER

Remarks

Example Code

//Code Snippet - UsbClose
{
  ulrc = UsbClose(Handle);
  printf("\nUsbClose - ulrc: 0x%04X",ulrc);
}

Related Functions