OpenBIC
OpenSource Bridge-IC
power_shell.h File Reference
#include <stdlib.h>
#include <shell/shell.h>
Include dependency graph for power_shell.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  device_arr
 

Enumerations

enum  device_id { DEVICE_HOST , DEVICE_BMC , MAX_DEVICE_COUNT }
 

Functions

void cmd_power_status (const struct shell *shell, size_t argc, char **argv)
 
void cmd_power_control (const struct shell *shell, size_t argc, char **argv)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_power_cmds, SHELL_CMD(status, NULL, "List power status", cmd_power_status), SHELL_CMD(control, NULL, "Power control", cmd_power_control), SHELL_SUBCMD_SET_END)
 

Enumeration Type Documentation

◆ device_id

enum device_id
Enumerator
DEVICE_HOST 
DEVICE_BMC 
MAX_DEVICE_COUNT 

Function Documentation

◆ cmd_power_control()

void cmd_power_control ( const struct shell *  shell,
size_t  argc,
char **  argv 
)

◆ cmd_power_status()

void cmd_power_status ( const struct shell *  shell,
size_t  argc,
char **  argv 
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_power_cmds  ,
SHELL_CMD(status, NULL, "List power status", cmd_power_status)  ,
SHELL_CMD(control, NULL, "Power control", cmd_power_control)  ,
SHELL_SUBCMD_SET_END   
)