Lines Matching refs:shell_ptr

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()
669 shell_error(shell_ptr, "Attribute '%s' unknown", attr_name); in cmd_sensor_attr_get_handler()
679 shell_error(shell_ptr, "Failed to get channel(%s) attribute(%s): %d", in cmd_sensor_attr_get_handler()
684 shell_info(shell_ptr, "%s(channel=%s, attr=%s) value=%.6f", dev->name, in cmd_sensor_attr_get_handler()
689 static int cmd_sensor_attr_get(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_sensor_attr_get() argument
695 shell_error(shell_ptr, "Sensor device unknown (%s)", argv[1]); in cmd_sensor_attr_get()
700 shell_error(shell_ptr, "Device is not a sensor (%s)", argv[1]); in cmd_sensor_attr_get()
707 cmd_sensor_attr_get_handler(shell_ptr, dev, argv[i], argv[i + 1], in cmd_sensor_attr_get()
715 cmd_sensor_attr_get_handler(shell_ptr, dev, in cmd_sensor_attr_get()