USBLib_NewDevMsgInfo (SWI &56340) — Extract information from a new device message
R0 | pointer to newdev message |
R0 | pointer to set of endpoints r0 + 00 + no * 8 = endpoint reference r0 + 04 + no * 8 = encoded endpoint number | ||
R1 | Needs freeing
| ||
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 |
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.