RxUsbQueryNumberDevices: Difference between revisions
Appearance
Created page with "==Description== Obtains the Total Number of currenly attached USB devices. ==Syntax== <pre> rc = RxUsbQueryNumberDevices(Number) </pre> ==Parameters== ; Number : receives t..." |
|||
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
==Return Code== | ==Return Code== | ||
<pre> | |||
0x0000 - NO_ERROR | |||
</pre> | |||
===Errors=== | ===Errors=== | ||
<pre> | |||
0x0057 - ERROR_INVALID_PARAMETER | |||
0x1B58 - USB_NOT_INIT | |||
0xFF13 - ERROR_I24_INVALID_PARAMETER | |||
0xFF1F - ERROR_GEN_FAILURE | |||
0xFF57 - ERROR_INVALID_PARAMETER | |||
</pre> | |||
==Remarks== | ==Remarks== | ||
==Example Code== | ==Example Code== | ||
<pre> | <pre> | ||
/* add RxUsbQueryNumberDevices */ | /* add RxUsbQueryNumberDevices */ | ||
rc = RxFuncAdd('RxUsbQueryNumberDevices','usbcalls','RxUsbQueryNumberDevices') | rc = RxFuncAdd('RxUsbQueryNumberDevices','usbcalls','RxUsbQueryNumberDevices') | ||
Line 32: | Line 38: | ||
rc = RxFuncDrop('RxUsbQueryNumberDevices') | rc = RxFuncDrop('RxUsbQueryNumberDevices') | ||
say '-RxUsbQueryNumberDevices(),RC=0x'd2x(rc) | say '-RxUsbQueryNumberDevices(),RC=0x'd2x(rc) | ||
</pre> | </pre> | ||
==Related Functions== | ==Related Functions== | ||
* [[RxUsbQueryDeviceReport]] | |||
* [[RxUsbQueryDeviceInfo]] | |||
* [[RxUsbOpen]] | |||
[[Category:USBCalls]] | [[Category:USBCalls]] |
Latest revision as of 19:19, 12 February 2017
Description
Obtains the Total Number of currenly attached USB devices.
Syntax
rc = RxUsbQueryNumberDevices(Number)
Parameters
- Number
- receives the Total Number.
Return Code
0x0000 - NO_ERROR
Errors
0x0057 - ERROR_INVALID_PARAMETER 0x1B58 - USB_NOT_INIT 0xFF13 - ERROR_I24_INVALID_PARAMETER 0xFF1F - ERROR_GEN_FAILURE 0xFF57 - ERROR_INVALID_PARAMETER
Remarks
Example Code
/* add RxUsbQueryNumberDevices */ rc = RxFuncAdd('RxUsbQueryNumberDevices','usbcalls','RxUsbQueryNumberDevices') say '+RxUsbQueryNumberDevices(),RC=0x'd2x(rc) /* invoke RxUsbQueryNumberDevices */ drop Number /* receives number of devices */ rc = RxUsbQueryNumberDevices(Number) say '*RxUsbQueryNumberDevices(),RC=0x'd2x(rc) /* drop RxUsbQueryNumberDevices */ rc = RxFuncDrop('RxUsbQueryNumberDevices') say '-RxUsbQueryNumberDevices(),RC=0x'd2x(rc)