RxUsbDeviceClearFeature
Appearance
Description
Executes the Standard Device Request that clears or disables a USB device feature.
Syntax
rc = RxUsbDeviceClearFeature(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 RxUsbEndpointClearFeature */ rc = RxFuncAdd('RxUsbEndpointClearFeature','usbcalls','RxUsbEndpointClearFeature') say '+RxUsbEndpointClearFeature(),RC=0x'd2x(rc) /* invoke RxUsbEndpointClearFeature */ Endpoint=0 /* default control endpoint */ Endpoint=128+1 /* isochronous endpoint */ Feature=0 /* feature selector to clear */ rc = RxUsbEndpointClearFeature(Handle,Endpoint,Feature) say '*RxUsbEndpointClearFeature(),RC=0x'd2x(rc) /* drop RxUsbEndpointClearFeature */ rc = RxFuncDrop('RxUsbEndpointClearFeature') say '-RxUsbEndpointClearFeature(),RC=0x'd2x(rc)