Jump to content

RxUsbQueryDeviceReport

From EDM2
Revision as of 03:27, 11 January 2017 by Martini (talk | contribs) (Created page with "==Description== Obtains the Compound Descriptor of a specific USB device. ==Syntax== <pre> rc = RxUsbQueryDeviceReport(Handle,Report) </pre> ==Parameters== ; Handle : the D...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Obtains the Compound Descriptor of a specific USB device.

Syntax

rc = RxUsbQueryDeviceReport(Handle,Report)

Parameters

Handle
the Device Handle received from the previous RxUsbOpen.
Report
receives the Compound Descriptor as hexadecimal string. The Compound Descriptor is the concatenation of Device Descriptor and Configuration Descriptor.

Return Code

Errors

Remarks

Example Code



/* add RxUsbQueryDeviceReport */
rc = RxFuncAdd('RxUsbQueryDeviceReport','usbcalls','RxUsbQueryDeviceReport')
say '+RxUsbQueryDeviceReport(),RC=0x'd2x(rc)

/* invoke RxUsbQueryDeviceReport */
drop Report /* receives device report */
rc = RxUsbQueryDeviceReport(Handle,Report)
say '*RxUsbQueryDeviceReport(),RC=0x'd2x(rc)

/* drop RxUsbQueryDeviceReport */
rc = RxFuncDrop('RxUsbQueryDeviceReport')
say '-RxUsbQueryDeviceReport(),RC=0x'd2x(rc)

  

Related Functions