Jump to content

RxUsbQueryNumberDevices: Difference between revisions

From EDM2
W.m.brul (talk | contribs)
added return codes
W.m.brul (talk | contribs)
 
Line 41: Line 41:


==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)

Related Functions