Embedded TCP/IP stack: fnet_shell_init

FNET

fnet_shell_desc_t fnet_shell_init ( struct fnet_shell_params params)

Initializes the Shell service.

Parameters
paramsInitialization parameters defined by fnet_shell_params.
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-2018 by Andrey Butok. http://fnet.sourceforge.net