|
Contiki 3.x
|
The shell applicationMore...
#include "contiki.h"#include "contiki-lib.h"#include "net/rime/rime.h"#include "shell.h"#include <ctype.h>#include <string.h>#include <stdio.h>Go to the source code of this file.
Functions | |
Shell command API | |
These functions are used by shell commands. | |
| int | shell_start_command (char *commandline, int commandline_len, struct shell_command *child, struct process **started_process) |
| Start a shell command from another shell command. More... | |
| void | shell_output_str (struct shell_command *c, char *str1, const char *str2) |
| Output strings from a shell command. More... | |
| void | shell_output (struct shell_command *c, void *data1, int size1, const void *data2, int size2) |
| Output data from a shell command. More... | |
| void | shell_unregister_command (struct shell_command *c) |
| Unregister a previously registered shell command. More... | |
| void | shell_register_command (struct shell_command *c) |
| Register a command with the shell. More... | |
Shell back-end API | |
The shell back-end API contains functions that are used
by shell back-ends. | |
| void | shell_input (char *commandline, int commandline_len) |
| Send a line of input to the shell. More... | |
| void | shell_init (void) |
| Initialize the shell. More... | |
| void | shell_start (void) |
| Start the shell. More... | |
| void | shell_stop (void) |
| Stop the shell. More... | |
| void | shell_quit (void) |
| Quit the shell. More... | |
Shell convenience functions | |
These functions assist shell commands in parsing
command lines
| |
| unsigned long | shell_strtolong (const char *str, const char **retstr) |
| Convert a string to a number. More... | |
| unsigned long | shell_time (void) |
| void | shell_set_time (unsigned long seconds) |
Variables | |
| int | shell_event_input |
| The event number for shell input data. More... | |
The shell application
Definition in file shell.c.
1.8.5