Jump to content

UsbClose

From EDM2
Revision as of 12:41, 25 January 2017 by W.m.brul (talk | contribs) (added parameter descriptions and example code)

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