USBLib_NewDevMsgInfo (SWI &56365)

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

On Entry

R0pointer 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 &56353)
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

R3number of endpoints (pointed to by r0)
R4pointer to controller name string
R5pointer to serial number string
R6device 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 &56353)

Related Information