OpenBIC
OpenSource Bridge-IC
sensor_shell.h File Reference
#include <shell/shell.h>
Include dependency graph for sensor_shell.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_SENSOR_NAME_LENGTH   32
 
#define COMMON_SENSOR_TABLE_INDEX   0
 

Enumerations

enum  SENSOR_ACCESS { SENSOR_READ , SENSOR_WRITE }
 

Functions

void cmd_sensor_cfg_list_all_table (const struct shell *shell, size_t argc, char **argv)
 
void cmd_sensor_cfg_list_all_sensor (const struct shell *shell, size_t argc, char **argv)
 
void cmd_sensor_cfg_get_table_all_sensor (const struct shell *shell, size_t argc, char **argv)
 
void cmd_sensor_cfg_get_table_single_sensor (const struct shell *shell, size_t argc, char **argv)
 
void cmd_control_sensor_polling (const struct shell *shell, size_t argc, char **argv)
 
 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)
 

Macro Definition Documentation

◆ COMMON_SENSOR_TABLE_INDEX

#define COMMON_SENSOR_TABLE_INDEX   0

◆ MAX_SENSOR_NAME_LENGTH

#define MAX_SENSOR_NAME_LENGTH   32

Enumeration Type Documentation

◆ SENSOR_ACCESS

Enumerator
SENSOR_READ 
SENSOR_WRITE 

Function Documentation

◆ cmd_control_sensor_polling()

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

◆ cmd_sensor_cfg_get_table_all_sensor()

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

◆ cmd_sensor_cfg_get_table_single_sensor()

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

◆ cmd_sensor_cfg_list_all_sensor()

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

◆ cmd_sensor_cfg_list_all_table()

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

◆ SHELL_STATIC_SUBCMD_SET_CREATE()

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   
)