USBLib_FindEndpoint (SWI &56351)

USBLib_FindEndpoint (SWI &56351) — Obtain an endpoint reference

On Entry

R0Device reference
R1Endpoint number
R2Endpoint type (see DecodeAddress r2)

On Exit

R1Endpoint reference or 0 if not found

Use

This call obtains an endpoint reference from a device reference, endpoint number and type.

Note

The returned reference will have its registration count incremented which will require freeing with USBLib_ReferenceDeregister (SWI &56372) when the reference is no longer required.

Related SWIs

USBLib_ReferenceDeregister (SWI &56372)

Related Information

Chapter 4, Endpoints and Pipes