OpenBIC
OpenSource Bridge-IC
|
#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"
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) | |
void cmd_clear_voltage_peak | ( | const struct shell * | shell, |
size_t | argc, | ||
char ** | argv | ||
) |
void cmd_get_voltage_peak | ( | const struct shell * | shell, |
size_t | argc, | ||
char ** | argv | ||
) |
LOG_MODULE_REGISTER | ( | plat_voltage_peak_shell | ) |
SHELL_CMD_REGISTER | ( | voltage_peak | , |
& | sub_voltage_peak_cmds, | ||
"Voltage Peak commands for AG" | , | ||
NULL | |||
) |
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 | |||
) |