Jump to content

RxUsbQueryDeviceReport: Difference between revisions

From EDM2
Created page with "==Description== Obtains the Compound Descriptor of a specific USB device. ==Syntax== <pre> rc = RxUsbQueryDeviceReport(Handle,Report) </pre> ==Parameters== ; Handle : the D..."
(No difference)

Revision as of 03:27, 11 January 2017

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