Jump to content

RxUsbEndpointSetFeature

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

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)

Related Functions