Searched refs:args_indx (Results 1 – 4 of 4) sorted by relevance
/Zephyr-Core-2.7.6/drivers/pwm/ |
D | pwm_shell.c | 24 static const struct args_index args_indx = { variable 41 dev = device_get_binding(argv[args_indx.device]); in cmd_cycles() 47 pwm = strtoul(argv[args_indx.pwm], 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 = device_get_binding(argv[args_indx.device]); in cmd_usec() 80 pwm = strtoul(argv[args_indx.pwm], NULL, 0); in cmd_usec() 81 period = strtoul(argv[args_indx.period], NULL, 0); in cmd_usec() [all …]
|
/Zephyr-Core-2.7.6/drivers/gpio/ |
D | gpio_shell.c | 35 static const struct args_index args_indx = { variable 56 isdigit((unsigned char)argv[args_indx.index][0]) && in cmd_gpio_conf() 57 isalpha((unsigned char)argv[args_indx.mode][0])) { in cmd_gpio_conf() 58 index = (uint8_t)atoi(argv[args_indx.index]); in cmd_gpio_conf() 59 if (!strcmp(argv[args_indx.mode], "in")) { in cmd_gpio_conf() 61 } else if (!strcmp(argv[args_indx.mode], "out")) { in cmd_gpio_conf() 71 dev = device_get_binding(argv[args_indx.port]); in cmd_gpio_conf() 74 index = (uint8_t)atoi(argv[args_indx.index]); in cmd_gpio_conf() 76 argv[args_indx.port], index); in cmd_gpio_conf() 90 if (argc == args_no.get && isdigit((unsigned char)argv[args_indx.index][0])) { in cmd_gpio_get() [all …]
|
/Zephyr-Core-2.7.6/drivers/dac/ |
D | dac_shell.c | 23 static const struct args_index args_indx = { variable 36 dac = device_get_binding(argv[args_indx.device]); in cmd_setup() 42 cfg.channel_id = strtoul(argv[args_indx.channel], NULL, 0); in cmd_setup() 43 cfg.resolution = strtoul(argv[args_indx.resolution], NULL, 0); in cmd_setup() 61 dac = device_get_binding(argv[args_indx.device]); in cmd_write_value() 67 channel = strtoul(argv[args_indx.channel], NULL, 0); in cmd_write_value() 68 value = strtoul(argv[args_indx.value], NULL, 0); in cmd_write_value()
|
/Zephyr-Core-2.7.6/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 = 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 = device_get_binding(argv[args_indx.device]); in cmd_write() 137 eeprom = device_get_binding(argv[args_indx.device]); in cmd_size() 160 initial_offset = strtoul(argv[args_indx.offset], NULL, 0); in cmd_fill() [all …]
|