结构体 | |
struct | cli_command |
struct | cli_region |
宏定义 | |
#define | SECTION(x) __attribute__((section(x))) |
#define | USED __attribute__((used)) |
#define | ALIOS_CLI_CMD_REGISTER(name, cmd, desc) |
类型定义 | |
typedef void(* | cmd_fun_t) (char *outbuf, int len, int argc, char **argv) |
typedef int(* | cli_region_func) (int argc, char **argv) |
函数 | |
int | aos_cli_init (void) |
Initialize the CLI module 更多... | |
int | aos_cli_register_command (const struct cli_command *cmd) |
This function register a command with the command-line interface 更多... | |
int | aos_cli_unregister_command (const struct cli_command *cmd) |
This function unregister a command from the command-line interface 更多... | |
int | aos_cli_register_commands (const struct cli_command *cmds, int num) |
This function register multi CLI commands 更多... | |
int | aos_cli_unregister_commands (const struct cli_command *cmds, int num) |
This function unregisters multi CLI commands 更多... | |
int | aos_cli_printf (const char *fmt,...) |
use aos_cli_printf instead of printf in cli cmd 更多... | |
int | aos_cli_suspend (void) |
Suspend cli task 更多... | |
int | aos_cli_resume (void) |
Resume cli task 更多... | |
#define ALIOS_CLI_CMD_REGISTER | ( | name, | |
cmd, | |||
desc | |||
) |
int aos_cli_init | ( | void | ) |
Initialize the CLI module
int aos_cli_printf | ( | const char * | fmt, |
... | |||
) |
use aos_cli_printf instead of printf in cli cmd
[in] | fmt | pointer to a char * buffer |
int aos_cli_register_command | ( | const struct cli_command * | cmd | ) |
This function register a command with the command-line interface
[in] | cmd | the structure to regiter one CLI command |
int aos_cli_register_commands | ( | const struct cli_command * | cmds, |
int | num | ||
) |
This function register multi CLI commands
[in] | cmds | pointer to an array of commands |
[in] | num | number of commands in the array |
int aos_cli_resume | ( | void | ) |
Resume cli task
int aos_cli_suspend | ( | void | ) |
Suspend cli task
int aos_cli_unregister_command | ( | const struct cli_command * | cmd | ) |
This function unregister a command from the command-line interface
[in] | cmd | the structure to unregister one CLI command |
int aos_cli_unregister_commands | ( | const struct cli_command * | cmds, |
int | num | ||
) |
This function unregisters multi CLI commands
[in] | cmds | pointer to an array of commands |
[in] | num | number of command in the array |