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

## Name

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

## On Entry

R0 | controller name
R1 | device number

## On Exit

R0 | controller reference
R1 | device 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

Prev | Up | Next
USBLib_FindDeviceRef (SWI &56340) | Home | USBLib_DeviceInfo (SWI &56340)