20#include <shell/shell.h>
23#define MAX_SENSOR_NAME_LENGTH 32
24#define COMMON_SENSOR_TABLE_INDEX 0
38 SHELL_CMD(get_table_all_sensor, NULL,
"Get table all SENSOR config",
40 SHELL_CMD(get_table_single_sensor, NULL,
"Get table single SENSOR config",
44 SHELL_SUBCMD_SET_END);
void control_sensor_polling(uint8_t sensor_num, uint8_t optional, uint8_t cache_status)
Definition: sensor.c:1413
SENSOR_ACCESS
Definition: sensor_shell.h:26
@ SENSOR_WRITE
Definition: sensor_shell.h:26
@ SENSOR_READ
Definition: sensor_shell.h:26
void cmd_control_sensor_polling(const struct shell *shell, size_t argc, char **argv)
Definition: sensor_shell.c:486
void cmd_sensor_cfg_get_table_single_sensor(const struct shell *shell, size_t argc, char **argv)
Definition: sensor_shell.c:450
void cmd_sensor_cfg_list_all_table(const struct shell *shell, size_t argc, char **argv)
Definition: sensor_shell.c:277
void cmd_sensor_cfg_list_all_sensor(const struct shell *shell, size_t argc, char **argv)
Definition: sensor_shell.c:305
void cmd_sensor_cfg_get_table_all_sensor(const struct shell *shell, size_t argc, char **argv)
Definition: sensor_shell.c:393
SHELL_STATIC_SUBCMD_SET_CREATE(sub_sensor_cmds, SHELL_CMD(list_all_table, NULL, "List all monitor table.", cmd_sensor_cfg_list_all_table), SHELL_CMD(list_all_sensor, NULL, "List all SENSOR config.", cmd_sensor_cfg_list_all_sensor), SHELL_CMD(get_table_all_sensor, NULL, "Get table all SENSOR config", cmd_sensor_cfg_get_table_all_sensor), SHELL_CMD(get_table_single_sensor, NULL, "Get table single SENSOR config", cmd_sensor_cfg_get_table_single_sensor), SHELL_CMD(control_sensor_polling, NULL, "Enable/Disable sensor polling", cmd_control_sensor_polling), SHELL_SUBCMD_SET_END)