RxUsbEndpointSetFeature
Appearance
Description
Executes the Standard Device Request that sets or enables an endpoint feature.
Syntax
rc = RxUsbEndpointSetFeature(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 RxUsbEndpointSetFeature */ rc = RxFuncAdd('RxUsbEndpointSetFeature','usbcalls','RxUsbEndpointSetFeature') say '+RxUsbEndpointSetFeature(),RC=0x'd2x(rc) /* invoke RxUsbEndpointSetFeature */ Endpoint=0 /* default control endpoint */ Endpoint=128+1 /* isochronous endpoint */ Feature=0 /* feature selector to be set */ rc = RxUsbEndpointSetFeature(Handle,Endpoint,Feature) say '*RxUsbEndpointSetFeature(),RC=0x'd2x(rc) /* drop RxUsbEndpointSetFeature */ rc = RxFuncDrop('RxUsbEndpointSetFeature') say '-RxUsbEndpointSetFeature(),RC=0x'd2x(rc)