OpenBIC
OpenSource Bridge-IC
plat_pwrlevel_shell.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <zephyr.h>
#include "plat_hook.h"
#include "plat_pwrlevel_shell.h"
Include dependency graph for plat_pwrlevel_shell.c:

Functions

void cmd_set_pwrlevel (const struct shell *shell, size_t argc, char **argv)
 
void cmd_get_pwrlevel (const struct shell *shell, size_t argc, char **argv)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_pwrlevel_cmds, SHELL_CMD(set, NULL, "set_pwrlevel", cmd_set_pwrlevel), SHELL_CMD(get, NULL, "get_pwrlevel", cmd_get_pwrlevel), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (pwrlevel1, &sub_pwrlevel_cmds, "pwrlevel1 commands for AG", NULL)
 

Function Documentation

◆ cmd_get_pwrlevel()

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

◆ cmd_set_pwrlevel()

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

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( pwrlevel1  ,
sub_pwrlevel_cmds,
"pwrlevel1 commands for AG"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_pwrlevel_cmds  ,
SHELL_CMD(set, NULL, "set_pwrlevel", cmd_set_pwrlevel)  ,
SHELL_CMD(get, NULL, "get_pwrlevel", cmd_get_pwrlevel)  ,
SHELL_SUBCMD_SET_END   
)