|
OpenBIC
OpenSource Bridge-IC
|
#include <stdlib.h>#include <stdint.h>#include <stdio.h>#include "pdr.h"#include "plat_pldm_sensor.h"
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) | |
| #define MINERVA_THRESHOLD_UNIT 0.001 |
| void cmd_get_sensor_threshold | ( | const struct shell * | shell, |
| size_t | argc, | ||
| char ** | argv | ||
| ) |

| void cmd_set_sensor_threshold | ( | const struct shell * | shell, |
| size_t | argc, | ||
| char ** | argv | ||
| ) |

| SHELL_CMD_REGISTER | ( | sensor_threshold | , |
| & | sub_sensor_threshold_cmds, | ||
| "threshold commands for AG" | , | ||
| NULL | |||
| ) |
| 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 | |||
| ) |