USBLib_ParseCmdLine (SWI &56375)

USBLib_ParseCmdLine (SWI &56375) — Parse a command line

On Entry

R0pointer to command line

On Exit

R0pointer to newdev message
R1

Needs freeing

0 - newdev message does not require freeing
1 - newdev message must be freed with USBLib_Free (SWI &56353)

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 &56353)USBLib_Free.

Related SWIs

USBLib_Free (SWI &56353)

Related Information

usblib_parse_cmd_line