#include <shell/shell.h>
#include <stdlib.h>
#include <logging/log.h>
#include "plat_hook.h"
|
| LOG_MODULE_REGISTER (plat_temp_threshold_shell, LOG_LEVEL_DBG) |
|
| SHELL_DYNAMIC_CMD_CREATE (temp_index_threshold_type_name, temp_index_threshold_type_name_get_) |
|
| SHELL_STATIC_SUBCMD_SET_CREATE (sub_temp_threshold_get_cmds, SHELL_CMD(all, NULL, "temp_threshold get all", cmd_temp_threshold_get_all), SHELL_SUBCMD_SET_END) |
|
| SHELL_STATIC_SUBCMD_SET_CREATE (sub_temp_threshold_cmds, SHELL_CMD(get, &sub_temp_threshold_get_cmds, "get all", NULL), SHELL_CMD_ARG(set, &temp_index_threshold_type_name, "set <temp_threshold> <value>|default [perm]", cmd_temp_threshold_set, 3, 1), SHELL_SUBCMD_SET_END) |
|
| SHELL_CMD_REGISTER (temp_threshold, &sub_temp_threshold_cmds, "temp_threshold set/get commands", NULL) |
|
◆ LOG_MODULE_REGISTER()
LOG_MODULE_REGISTER |
( |
plat_temp_threshold_shell |
, |
|
|
LOG_LEVEL_DBG |
|
|
) |
| |
◆ SHELL_CMD_REGISTER()
SHELL_CMD_REGISTER |
( |
temp_threshold |
, |
|
|
& |
sub_temp_threshold_cmds, |
|
|
"temp_threshold set/get commands" |
, |
|
|
NULL |
|
|
) |
| |
◆ SHELL_DYNAMIC_CMD_CREATE()
SHELL_DYNAMIC_CMD_CREATE |
( |
temp_index_threshold_type_name |
, |
|
|
temp_index_threshold_type_name_get_ |
|
|
) |
| |
◆ SHELL_STATIC_SUBCMD_SET_CREATE() [1/2]
SHELL_STATIC_SUBCMD_SET_CREATE |
( |
sub_temp_threshold_cmds |
, |
|
|
SHELL_CMD(get, &sub_temp_threshold_get_cmds, "get all", NULL) |
, |
|
|
SHELL_CMD_ARG(set, &temp_index_threshold_type_name, "set <temp_threshold> <value>|default [perm]", cmd_temp_threshold_set, 3, 1) |
, |
|
|
SHELL_SUBCMD_SET_END |
|
|
) |
| |
◆ SHELL_STATIC_SUBCMD_SET_CREATE() [2/2]
SHELL_STATIC_SUBCMD_SET_CREATE |
( |
sub_temp_threshold_get_cmds |
, |
|
|
SHELL_CMD(all, NULL, "temp_threshold get all", cmd_temp_threshold_get_all) |
, |
|
|
SHELL_SUBCMD_SET_END |
|
|
) |
| |