OpenBIC
OpenSource Bridge-IC
sensor_shell.c File Reference
#include "sdr.h"
#include "sensor.h"
#include "libutil.h"
#include "sensor_shell.h"
#include <stdlib.h>
#include <string.h>
#include <logging/log.h>
Include dependency graph for sensor_shell.c:

Macros

#define PINMASK_RESERVE_CHECK   1
 
#define GPIO_RESERVE_PREFIX   "Reserve"
 
#define NUM_OF_GPIO_IS_DEFINE   167
 

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)
 

Variables

char default_sensor_name [] = "Not support sensor name"
 
const char *const sensor_status_name []
 

Macro Definition Documentation

◆ GPIO_RESERVE_PREFIX

#define GPIO_RESERVE_PREFIX   "Reserve"

◆ NUM_OF_GPIO_IS_DEFINE

#define NUM_OF_GPIO_IS_DEFINE   167

◆ PINMASK_RESERVE_CHECK

#define PINMASK_RESERVE_CHECK   1

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 
)

Variable Documentation

◆ default_sensor_name

char default_sensor_name[] = "Not support sensor name"

◆ sensor_status_name

const char* const sensor_status_name[]
Initial value:
= {
"read_success",
"read_acur_success",
"not_found",
"not_accesible)",
"fail_to_access",
"init_status",
"unspecified_err",
"polling_disable",
"pre_read_error",
"post_read_error",
"api_unregister",
"4byte_acur_read_success",
"sensor_not_present",
"pec_error",
"parameter_not_valid",
}