Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 84) sorted by relevance

1234

/hal_espressif-3.4.0/examples/bluetooth/nimble/throughput_app/blecent_throughput/main/
Dscli.c37 static int conn_param_handler(int argc, char *argv[]) in conn_param_handler() argument
44 sscanf(argv[1], "%d", &conn_param[0]); in conn_param_handler()
45 sscanf(argv[2], "%d", &conn_param[1]); in conn_param_handler()
46 sscanf(argv[3], "%d", &conn_param[2]); in conn_param_handler()
47 sscanf(argv[4], "%d", &conn_param[3]); in conn_param_handler()
48 sscanf(argv[5], "%d", &conn_param[4]); in conn_param_handler()
49 sscanf(argv[6], "%d", &conn_param[5]); in conn_param_handler()
51 ESP_LOGI("You entered", "%s %d %d %d %d %d %d", argv[0], conn_param[0], conn_param[1], in conn_param_handler()
57 static int conn_mtu_handler(int argc, char *argv[]) in conn_mtu_handler() argument
64 sscanf(argv[1], "%d", &mtu); in conn_mtu_handler()
[all …]
/hal_espressif-3.4.0/components/mdns/
Dmdns_console.c62 static int cmd_mdns_query_a(int argc, char** argv) in cmd_mdns_query_a() argument
64 int nerrors = arg_parse(argc, argv, (void**) &mdns_query_a_args); in cmd_mdns_query_a()
66 arg_print_errors(stderr, mdns_query_a_args.end, argv[0]); in cmd_mdns_query_a()
120 static int cmd_mdns_query_aaaa(int argc, char** argv) in cmd_mdns_query_aaaa() argument
122 int nerrors = arg_parse(argc, argv, (void**) &mdns_query_a_args); in cmd_mdns_query_aaaa()
124 arg_print_errors(stderr, mdns_query_a_args.end, argv[0]); in cmd_mdns_query_aaaa()
186 static int cmd_mdns_query_srv(int argc, char** argv) in cmd_mdns_query_srv() argument
188 int nerrors = arg_parse(argc, argv, (void**) &mdns_query_srv_args); in cmd_mdns_query_srv()
190 arg_print_errors(stderr, mdns_query_srv_args.end, argv[0]); in cmd_mdns_query_srv()
247 static int cmd_mdns_query_txt(int argc, char** argv) in cmd_mdns_query_txt() argument
[all …]
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/
Dapp_hf_msg_set.c53 #define HF_CMD_HANDLER(cmd) static int hf_##cmd##_handler(int argn, char **argv)
112 if (sscanf(argv[1], "%d", &target) != 1 || in HF_CMD_HANDLER()
115 printf("Invalid argument for target %s\n", argv[1]); in HF_CMD_HANDLER()
118 if (sscanf(argv[2], "%d", &volume) != 1 || in HF_CMD_HANDLER()
120 printf("Invalid argument for volume %s\n", argv[2]); in HF_CMD_HANDLER()
138 if (sscanf(argv[1], "%d", &call_state) != 1 || in HF_CMD_HANDLER()
141 printf("Invalid argument for call state %s\n", argv[1]); in HF_CMD_HANDLER()
144 if (sscanf(argv[2], "%d", &call_setup_state) != 1 || in HF_CMD_HANDLER()
146 printf("Invalid argument for callsetup state %s\n", argv[2]); in HF_CMD_HANDLER()
149 if (sscanf(argv[3], "%d", &ntk_state) != 1 || in HF_CMD_HANDLER()
[all …]
Dapp_hf_msg_prs.c98 void hf_msg_split_args(char *start, char *end, char **argv, int *argn) in hf_msg_split_args() argument
104 memset(argv, 0, (*argn) * sizeof(void *)); in hf_msg_split_args()
118 argv[i] = p++; in hf_msg_split_args()
136 char *argv[HF_MSG_ARGS_MAX]; in hf_msg_args_parser() local
143 hf_msg_split_args(start, end, argv, &argn); in hf_msg_args_parser()
155 if (strcmp(argv[0], hdl->str) == 0) { in hf_msg_args_parser()
157 hdl->handler(argn, argv); in hf_msg_args_parser()
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/
Dble_mesh_console_system.c44 static int restart(int argc, char **argv) in restart() argument
63 static int free_mem(int argc, char **argv) in free_mem() argument
80 static int make(int argc, char **argv) in make() argument
135 if (strcmp(argv[i], "all") == 0) { in make()
137 } else if (strcmp(argv[i], "flash") == 0) { in make()
140 } else if (strcmp(argv[i], "monitor") == 0) { in make()
142 } else if (argv[i][0] == '-') { in make()
144 } else if (isdigit((int) argv[i][0])) { in make()
147 printf("make: *** No rule to make target `%s'. Stop.\n", argv[i]); in make()
Dble_mesh_register_cmd.c160 int ble_mesh_register_cb(int argc, char** argv) in ble_mesh_register_cb() argument
466 int ble_mesh_power_set(int argc, char **argv) in ble_mesh_power_set() argument
470 int nerrors = arg_parse(argc, argv, (void **) &power_set); in ble_mesh_power_set()
472 arg_print_errors(stderr, power_set.end, argv[0]); in ble_mesh_power_set()
508 static int ble_mesh_load_oob(int argc, char **argv) in ble_mesh_load_oob() argument
514 int nerrors = arg_parse(argc, argv, (void **) &oob); in ble_mesh_load_oob()
516 arg_print_errors(stderr, oob.end, argv[0]); in ble_mesh_load_oob()
561 int ble_mesh_init(int argc, char **argv) in ble_mesh_init() argument
567 int nerrors = arg_parse(argc, argv, (void **) &component); in ble_mesh_init()
569 arg_print_errors(stderr, component.end, argv[0]); in ble_mesh_init()
[all …]
Dble_mesh_reg_test_perf_client_cmd.c88 int ble_mesh_test_performance_client_model(int argc, char **argv) in ble_mesh_test_performance_client_model() argument
95 int nerrors = arg_parse(argc, argv, (void **) &test_perf_client_model); in ble_mesh_test_performance_client_model()
97 arg_print_errors(stderr, test_perf_client_model.end, argv[0]); in ble_mesh_test_performance_client_model()
138 int ble_mesh_test_performance_client_model_performance(int argc, char **argv) in ble_mesh_test_performance_client_model_performance() argument
143 int nerrors = arg_parse(argc, argv, (void **) &test_perf_client_model_statistics); in ble_mesh_test_performance_client_model_performance()
145 arg_print_errors(stderr, test_perf_client_model_statistics.end, argv[0]); in ble_mesh_test_performance_client_model_performance()
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/
Dapp_hf_msg_set.c54 #define HF_CMD_HANDLER(cmd) static int hf_##cmd##_handler(int argn, char **argv)
116 printf("Dial number %s\n", argv[1]); in HF_CMD_HANDLER()
117 esp_hf_client_dial(argv[1]); in HF_CMD_HANDLER()
136 if (sscanf(argv[1], "%d", &index) != 1) { in HF_CMD_HANDLER()
137 printf("Invalid argument %s\n", argv[1]); in HF_CMD_HANDLER()
168 if (sscanf(argv[1], "%d", &target) != 1 || in HF_CMD_HANDLER()
171 printf("Invalid argument for target %s\n", argv[1]); in HF_CMD_HANDLER()
175 if (sscanf(argv[2], "%d", &volume) != 1 || in HF_CMD_HANDLER()
177 printf("Invalid argument for volume %s\n", argv[2]); in HF_CMD_HANDLER()
215 if (sscanf(argv[1], "%d", &btrh) != 1) { in HF_CMD_HANDLER()
[all …]
Dapp_hf_msg_prs.c97 void hf_msg_split_args(char *start, char *end, char **argv, int *argn) in hf_msg_split_args() argument
103 memset(argv, 0, (*argn) * sizeof(void *)); in hf_msg_split_args()
117 argv[i] = p++; in hf_msg_split_args()
135 char *argv[HF_MSG_ARGS_MAX]; in hf_msg_args_parser() local
142 hf_msg_split_args(start, end, argv, &argn); in hf_msg_args_parser()
154 if (strcmp(argv[0], hdl->str) == 0) { in hf_msg_args_parser()
156 hdl->handler(argn, argv); in hf_msg_args_parser()
/hal_espressif-3.4.0/examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/
Dcmd_system.c53 static int get_version(int argc, char **argv) in get_version() argument
84 static int restart(int argc, char **argv) in restart() argument
103 static int free_mem(int argc, char **argv) in free_mem() argument
121 static int heap_size(int argc, char **argv) in heap_size() argument
143 static int tasks_info(int argc, char **argv) in tasks_info() argument
185 static int deep_sleep(int argc, char **argv) in deep_sleep() argument
187 int nerrors = arg_parse(argc, argv, (void **) &deep_sleep_args); in deep_sleep()
189 arg_print_errors(stderr, deep_sleep_args.end, argv[0]); in deep_sleep()
252 static int light_sleep(int argc, char **argv) in light_sleep() argument
254 int nerrors = arg_parse(argc, argv, (void **) &light_sleep_args); in light_sleep()
[all …]
/hal_espressif-3.4.0/examples/system/console/advanced/components/cmd_system/
Dcmd_system.c67 static int get_version(int argc, char **argv) in get_version() argument
98 static int restart(int argc, char **argv) in restart() argument
117 static int free_mem(int argc, char **argv) in free_mem() argument
135 static int heap_size(int argc, char **argv) in heap_size() argument
157 static int tasks_info(int argc, char **argv) in tasks_info() argument
201 static int deep_sleep(int argc, char **argv) in deep_sleep() argument
203 int nerrors = arg_parse(argc, argv, (void **) &deep_sleep_args); in deep_sleep()
205 arg_print_errors(stderr, deep_sleep_args.end, argv[0]); in deep_sleep()
284 static int light_sleep(int argc, char **argv) in light_sleep() argument
286 int nerrors = arg_parse(argc, argv, (void **) &light_sleep_args); in light_sleep()
[all …]
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/main/
Dcoex_cmd.c43 static int process_env_parameter_cmd(int argc, char **argv) in process_env_parameter_cmd() argument
45 int nerrors = arg_parse(argc, argv, (void **) &env_param_cmd_args); in process_env_parameter_cmd()
50 arg_print_errors(stderr, env_param_cmd_args.end, argv[0]); in process_env_parameter_cmd()
74 static int process_restart_cmd(int argc, char **argv) in process_restart_cmd() argument
82 static int process_run_tc_cmd(int argc, char **argv) in process_run_tc_cmd() argument
85 int nerrors = arg_parse(argc, argv, (void **) &tc_run_args); in process_run_tc_cmd()
87 arg_print_errors(stderr, tc_run_args.end, argv[0]); in process_run_tc_cmd()
108 static int process_get_mac_addr_cmd(int argc, char **argv) in process_get_mac_addr_cmd() argument
/hal_espressif-3.4.0/examples/system/console/advanced/components/cmd_nvs/
Dcmd_nvs.c395 static int set_value(int argc, char **argv) in set_value() argument
397 int nerrors = arg_parse(argc, argv, (void **) &set_args); in set_value()
399 arg_print_errors(stderr, set_args.end, argv[0]); in set_value()
417 static int get_value(int argc, char **argv) in get_value() argument
419 int nerrors = arg_parse(argc, argv, (void **) &get_args); in get_value()
421 arg_print_errors(stderr, get_args.end, argv[0]); in get_value()
438 static int erase_value(int argc, char **argv) in erase_value() argument
440 int nerrors = arg_parse(argc, argv, (void **) &erase_args); in erase_value()
442 arg_print_errors(stderr, erase_args.end, argv[0]); in erase_value()
458 static int erase_namespace(int argc, char **argv) in erase_namespace() argument
[all …]
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/
Dapp_spp_msg_prs.c94 void spp_msg_split_args(char *start, char *end, char **argv, int *argn) in spp_msg_split_args() argument
100 memset(argv, 0, (*argn) * sizeof(void *)); in spp_msg_split_args()
114 argv[i] = p++; in spp_msg_split_args()
132 char *argv[SPP_MSG_ARGS_MAX]; in spp_msg_args_parser() local
139 spp_msg_split_args(start, end, argv, &argn); in spp_msg_args_parser()
151 if (strcmp(argv[0], hdl->str) == 0) { in spp_msg_args_parser()
153 hdl->handler(argn, argv); in spp_msg_args_parser()
Dapp_spp_msg_set.c30 #define SPP_CMD_HANDLER(cmd) static void spp_##cmd##_handler(int argn, char **argv)
48 printf("Input Paring Key: %s\n", argv[1]); in SPP_CMD_HANDLER()
49 int passkey = atoi(argv[1]); in SPP_CMD_HANDLER()
/hal_espressif-3.4.0/components/console/
Dcommands.c190 char **argv = (char **) calloc(s_config.max_cmdline_args, sizeof(char *)); in esp_console_run() local
191 if (argv == NULL) { in esp_console_run()
196 size_t argc = esp_console_split_argv(s_tmp_line_buf, argv, in esp_console_run()
199 free(argv); in esp_console_run()
202 const cmd_item_t *cmd = find_command_by_name(argv[0]); in esp_console_run()
204 free(argv); in esp_console_run()
207 *cmd_ret = (*cmd->func)(argc, argv); in esp_console_run()
208 free(argv); in esp_console_run()
212 static int help_command(int argc, char **argv) in help_command() argument
Dsplit_argv.c29 argv[argc++] = next_arg_start; \
33 size_t esp_console_split_argv(char *line, char **argv, size_t argv_size) in esp_console_split_argv() argument
106 argv[argc++] = next_arg_start; in esp_console_split_argv()
109 argv[argc] = NULL; in esp_console_split_argv()
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_wifi_coexist/main/
Dcmd_wifi.c179 static int wifi_cmd_sta(int argc, char **argv) in wifi_cmd_sta() argument
181 int nerrors = arg_parse(argc, argv, (void **) &sta_args); in wifi_cmd_sta()
184 arg_print_errors(stderr, sta_args.end, argv[0]); in wifi_cmd_sta()
204 static int wifi_cmd_scan(int argc, char **argv) in wifi_cmd_scan() argument
206 int nerrors = arg_parse(argc, argv, (void **) &scan_args); in wifi_cmd_scan()
209 arg_print_errors(stderr, scan_args.end, argv[0]); in wifi_cmd_scan()
255 static int wifi_cmd_ap(int argc, char **argv) in wifi_cmd_ap() argument
257 int nerrors = arg_parse(argc, argv, (void **) &ap_args); in wifi_cmd_ap()
260 arg_print_errors(stderr, ap_args.end, argv[0]); in wifi_cmd_ap()
269 static int wifi_cmd_query(int argc, char **argv) in wifi_cmd_query() argument
[all …]
/hal_espressif-3.4.0/examples/peripherals/i2c/i2c_tools/main/
Dcmd_i2ctools.c72 static int do_i2cconfig_cmd(int argc, char **argv) in do_i2cconfig_cmd() argument
74 int nerrors = arg_parse(argc, argv, (void **)&i2cconfig_args); in do_i2cconfig_cmd()
76 arg_print_errors(stderr, i2cconfig_args.end, argv[0]); in do_i2cconfig_cmd()
114 static int do_i2cdetect_cmd(int argc, char **argv) in do_i2cdetect_cmd() argument
165 static int do_i2cget_cmd(int argc, char **argv) in do_i2cget_cmd() argument
167 int nerrors = arg_parse(argc, argv, (void **)&i2cget_args); in do_i2cget_cmd()
169 arg_print_errors(stderr, i2cget_args.end, argv[0]); in do_i2cget_cmd()
247 static int do_i2cset_cmd(int argc, char **argv) in do_i2cset_cmd() argument
249 int nerrors = arg_parse(argc, argv, (void **)&i2cset_args); in do_i2cset_cmd()
251 arg_print_errors(stderr, i2cset_args.end, argv[0]); in do_i2cset_cmd()
[all …]
/hal_espressif-3.4.0/components/unity/include/
Dunity_fixture_extras.h52 const char* argv[] = { "test", "-v" }; \
53 const int argc = sizeof(argv)/sizeof(argv[0]); \
54 int rc = UnityMain(argc, argv, func_); \
/hal_espressif-3.4.0/examples/wifi/iperf/main/
Dcmd_wifi.c188 static int wifi_cmd_sta(int argc, char **argv) in wifi_cmd_sta() argument
190 int nerrors = arg_parse(argc, argv, (void **) &sta_args); in wifi_cmd_sta()
193 arg_print_errors(stderr, sta_args.end, argv[0]); in wifi_cmd_sta()
213 static int wifi_cmd_scan(int argc, char **argv) in wifi_cmd_scan() argument
215 int nerrors = arg_parse(argc, argv, (void **) &scan_args); in wifi_cmd_scan()
218 arg_print_errors(stderr, scan_args.end, argv[0]); in wifi_cmd_scan()
264 static int wifi_cmd_ap(int argc, char **argv) in wifi_cmd_ap() argument
266 int nerrors = arg_parse(argc, argv, (void **) &ap_args); in wifi_cmd_ap()
269 arg_print_errors(stderr, ap_args.end, argv[0]); in wifi_cmd_ap()
278 static int wifi_cmd_query(int argc, char **argv) in wifi_cmd_query() argument
[all …]
/hal_espressif-3.4.0/examples/wifi/ftm/main/
Dftm_main.c243 static int wifi_cmd_sta(int argc, char **argv) in wifi_cmd_sta() argument
245 int nerrors = arg_parse(argc, argv, (void **) &sta_args); in wifi_cmd_sta()
248 arg_print_errors(stderr, sta_args.end, argv[0]); in wifi_cmd_sta()
295 static int wifi_cmd_scan(int argc, char **argv) in wifi_cmd_scan() argument
297 int nerrors = arg_parse(argc, argv, (void **) &scan_args); in wifi_cmd_scan()
300 arg_print_errors(stderr, scan_args.end, argv[0]); in wifi_cmd_scan()
335 static int wifi_cmd_ap(int argc, char** argv) in wifi_cmd_ap() argument
337 int nerrors = arg_parse(argc, argv, (void**) &ap_args); in wifi_cmd_ap()
340 arg_print_errors(stderr, ap_args.end, argv[0]); in wifi_cmd_ap()
352 static int wifi_cmd_query(int argc, char **argv) in wifi_cmd_query() argument
[all …]
/hal_espressif-3.4.0/examples/bluetooth/nimble/bleprph/main/
Dscli.c40 static int enter_passkey_handler(int argc, char *argv[]) in enter_passkey_handler() argument
50 sscanf(argv[1], "%s", pkey); in enter_passkey_handler()
51 ESP_LOGI("You entered", "%s %s", argv[0], argv[1]); in enter_passkey_handler()
/hal_espressif-3.4.0/components/protocomm/src/transports/
Dprotocomm_console.c135 static int common_cmd_handler(int argc, char** argv) in common_cmd_handler() argument
143 uint32_t cur_session_id = atoi(argv[1]); in common_cmd_handler()
145 uint8_t *buf = (uint8_t *) malloc(strlen(argv[2])); in common_cmd_handler()
152 ssize_t len = hex2bin(argv[2], buf); in common_cmd_handler()
163 ret = protocomm_req_handle(pc_console, argv[0], cur_session_id, buf, len, &outbuf, &outlen); in common_cmd_handler()
/hal_espressif-3.4.0/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/
Dcmd_mcpwm_motor.c19 #define MOTOR_CTRL_CMD_CHECK(ins) if(arg_parse(argc, argv, (void **)&ins)){ \
20 arg_print_errors(stderr, ins.end, argv[0]); \
77 static int do_motor_ctrl_config_cmd(int argc, char **argv) in do_motor_ctrl_config_cmd() argument
105 static int do_motor_ctrl_expt_cmd(int argc, char **argv) in do_motor_ctrl_expt_cmd() argument
144 static int do_motor_ctrl_pid_cmd(int argc, char **argv) in do_motor_ctrl_pid_cmd() argument
179 static int do_motor_ctrl_motor_cmd(int argc, char **argv) in do_motor_ctrl_motor_cmd() argument

1234