OpenBIC
OpenSource Bridge-IC
shell_vr_hot_switch.c File Reference
#include <stdlib.h>
#include <shell/shell.h>
#include "plat_pldm_sensor.h"
#include "plat_cpld.h"
#include "plat_class.h"
Include dependency graph for shell_vr_hot_switch.c:

Macros

#define ENABLE   1
 
#define DISABLE   0
 
#define VR_HOT_SWITCH_BIT   0
 

Functions

 LOG_MODULE_REGISTER (plat_vr_hot_switch_shell)
 
void set_cmd_vr_hot_switch_enable (const struct shell *shell, size_t argc, char **argv)
 
void set_cmd_vr_hot_switch_disable (const struct shell *shell, size_t argc, char **argv)
 
void vr_hot_switch_get_cmds (const struct shell *shell, size_t argc, char **argv)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (vr_hot_switch_set_cmds, SHELL_CMD(enable, NULL, "enable", set_cmd_vr_hot_switch_enable), SHELL_CMD(disable, NULL, "disable", set_cmd_vr_hot_switch_disable), SHELL_SUBCMD_SET_END)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (vr_hot_switch_sub_cmds, SHELL_CMD(get, NULL, "get vr_hot_switch status", vr_hot_switch_get_cmds), SHELL_CMD(set, &vr_hot_switch_set_cmds, "set vr_hot_switch status", NULL), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (vr_hot_switch, &vr_hot_switch_sub_cmds, "vr_hot_switch commands", NULL)
 

Macro Definition Documentation

◆ DISABLE

#define DISABLE   0

◆ ENABLE

#define ENABLE   1

◆ VR_HOT_SWITCH_BIT

#define VR_HOT_SWITCH_BIT   0

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_vr_hot_switch_shell  )

◆ set_cmd_vr_hot_switch_disable()

void set_cmd_vr_hot_switch_disable ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function:

◆ set_cmd_vr_hot_switch_enable()

void set_cmd_vr_hot_switch_enable ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function:

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( vr_hot_switch  ,
vr_hot_switch_sub_cmds,
"vr_hot_switch commands"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE() [1/2]

SHELL_STATIC_SUBCMD_SET_CREATE ( vr_hot_switch_set_cmds  ,
SHELL_CMD(enable, NULL, "enable", set_cmd_vr_hot_switch_enable)  ,
SHELL_CMD(disable, NULL, "disable", set_cmd_vr_hot_switch_disable)  ,
SHELL_SUBCMD_SET_END   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE() [2/2]

SHELL_STATIC_SUBCMD_SET_CREATE ( vr_hot_switch_sub_cmds  ,
SHELL_CMD(get, NULL, "get vr_hot_switch status", vr_hot_switch_get_cmds)  ,
SHELL_CMD(set, &vr_hot_switch_set_cmds, "set vr_hot_switch status", NULL)  ,
SHELL_SUBCMD_SET_END   
)

◆ vr_hot_switch_get_cmds()

void vr_hot_switch_get_cmds ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function: