Lines Matching refs:argv

41 int cmd_sensor_stream(const struct shell *shell_ptr, size_t argc, char *argv[])  in cmd_sensor_stream()  argument
45 const struct device *dev = device_get_binding(argv[1]); in cmd_sensor_stream()
53 shell_error(shell_ptr, "Device unknown (%s)", argv[1]); in cmd_sensor_stream()
62 if (strcmp("off", argv[2]) == 0) { in cmd_sensor_stream()
66 if (strcmp("on", argv[2]) != 0) { in cmd_sensor_stream()
67 shell_error(shell_ptr, "Unknown streaming operation (%s)", argv[2]); in cmd_sensor_stream()
71 if (strcmp("double_tap", argv[3]) == 0) { in cmd_sensor_stream()
73 } else if (strcmp("data_ready", argv[3]) == 0) { in cmd_sensor_stream()
75 } else if (strcmp("delta", argv[3]) == 0) { in cmd_sensor_stream()
77 } else if (strcmp("freefall", argv[3]) == 0) { in cmd_sensor_stream()
79 } else if (strcmp("motion", argv[3]) == 0) { in cmd_sensor_stream()
81 } else if (strcmp("near_far", argv[3]) == 0) { in cmd_sensor_stream()
83 } else if (strcmp("stationary", argv[3]) == 0) { in cmd_sensor_stream()
85 } else if (strcmp("threshold", argv[3]) == 0) { in cmd_sensor_stream()
87 } else if (strcmp("fifo_wm", argv[3]) == 0) { in cmd_sensor_stream()
89 } else if (strcmp("fifo_full", argv[3]) == 0) { in cmd_sensor_stream()
91 } else if (strcmp("tap", argv[3]) == 0) { in cmd_sensor_stream()
94 shell_error(shell_ptr, "Invalid trigger (%s)", argv[3]); in cmd_sensor_stream()
98 if (strcmp("incl", argv[4]) == 0) { in cmd_sensor_stream()
100 } else if (strcmp("drop", argv[4]) == 0) { in cmd_sensor_stream()
102 } else if (strcmp("nop", argv[4]) == 0) { in cmd_sensor_stream()
105 shell_error(shell_ptr, "Unknown trigger op (%s)", argv[4]); in cmd_sensor_stream()