USBLib_NewDevMsgInfo (SWI &56340)
Prev | 3.6. Device management SWIs | Next

## Name

USBLib_NewDevMsgInfo (SWI &56340) — Extract information from a new device message

## On Entry

R0 | pointer to newdev message

## On Exit

R0 | pointer to set of endpoints r0 + 00 + no * 8 = endpoint reference r0 + 04 + no * 8 = encoded endpoint number
R1 | Needs freeing
0 - newdev message does not require freeing
1 - newdev message must be freed with USBLib_Free (SWI &56340)
R2 | Pointer to device info r2 + 00 = vendor id r2 + 04 = product id r2 + 08 = interface number r2 + 12 = interface class r2 + 16 = interface sub-class r2 + 20 = interface protocol
R3 | number of endpoints (pointed to by r0)
R4 | pointer to controller name string
R5 | pointer to serial number string
R6 | device number

## Use

This call is used to return all the information in a new device message in an easy to use form. The data pointed to is held in the device message and hence is tied to the lifetime of that object. Hence the the data will remain untill the device message is freed or dereferenced.

## Related SWIs

USBLib_Free (SWI &56340)

## Related Information

Prev | Up | Next
USBLib_ParseCmdLine (SWI &56340) | Home | USBLib_DevMgrSetFilter (SWI &56340)