Searched refs:shell_ptr (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/subsys/settings/src/ |
D | settings_shell.c | 16 const struct shell *shell_ptr; member 33 shell_print(params->shell_ptr, "%s/%s", params->subtree, key); in settings_list_callback() 35 shell_print(params->shell_ptr, "%s", key); in settings_list_callback() 41 static int cmd_list(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_list() argument 46 .shell_ptr = shell_ptr, in cmd_list() 53 shell_error(shell_ptr, "Failed to load settings: %d", err); in cmd_list() 65 const struct shell *shell_ptr; member 89 shell_error(params->shell_ptr, "Failed to read value: %d", (int) num_read_bytes); in settings_read_callback() 94 shell_warn(params->shell_ptr, "Value is empty"); in settings_read_callback() 100 shell_hexdump(params->shell_ptr, buffer, num_read_bytes); in settings_read_callback() [all …]
|
/Zephyr-latest/drivers/sensor/ |
D | sensor_shell_stream.c | 41 int cmd_sensor_stream(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_sensor_stream() argument 48 shell_error(shell_ptr, "Wrong number of arguments (%zu)", argc); in cmd_sensor_stream() 53 shell_error(shell_ptr, "Device unknown (%s)", argv[1]); in cmd_sensor_stream() 58 shell_info(shell_ptr, "Disabling existing stream"); in cmd_sensor_stream() 67 shell_error(shell_ptr, "Unknown streaming operation (%s)", argv[2]); in cmd_sensor_stream() 94 shell_error(shell_ptr, "Invalid trigger (%s)", argv[3]); in cmd_sensor_stream() 105 shell_error(shell_ptr, "Unknown trigger op (%s)", argv[4]); in cmd_sensor_stream() 109 shell_print(shell_ptr, "Enabling stream..."); in cmd_sensor_stream() 115 ctx.sh = shell_ptr; in cmd_sensor_stream() 121 shell_error(shell_ptr, "Failed to start stream"); in cmd_sensor_stream()
|
D | sensor_shell.c | 604 static int cmd_sensor_attr_set(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_sensor_attr_set() argument 611 shell_error(shell_ptr, "Sensor device unknown (%s)", argv[1]); in cmd_sensor_attr_set() 616 shell_error(shell_ptr, "Device is not a sensor (%s)", argv[1]); in cmd_sensor_attr_set() 629 shell_error(shell_ptr, "Channel '%s' unknown", argv[i]); in cmd_sensor_attr_set() 633 shell_error(shell_ptr, "Attribute '%s' unknown", argv[i + 1]); in cmd_sensor_attr_set() 637 shell_error(shell_ptr, "Sensor value '%s' invalid", argv[i + 2]); in cmd_sensor_attr_set() 643 shell_error(shell_ptr, "Failed to set channel(%s) attribute(%s): %d", in cmd_sensor_attr_set() 647 shell_info(shell_ptr, "%s channel=%s, attr=%s set to value=%s", dev->name, in cmd_sensor_attr_set() 653 static void cmd_sensor_attr_get_handler(const struct shell *shell_ptr, const struct device *dev, in cmd_sensor_attr_get_handler() argument 665 shell_error(shell_ptr, "Channel '%s' unknown", channel_name); in cmd_sensor_attr_get_handler() [all …]
|
D | sensor_shell.h | 22 int cmd_sensor_stream(const struct shell *shell_ptr, size_t argc, char *argv[]);
|