OpenBIC
OpenSource Bridge-IC
plat_temp_status_shell.c File Reference
#include <shell/shell.h>
#include <stdlib.h>
#include <logging/log.h>
#include "sensor.h"
#include "plat_hook.h"
#include "plat_class.h"
Include dependency graph for plat_temp_status_shell.c:

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)
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_temp_status_shell  ,
LOG_LEVEL_DBG   
)

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( temp_status  ,
sub_temp_status_cmds,
"temperature fault status get/clear commands"  ,
NULL   
)

◆ SHELL_DYNAMIC_CMD_CREATE() [1/2]

SHELL_DYNAMIC_CMD_CREATE ( temp_sensor_rname_for_temp_status_clear  ,
temp_sensor_rname_get_for_clear_cmd   
)

◆ SHELL_DYNAMIC_CMD_CREATE() [2/2]

SHELL_DYNAMIC_CMD_CREATE ( temp_sensor_rname_for_temp_status_get  ,
temp_sensor_rname_get_for_get_cmd   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

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   
)