RxUsbEndpointGetStatus
Appearance
Description
Executes the Standard Device Request that obtains the status of an endpoint.
Syntax
rc = RxUsbEndpointGetStatus(Handle,Endpoint,Status)
Parameters
- Handle
- the Device Handle received from the previous RxUsbOpen.
- Endpoint
- the Endpoint Number with the Direction Bit set to one.
- Status
- the name of the variable to receive the Endpoint Status.
Return Code
Errors
Remarks
Example Code
/* add RxUsbEndpointGetStatus */ rc = RxFuncAdd('RxUsbEndpointGetStatus','usbcalls','RxUsbEndpointGetStatus') say '+RxUsbEndpointGetStatus(),RC=0x'd2x(rc) /* invoke RxUsbEndpointGetStatus */ Endpoint=0 /* default control endpoint */ Endpoint=128+1 /* isochronous endpoint */ drop Status /* receives endpoint status */ rc = RxUsbEndpointGetStatus(Handle,Endpoint,Status) say '*RxUsbEndpointGetStatus(),RC=0x'd2x(rc) /* drop RxUsbEndpointGetStatus */ rc = RxFuncDrop('RxUsbEndpointGetStatus') say '-RxUsbEndpointGetStatus(),RC=0x'd2x(rc)