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

Macros

#define MINERVA_THRESHOLD_UNIT   0.001
 

Functions

void cmd_set_sensor_threshold (const struct shell *shell, size_t argc, char **argv)
 
void cmd_get_sensor_threshold (const struct shell *shell, size_t argc, char **argv)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_sensor_threshold_cmds, SHELL_CMD(set, NULL, "set_sensor_threshold", cmd_set_sensor_threshold), SHELL_CMD(get, NULL, "get_sensor_threshold", cmd_get_sensor_threshold), SHELL_SUBCMD_SET_END)
 
 SHELL_CMD_REGISTER (sensor_threshold, &sub_sensor_threshold_cmds, "threshold commands for AG", NULL)
 

Macro Definition Documentation

◆ MINERVA_THRESHOLD_UNIT

#define MINERVA_THRESHOLD_UNIT   0.001

Function Documentation

◆ cmd_get_sensor_threshold()

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

◆ cmd_set_sensor_threshold()

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

◆ SHELL_CMD_REGISTER()

SHELL_CMD_REGISTER ( sensor_threshold  ,
sub_sensor_threshold_cmds,
"threshold commands for AG"  ,
NULL   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_sensor_threshold_cmds  ,
SHELL_CMD(set, NULL, "set_sensor_threshold", cmd_set_sensor_threshold)  ,
SHELL_CMD(get, NULL, "get_sensor_threshold", cmd_get_sensor_threshold)  ,
SHELL_SUBCMD_SET_END   
)