Name

USBLib_FindDevice (SWI &56340) — Obtains a device and controller reference

On Entry

R0controller name
R1device number

On Exit

R0controller reference
R1device reference

Use

This call is used to obtain a reference from a controller name and device number. Its main use is for obtaining references for the USBLib_GetDefaultPipe (SWI &56340) call.

Note

both references will have had their registration count incremented which will require freeing with USBLib_ReferenceDeregister (SWI &56340) when the reference is no longer required.

Related SWIs

USBLib_FindDeviceRef (SWI &56340)

USBLib_GetDefaultPipe (SWI &56340)

Related Information

usb_find_device_ref