Jump to content

RxUsbInterfaceSetFeature

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

Description

Executes the Standard Device Request that sets or enables an interface feature.

Syntax

 rc = RxUsbInterfaceSetFeature(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 RxUsbInterfaceSetFeature */
rc = RxFuncAdd('RxUsbInterfaceSetFeature','usbcalls','RxUsbInterfaceSetFeature')
say '+RxUsbInterfaceSetFeature(),RC=0x'd2x(rc)

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

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

Related Functions