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_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) | |
LOG_MODULE_REGISTER | ( | plat_voltage_range_shell | , |
LOG_LEVEL_DBG | |||
) |
SHELL_CMD_REGISTER | ( | voltage_range | , |
& | sub_voltage_range_cmds, | ||
"voltage_range set/get commands" | , | ||
NULL | |||
) |
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 | |||
) |