USBLib_FindDevice (SWI &5634F)

USBLib_FindDevice (SWI &5634F) — 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 &56355) call.

Note

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

Related SWIs

USBLib_FindDeviceRef (SWI &56350)

USBLib_GetDefaultPipe (SWI &56355)

Related Information

usb_find_device_ref