USBLib_FindEndpoint (SWI &56340) — Obtain an endpoint reference
R0 | Device reference |
R1 | Endpoint number |
R2 | Endpoint type (see DecodeAddress r2) |
R1 | Endpoint reference or 0 if not found |
This call obtains an endpoint reference from a device reference, endpoint number and type.
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.