Command Line Interface: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Command Line Interface== Once you have a serial interface for debug / printf() output, and have the ability to read serial characters entered from a terminal program, you're...") |
m (JMerkle moved page Create to Command Line Interface) |
(No difference)
|
Revision as of 11:28, 16 November 2020
Command Line Interface
Once you have a serial interface for debug / printf() output, and have the ability to read serial characters entered from a terminal program, you're ready to implement a command line interface.
Why a Command Line Interface?
Main reason - control With the command line interface, you can interact with different functionality you've created within your project, testing many of your functions, and validating your recently added code.
Components needed:
Serial character input method Line buffer editor - minimal Line buffer parser - split the command line up into words, with the expectation that the first word is a command, with any following words being command line parameters/arguments Command table with expected number of arguments count Argument/word counter - argc Array of character pointers - argv