RxUsbDeviceSetAddress
Appearance
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)