OpenBIC
OpenSource Bridge-IC
plat_voltage_range_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_voltage_range_shell.c:

Functions

 LOG_MODULE_REGISTER (plat_voltage_range_shell, LOG_LEVEL_DBG)
 
 SHELL_DYNAMIC_CMD_CREATE (vr_rname_for_get_voltrage, vr_rname_get_for_get_voltrage)
 
 SHELL_DYNAMIC_CMD_CREATE (vr_rname_for_set_voltrage, vr_rname_get_for_set_voltrage)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_voltage_range_cmds, SHELL_CMD(get, &vr_rname_for_get_voltrage, "get all|<voltage-rail> min|max", cmd_voltage_range_get), SHELL_CMD(set, &vr_rname_for_set_voltrage, "set <voltage-rail> <new-voltage> min|max", cmd_voltage_range_set), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (voltage_range, &sub_voltage_range_cmds, "voltage_range set/get commands", NULL)
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_voltage_range_shell  ,
LOG_LEVEL_DBG   
)

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( voltage_range  ,
sub_voltage_range_cmds,
"voltage_range set/get commands"  ,
NULL   
)

◆ SHELL_DYNAMIC_CMD_CREATE() [1/2]

SHELL_DYNAMIC_CMD_CREATE ( vr_rname_for_get_voltrage  ,
vr_rname_get_for_get_voltrage   
)

◆ SHELL_DYNAMIC_CMD_CREATE() [2/2]

SHELL_DYNAMIC_CMD_CREATE ( vr_rname_for_set_voltrage  ,
vr_rname_get_for_set_voltrage   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_voltage_range_cmds  ,
SHELL_CMD(get, &vr_rname_for_get_voltrage, "get all|<voltage-rail> min|max", cmd_voltage_range_get)  ,
SHELL_CMD(set, &vr_rname_for_set_voltrage, "set <voltage-rail> <new-voltage> min|max", cmd_voltage_range_set)  ,
SHELL_SUBCMD_SET_END   
)