RxUsbClose: Difference between revisions
Appearance
Created page with "==Description== Releases access to a specific USB device. ==Syntax== <pre> rc = RxUsbClose(Handle) </pre> ==Parameters== ; Handle : the Device Handle received from the prev..." |
added return codes |
||
Line 11: | Line 11: | ||
==Return Code== | ==Return Code== | ||
<pre> | |||
0x0000 - NO_ERROR | |||
</pre> | |||
===Errors=== | ===Errors=== | ||
<pre> | |||
0x1B58 - USB_NOT_INIT | |||
0xFF13 - ERROR_I24_INVALID_PARAMETER | |||
</pre> | |||
==Remarks== | ==Remarks== | ||
Revision as of 13:15, 23 January 2017
Description
Releases access to a specific USB device.
Syntax
rc = RxUsbClose(Handle)
Parameters
- Handle
- the Device Handle received from the previous RxUsbOpen.
Return Code
0x0000 - NO_ERROR
Errors
0x1B58 - USB_NOT_INIT 0xFF13 - ERROR_I24_INVALID_PARAMETER
Remarks
Example Code
/* add RxUsbClose */ rc = RxFuncAdd('RxUsbClose','usbcalls','RxUsbClose') say '+RxUsbClose(),RC=0x'd2x(rc) /* invoke RxUsbClose */ rc = RxUsbClose(Handle) say '*RxUsbClose(),RC=0x'd2x(rc) /* drop RxUsbClose */ rc = RxFuncDrop('RxUsbClose') say '-RxUsbClose(),RC=0