Embedded TCP/IP stack  4.7.0

◆ fnet_shell_init()

fnet_shell_desc_t fnet_shell_init ( fnet_shell_params_t params)

Initializes the Shell service.

Parameters
paramsInitialization parameters defined by fnet_shell_params_t.
Returns
This function returns:
  • Shell service descriptor if no error occurs.
  • 0 if an error occurs.
See also
fnet_shell_release()

This function executes the initialization of the shell service according to settings pointed to by params parameters. It allocates all resources needed, and registers the shell service in the polling list.
After the initialization, the user application should call the main polling function fnet_service_poll() periodically to run the Shell service in background.
The shell service runs on asigned serial stream, executes parsing of the user-entered commands, and calls user-defined command functions, if the parsing was successful.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net