Jump to content

RxUsbDeviceGetStatus

From EDM2
Revision as of 03:44, 11 January 2017 by Martini (talk | contribs) (Created page with "==Description== Executes the Standard Device Request that obtains the status of a USB device. ==Syntax== <pre> rc = RxUsbDeviceGetStatus(Handle,Status) </pre> ==Parameters=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)

Related Functions