Searched refs:args_indx (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/drivers/pwm/ |
D | pwm_shell.c | 24 static const struct args_index args_indx = { variable 41 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_cycles() 47 channel = strtoul(argv[args_indx.channel], NULL, 0); in cmd_cycles() 48 period = strtoul(argv[args_indx.period], NULL, 0); in cmd_cycles() 49 pulse = strtoul(argv[args_indx.pulse], NULL, 0); in cmd_cycles() 51 if (argc == (args_indx.flags + 1)) { in cmd_cycles() 52 flags = strtoul(argv[args_indx.flags], NULL, 0); in cmd_cycles() 74 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_usec() 80 channel = strtoul(argv[args_indx.channel], NULL, 0); in cmd_usec() 81 period = strtoul(argv[args_indx.period], NULL, 0); in cmd_usec() [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_shell.c | 41 static const struct args_index args_indx = { variable 75 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_setup() 88 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_disable() 106 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_timeout() 112 flags = parse_named_int(argv[args_indx.reset], wdt_reset_name, ARRAY_SIZE(wdt_reset_name)); in cmd_timeout() 114 shell_error(sh, "Reset mode '%s' unknown", argv[args_indx.reset]); in cmd_timeout() 118 timeout_min = parse_named_int(argv[args_indx.timeout_min], NULL, 0); in cmd_timeout() 120 shell_error(sh, "Unable to convert '%s' to integer", argv[args_indx.timeout_min]); in cmd_timeout() 124 timeout_max = parse_named_int(argv[args_indx.timeout_max], NULL, 0); in cmd_timeout() 126 shell_error(sh, "Unable to convert '%s' to integer", argv[args_indx.timeout_max]); in cmd_timeout() [all …]
|
/Zephyr-latest/drivers/dac/ |
D | dac_shell.c | 24 static const struct args_index args_indx = { variable 39 dac = shell_device_get_binding(argv[args_indx.device]); in cmd_setup() 45 cfg.channel_id = strtoul(argv[args_indx.channel], NULL, 0); in cmd_setup() 46 cfg.resolution = strtoul(argv[args_indx.resolution], NULL, 0); in cmd_setup() 48 argidx = args_indx.options; in cmd_setup() 79 dac = shell_device_get_binding(argv[args_indx.device]); in cmd_write_value() 85 channel = strtoul(argv[args_indx.channel], NULL, 0); in cmd_write_value() 86 value = strtoul(argv[args_indx.value], NULL, 0); in cmd_write_value()
|
/Zephyr-latest/drivers/audio/ |
D | codec_shell.c | 52 static const struct args_index args_indx = { variable 84 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_start() 98 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_stop() 117 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_set_prop() 123 property = parse_named_int(argv[args_indx.property], codec_property_name, in cmd_set_prop() 126 shell_error(sh, "Property '%s' unknown", argv[args_indx.property]); in cmd_set_prop() 130 channel = parse_named_int(argv[args_indx.channel], codec_channel_name, in cmd_set_prop() 133 shell_error(sh, "Channel '%s' unknown", argv[args_indx.channel]); in cmd_set_prop() 137 value = strtol(argv[args_indx.value], &endptr, 0); in cmd_set_prop() 162 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_apply_prop()
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_shell.c | 25 static const struct args_index args_indx = { variable 42 addr = strtoul(argv[args_indx.offset], NULL, 0); in cmd_read() 43 len = strtoul(argv[args_indx.length], NULL, 0); in cmd_read() 45 eeprom = shell_device_get_binding(argv[args_indx.device]); in cmd_read() 83 offset = strtoul(argv[args_indx.offset], NULL, 0); in cmd_write() 84 len = argc - args_indx.data; in cmd_write() 93 byte = strtoul(argv[args_indx.data + i], NULL, 0); in cmd_write() 101 eeprom = shell_device_get_binding(argv[args_indx.device]); in cmd_write() 137 eeprom = shell_device_get_binding(argv[args_indx.device]); in cmd_size() 160 initial_offset = strtoul(argv[args_indx.offset], NULL, 0); in cmd_fill() [all …]
|