#include <stdlib.h>
#include <shell/shell.h>
Go to the source code of this file.
|
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) |
|
◆ device_id
Enumerator |
---|
DEVICE_HOST | |
DEVICE_BMC | |
MAX_DEVICE_COUNT | |
◆ 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 |
|
|
) |
| |