OpenBIC
OpenSource Bridge-IC
|
#include <shell/shell.h>
#include <stdlib.h>
#include <logging/log.h>
#include "sensor.h"
#include "plat_hook.h"
#include "plat_class.h"
Functions | |
LOG_MODULE_REGISTER (plat_temp_status_shell, LOG_LEVEL_DBG) | |
SHELL_DYNAMIC_CMD_CREATE (temp_sensor_rname_for_temp_status_get, temp_sensor_rname_get_for_get_cmd) | |
SHELL_DYNAMIC_CMD_CREATE (temp_sensor_rname_for_temp_status_clear, temp_sensor_rname_get_for_clear_cmd) | |
SHELL_STATIC_SUBCMD_SET_CREATE (sub_temp_status_cmds, SHELL_CMD(get, &temp_sensor_rname_for_temp_status_get, "get <sensor>", cmd_temp_status_get), SHELL_CMD(clear, &temp_sensor_rname_for_temp_status_clear, "clear all|<sensor>", cmd_temp_status_clear), SHELL_SUBCMD_SET_END) | |
SHELL_CMD_REGISTER (temp_status, &sub_temp_status_cmds, "temperature fault status get/clear commands", NULL) | |
LOG_MODULE_REGISTER | ( | plat_temp_status_shell | , |
LOG_LEVEL_DBG | |||
) |
SHELL_CMD_REGISTER | ( | temp_status | , |
& | sub_temp_status_cmds, | ||
"temperature fault status get/clear commands" | , | ||
NULL | |||
) |
SHELL_DYNAMIC_CMD_CREATE | ( | temp_sensor_rname_for_temp_status_clear | , |
temp_sensor_rname_get_for_clear_cmd | |||
) |
SHELL_DYNAMIC_CMD_CREATE | ( | temp_sensor_rname_for_temp_status_get | , |
temp_sensor_rname_get_for_get_cmd | |||
) |
SHELL_STATIC_SUBCMD_SET_CREATE | ( | sub_temp_status_cmds | , |
SHELL_CMD(get, &temp_sensor_rname_for_temp_status_get, "get <sensor>", cmd_temp_status_get) | , | ||
SHELL_CMD(clear, &temp_sensor_rname_for_temp_status_clear, "clear all|<sensor>", cmd_temp_status_clear) | , | ||
SHELL_SUBCMD_SET_END | |||
) |