USBLib_FindEndpoint (SWI &56340)
Prev | 3.3. Reference management SWIs | Next

## Name

USBLib_FindEndpoint (SWI &56340) — Obtain an endpoint reference

## On Entry

R0 | Device reference
R1 | Endpoint number
R2 | Endpoint type (see DecodeAddress r2)

## On Exit

R1 | Endpoint 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 &56340) when the reference is no longer required.

## Related SWIs

USBLib_ReferenceDeregister (SWI &56340)

## Related Information

Chapter 4

Prev | Up | Next
USBLib_GetReferenceCount (SWI &56340) | Home | USBLib_CreateLoopWaiting (SWI &56340)