Jump to content

RxUsbInterfaceClearFeature

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

Description

Executes the Standard Device Request that clears or disables an interface feature.

Syntax

rc = RxUsbInterfaceClearFeature(Handle,Interface,Feature)

Parameters

Handle
the Device Handle received from the previous RxUsbOpen.
Interface
the specific Interface Number appropriate for the USB device.
Feature
the Feature Selector appropriate for the interface.

Return Code

Errors

Remarks

Example Code

/* add RxUsbInterfaceClearFeature */
rc = RxFuncAdd('RxUsbInterfaceClearFeature','usbcalls','RxUsbInterfaceClearFeature')
say '+RxUsbInterfaceClearFeature(),RC=0x'd2x(rc)

/* invoke RxUsbInterfaceClearFeature */
Interface=1 /* second interface number */
Feature=0 /* feature selector to clear */
rc = RxUsbInterfaceClearFeature(Handle,Interface,Feature)
say '*RxUsbInterfaceClearFeature(),RC=0x'd2x(rc)

/* drop RxUsbInterfaceClearFeature */
rc = RxFuncDrop('RxUsbInterfaceClearFeature')
say '-RxUsbInterfaceClearFeature(),RC=0x'd2x(rc)

Related Functions