RxUsbDeviceGetConfiguration
Appearance
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)