OpenBIC
OpenSource Bridge-IC
plat_vr_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_vr_status_shell.c:

Functions

 LOG_MODULE_REGISTER (plat_vr_status_shell, LOG_LEVEL_DBG)
 
 SHELL_DYNAMIC_CMD_CREATE (vr_status_rname_for_vr_status, vr_status_rname_get)
 
 SHELL_DYNAMIC_CMD_CREATE (vr_rname_for_vr_status, voltage_rname_get)
 
 SHELL_DYNAMIC_CMD_CREATE (vr_rname_for_vr_status_clear, voltage_rname_clear)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_vr_status_cmds, SHELL_CMD(get, &vr_rname_for_vr_status, "get all|<voltage-rail> all|<which-status>", cmd_vr_status_get), SHELL_CMD(clear, &vr_rname_for_vr_status_clear, "clear all|<voltage-rail>", cmd_vr_status_clear), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (vr_status, &sub_vr_status_cmds, "vr fault status set/get commands", NULL)
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_vr_status_shell  ,
LOG_LEVEL_DBG   
)

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( vr_status  ,
sub_vr_status_cmds,
"vr fault status set/get commands"  ,
NULL   
)

◆ SHELL_DYNAMIC_CMD_CREATE() [1/3]

SHELL_DYNAMIC_CMD_CREATE ( vr_rname_for_vr_status  ,
voltage_rname_get   
)

◆ SHELL_DYNAMIC_CMD_CREATE() [2/3]

SHELL_DYNAMIC_CMD_CREATE ( vr_rname_for_vr_status_clear  ,
voltage_rname_clear   
)

◆ SHELL_DYNAMIC_CMD_CREATE() [3/3]

SHELL_DYNAMIC_CMD_CREATE ( vr_status_rname_for_vr_status  ,
vr_status_rname_get   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_vr_status_cmds  ,
SHELL_CMD(get, &vr_rname_for_vr_status, "get all|<voltage-rail> all|<which-status>", cmd_vr_status_get)  ,
SHELL_CMD(clear, &vr_rname_for_vr_status_clear, "clear all|<voltage-rail>", cmd_vr_status_clear)  ,
SHELL_SUBCMD_SET_END   
)