Jump to content

RxUsbDeviceSetAddress

From EDM2
Revision as of 03:52, 11 January 2017 by Martini (talk | contribs) (Created page with "==Description== '''Warning:''' Do NOT use this function since it renders your USB device unusable. Executes the Standard Device Request that sets the USB device address. =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Warning: Do NOT use this function since it renders your USB device unusable.

Executes the Standard Device Request that sets the USB device address.

Syntax

rc = RxUsbDeviceSetAddress(Handle,Address)

Parameters

Handle
the Device Handle received from the previous RxUsbOpen.
Address
the Device Address appropriate for the device.


Return Code

Errors

Remarks

Example Code

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

/* invoke RxUsbDeviceSetAddress */
Address=0 /* device address to be set */
rc = RxUsbDeviceSetAddress(Handle,Address)
say '*RxUsbDeviceSetAddress(),RC=0x'd2x(rc)

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

  

Related Functions