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

Functions

 LOG_MODULE_REGISTER (plat_voltage_peak_shell)
 
void cmd_get_voltage_peak (const struct shell *shell, size_t argc, char **argv)
 
void cmd_clear_voltage_peak (const struct shell *shell, size_t argc, char **argv)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_voltage_peak_cmds, SHELL_CMD(get, NULL, "get_voltage_peak", cmd_get_voltage_peak), SHELL_CMD(clear, NULL, "clear_voltage_peak", cmd_clear_voltage_peak), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (voltage_peak, &sub_voltage_peak_cmds, "Voltage Peak commands for AG", NULL)
 

Function Documentation

◆ cmd_clear_voltage_peak()

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

◆ cmd_get_voltage_peak()

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

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_voltage_peak_shell  )

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( voltage_peak  ,
sub_voltage_peak_cmds,
"Voltage Peak commands for AG"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_voltage_peak_cmds  ,
SHELL_CMD(get, NULL, "get_voltage_peak", cmd_get_voltage_peak)  ,
SHELL_CMD(clear, NULL, "clear_voltage_peak", cmd_clear_voltage_peak)  ,
SHELL_SUBCMD_SET_END   
)