Jump to content

RxUsbDeviceGetConfiguration

From EDM2
Revision as of 03:41, 11 January 2017 by Martini (talk | contribs) (Created page with "==Description== Executes the Standard Device Request that obtains the current Configuration Value. ==Syntax== <pre> rc = RxUsbDeviceGetConfiguration(Handle,Config) </pre> =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Executes the Standard Device Request that obtains the current Configuration Value.

Syntax

rc = RxUsbDeviceGetConfiguration(Handle,Config)

Parameters

Handle
the Device Handle received from the previous RxUsbOpen.
Config
the name of the variable to receive the Configuration Value.

Return Code

Errors

Remarks

Example Code

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

/* invoke RxUsbDeviceGetConfiguration */
drop Config /* receives configuration value */
rc = RxUsbDeviceGetConfiguration(Handle,Config)
say '*RxUsbDeviceGetConfiguration(),RC=0x'd2x(rc)

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

Related Functions