Jump to content

RxUsbEndpointClearFeature

From EDM2
Revision as of 23:11, 20 January 2017 by Martini (talk | contribs) (Created page with "==Description== Executes the Standard Device Request that clears or disables an endpoint feature. ==Syntax== <pre> rc = RxUsbEndpointClearFeature(Handle,Endpoint,Feature) </p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)

Related Functions