Jump to content

RxUsbDeviceSetFeature

From EDM2
Revision as of 03:50, 11 January 2017 by Martini (talk | contribs) (Created page with "==Description== Executes the Standard Device Request that sets or enables a USB device feature. ==Syntax== <pre> rc = RxUsbDeviceSetFeature(Handle,Feature) </pre> ==Paramet...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Executes the Standard Device Request that sets or enables a USB device feature.

Syntax

rc = RxUsbDeviceSetFeature(Handle,Feature)

Parameters

Handle
the Device Handle received from the previous RxUsbOpen.
Feature
the Feature Selector appropriate for the device.

Return Code

Errors

Remarks

Example Code

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

/* invoke RxUsbDeviceSetFeature */
Feature=0 /* feature selector to be set */
rc = RxUsbDeviceSetFeature(Handle,Feature)
say '*RxUsbDeviceSetFeature(),RC=0x'd2x(rc)

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

Related Functions