Jump to content

RxUsbEndpointClearHalt

From EDM2
Revision as of 23:09, 20 January 2017 by Martini (talk | contribs) (Created page with "==Description== Executes the Standard Device Request that clears an endpoint halt status. ==Syntax== <pre> rc = RxUsbEndpointClearHalt(Handle,Endpoint) </pre> ==Parameters==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Executes the Standard Device Request that clears an endpoint halt status.

Syntax

rc = RxUsbEndpointClearHalt(Handle,Endpoint)

Parameters

Handle
the Device Handle received from the previous RxUsbOpen.
Endpoint
the Endpoint Number with the Direction Bit set to zero.

Return Code

Errors

Remarks

Example Code

/* add RxUsbEndpointClearHalt */
rc = RxFuncAdd('RxUsbEndpointClearHalt','usbcalls','RxUsbEndpointClearHalt')
say '+RxUsbEndpointClearHalt(),RC=0x'd2x(rc)

/* invoke RxUsbEndpointClearHalt */
Endpoint=0 /* default control endpoint */
Endpoint=128+1 /* isochronous endpoint */
rc = RxUsbEndpointClearHalt(Handle,Endpoint)
say '*RxUsbEndpointClearHalt(),RC=0x'd2x(rc)

/* drop RxUsbEndpointClearHalt */
rc = RxFuncDrop('RxUsbEndpointClearHalt')
say '-RxUsbEndpointClearHalt(),RC=0x'd2x(rc)

Related Functions