RxUsbDeviceSetFeature
Appearance
Description
Executes the Standard Device Request that sets or enables a USB device feature.
Syntax
rc = RxUsbDeviceSetFeature(Handle,Feature)
Parameters
- Handle
- the Device Handle received from the previous RxUsbOpen.
- Feature
- the Feature Selector appropriate for the device.
Return Code
Errors
Remarks
Example Code
/* add RxUsbDeviceSetFeature */ rc = RxFuncAdd('RxUsbDeviceSetFeature','usbcalls','RxUsbDeviceSetFeature') say '+RxUsbDeviceSetFeature(),RC=0x'd2x(rc) /* invoke RxUsbDeviceSetFeature */ Feature=0 /* feature selector to be set */ rc = RxUsbDeviceSetFeature(Handle,Feature) say '*RxUsbDeviceSetFeature(),RC=0x'd2x(rc) /* drop RxUsbDeviceSetFeature */ rc = RxFuncDrop('RxUsbDeviceSetFeature') say '-RxUsbDeviceSetFeature(),RC=0x'd2x(rc)