Jump to content

RxUsbDeviceGetStatus: Difference between revisions

From EDM2
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=..."
(No difference)

Revision as of 03:44, 11 January 2017

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