RxUsbDeviceGetStatus
Appearance
Description
Executes the Standard Device Request that obtains the status of a USB device.
Syntax
rc = RxUsbDeviceGetStatus(Handle,Status)
Parameters
- Handle
- the Device Handle received from the previous RxUsbOpen.
- Status
- the name of the variable to receive the Device Status.
Return Code
Errors
Remarks
Example Code
/* add RxUsbDeviceGetStatus */ rc = RxFuncAdd('RxUsbDeviceGetStatus','usbcalls','RxUsbDeviceGetStatus') say '+RxUsbDeviceGetStatus(),RC=0x'd2x(rc) /* invoke RxUsbDeviceGetStatus */ drop Status /* receives device status */ rc = RxUsbDeviceGetStatus(Handle,Status) say '*RxUsbDeviceGetStatus(),RC=0x'd2x(rc) /* drop RxUsbDeviceGetStatus */ rc = RxFuncDrop('RxUsbDeviceGetStatus') say '-RxUsbDeviceGetStatus(),RC=0x'd2x(rc)