...
- Initialize the μC/IPerf. If the process is successful, the μC/IPerf task is started, and its various data structures are initialized.
For this example, if an error occurs with the initialization, the terminal task is delayed infinitely.
- Wait to receive a string command.
Verify if string command start with the word “iperf”. Note that the first word of the string command is not verified by μC/IPerf and start to read the arguments after a first space. That give the opportunity to the user to set the name of his choose to start μC/IPerf.
Once the string command is validated locally, the test can be queued. μC/IPerf use App_OutputFnct() to return a string for the menu, version and/or command error.
If μC/IPerf has queued the test, we got a test id. With this test id, we can query status and result from μC/IPerf. The basic reporter takes this test id and a pointer to an output function to print the data.
...