RxUsbEndpointClearFeature
Appearance
Description
Executes the Standard Device Request that clears or disables an endpoint feature.
Syntax
rc = RxUsbEndpointClearFeature(Handle,Endpoint,Feature)
Parameters
- Handle
- the Device Handle received from the previous RxUsbOpen.
- Endpoint
- the Endpoint Number with the Direction Bit set to zero.
- Feature
- the Feature Selector appropriate for the endpoint.
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)