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

## Name

USBLib_ParseCmdLine (SWI &56340) — Parse a command line

## On Entry

R0 | pointer to command line

## On Exit

R0 | pointer to newdev message
R1 | Needs freeing
0 - newdev message does not require freeing
1 - newdev message must be freed with USBLib_Free (SWI &56340)

## Use

This call may be used to parse a command line for options passed by the USB system if it started the driver. If the command line does not contain information necessary to construct the message the V bit will be set and an error returned otherwise the message will be in R0. If the "free" flag in R1 is set then once used it is the drivers responsibility to dispose of the message by using USBLib_Free (SWI &56340)USBLib_Free.

## Related SWIs

USBLib_Free (SWI &56340)

## Related Information

*usblib_parse_cmd_line

Prev | Up | Next
USBLib_FindFreeDev (SWI &56340) | Home | USBLib_NewDevMsgInfo (SWI &56340)