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