Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 242) sorted by relevance

12345678910

/hal_espressif-3.6.0/components/esp_gdbstub/src/
Dgdbstub.c35 static int handle_task_commands(unsigned char *cmd, int len);
77 unsigned char *cmd; in esp_gdbstub_panic_handler() local
79 int res = esp_gdbstub_read_command(&cmd, &size); in esp_gdbstub_panic_handler()
88 res = esp_gdbstub_handle_command(cmd, size); in esp_gdbstub_panic_handler()
203 unsigned char *cmd; in gdbstub_handle_uart_int() local
206 int res = esp_gdbstub_read_command(&cmd, &size); in gdbstub_handle_uart_int()
219 res = esp_gdbstub_handle_command(cmd, size); in gdbstub_handle_uart_int()
258 static void handle_g_command(const unsigned char *cmd, int len) in handle_g_command() argument
269 static void handle_G_command(const unsigned char *cmd, int len) in handle_G_command() argument
273 *p++ = gdbstub_hton(esp_gdbstub_gethex(&cmd, 32)); in handle_G_command()
[all …]
/hal_espressif-3.6.0/components/sdmmc/
Dsdmmc_cmd.c12 esp_err_t sdmmc_send_cmd(sdmmc_card_t* card, sdmmc_command_t* cmd) in sdmmc_send_cmd() argument
15 cmd->timeout_ms = card->host.command_timeout_ms; in sdmmc_send_cmd()
16 } else if (cmd->timeout_ms == 0) { in sdmmc_send_cmd()
17 cmd->timeout_ms = SDMMC_DEFAULT_CMD_TIMEOUT_MS; in sdmmc_send_cmd()
22 … slot, cmd->opcode, cmd->arg, cmd->flags, cmd->data, cmd->blklen, cmd->datalen, cmd->timeout_ms); in sdmmc_send_cmd()
23 esp_err_t err = (*card->host.do_transaction)(slot, cmd); in sdmmc_send_cmd()
25 ESP_LOGD(TAG, "cmd=%d, sdmmc_req_run returned 0x%x", cmd->opcode, err); in sdmmc_send_cmd()
28 int state = MMC_R1_CURRENT_STATE(cmd->response); in sdmmc_send_cmd()
30 cmd->response[0], in sdmmc_send_cmd()
31 cmd->response[1], in sdmmc_send_cmd()
[all …]
/hal_espressif-3.6.0/components/esp_hid/src/
Desp_hid_common.c32 uint8_t cmd; member
208 hid_report_cmd_t *cmd = (hid_report_cmd_t *)malloc(sizeof(hid_report_cmd_t)); in parse_cmd() local
209 if (cmd == NULL) { in parse_cmd()
213 cmd->cmd = *dp & 0xFC; in parse_cmd()
214 cmd->len = *dp & 0x03; in parse_cmd()
215 cmd->value = 0; in parse_cmd()
216 if (cmd->len == 3) { in parse_cmd()
217 cmd->len = 4; in parse_cmd()
219 if ((len - index - 1) < cmd->len) { in parse_cmd()
220 … ESP_LOGE(TAG, "not enough bytes! cmd: 0x%02x, len: %u, index: %u", cmd->cmd, cmd->len, index); in parse_cmd()
[all …]
/hal_espressif-3.6.0/components/driver/
Dsdmmc_transaction.c68 static sdmmc_hw_cmd_t make_hw_cmd(sdmmc_command_t* cmd);
69 static esp_err_t handle_event(sdmmc_command_t* cmd, sdmmc_req_state_t* state,
71 static esp_err_t process_events(sdmmc_event_t evt, sdmmc_command_t* cmd,
73 static void process_command_response(uint32_t status, sdmmc_command_t* cmd);
251 static esp_err_t handle_event(sdmmc_command_t* cmd, sdmmc_req_state_t* state, in handle_event() argument
255 esp_err_t err = sdmmc_host_wait_for_event(cmd->timeout_ms / portTICK_PERIOD_MS, &event); in handle_event()
268 process_events(event, cmd, state, unhandled_events); in handle_event()
273 static bool cmd_needs_auto_stop(const sdmmc_command_t* cmd) in cmd_needs_auto_stop() argument
276 return cmd->datalen > 0 && in cmd_needs_auto_stop()
277 (cmd->opcode == MMC_WRITE_BLOCK_MULTIPLE || in cmd_needs_auto_stop()
[all …]
Dsdspi_transaction.c44 static void r1_response_to_err(uint8_t r1, int cmd, esp_err_t *out_err) in r1_response_to_err() argument
47 ESP_LOGD(TAG, "cmd=%d, R1 response not found", cmd); in r1_response_to_err()
50 ESP_LOGD(TAG, "cmd=%d, R1 response: command CRC error", cmd); in r1_response_to_err()
53 ESP_LOGD(TAG, "cmd=%d, R1 response: command not supported", cmd); in r1_response_to_err()
56 ESP_LOGD(TAG, "cmd=%d, R1 response: alignment error", cmd); in r1_response_to_err()
59 ESP_LOGD(TAG, "cmd=%d, R1 response: size error", cmd); in r1_response_to_err()
67 ESP_LOGD(TAG, "cmd=%d, R1 response: unexpected value 0x%02x", cmd, r1); in r1_response_to_err()
72 static void r1_sdio_response_to_err(uint8_t r1, int cmd, esp_err_t *out_err) in r1_sdio_response_to_err() argument
75 ESP_LOGI(TAG, "cmd=%d, R1 response not found", cmd); in r1_sdio_response_to_err()
78 ESP_LOGI(TAG, "cmd=%d, R1 response: command CRC error", cmd); in r1_sdio_response_to_err()
[all …]
Dsdspi_host.c68 static esp_err_t start_command_read_blocks(slot_info_t *slot, sdspi_hw_cmd_t *cmd,
71 static esp_err_t start_command_write_blocks(slot_info_t *slot, sdspi_hw_cmd_t *cmd,
74 static esp_err_t start_command_default(slot_info_t *slot, int flags, sdspi_hw_cmd_t *cmd);
76 static esp_err_t shift_cmd_response(sdspi_hw_cmd_t *cmd, int sent_bytes);
420 esp_err_t sdspi_host_start_command(sdspi_dev_handle_t handle, sdspi_hw_cmd_t *cmd, void *data, in sdspi_host_start_command() argument
431 int cmd_index = cmd->cmd_index; in sdspi_host_start_command()
433 memcpy(&cmd_arg, cmd->arguments, sizeof(cmd_arg)); in sdspi_host_start_command()
436 __func__, handle, cmd_index, cmd_arg, flags, data, data_size, cmd->crc7); in sdspi_host_start_command()
454 … ret = start_command_write_blocks(slot, cmd, data, data_size, multi_block, stop_transmission); in sdspi_host_start_command()
456 ret = start_command_read_blocks(slot, cmd, data, data_size, stop_transmission); in sdspi_host_start_command()
[all …]
Di2c.c109 i2c_cmd_t cmd; /*!< command in current cmd link */ member
1049 i2c_cmd_desc_t *cmd = (i2c_cmd_desc_t *) cmd_handle; in i2c_cmd_link_delete_static() local
1050 if (cmd == NULL || !i2c_cmd_link_is_static(cmd)) { in i2c_cmd_link_delete_static()
1059 i2c_cmd_desc_t *cmd = (i2c_cmd_desc_t *) cmd_handle; in i2c_cmd_link_delete() local
1064 if (cmd == NULL || i2c_cmd_link_is_static(cmd)) { in i2c_cmd_link_delete()
1068 while (cmd->free) { in i2c_cmd_link_delete()
1069 i2c_cmd_link_t *ptmp = cmd->free; in i2c_cmd_link_delete()
1070 cmd->free = cmd->free->next; in i2c_cmd_link_delete()
1073 cmd->cur = NULL; in i2c_cmd_link_delete()
1074 cmd->free = NULL; in i2c_cmd_link_delete()
[all …]
/hal_espressif-3.6.0/examples/peripherals/i2c/i2c_self_test/main/
Di2c_example_main.c68 i2c_cmd_handle_t cmd = i2c_cmd_link_create(); in i2c_master_read_slave() local
69 i2c_master_start(cmd); in i2c_master_read_slave()
70 i2c_master_write_byte(cmd, (ESP_SLAVE_ADDR << 1) | READ_BIT, ACK_CHECK_EN); in i2c_master_read_slave()
72 i2c_master_read(cmd, data_rd, size - 1, ACK_VAL); in i2c_master_read_slave()
74 i2c_master_read_byte(cmd, data_rd + size - 1, NACK_VAL); in i2c_master_read_slave()
75 i2c_master_stop(cmd); in i2c_master_read_slave()
76 esp_err_t ret = i2c_master_cmd_begin(i2c_num, cmd, 1000 / portTICK_RATE_MS); in i2c_master_read_slave()
77 i2c_cmd_link_delete(cmd); in i2c_master_read_slave()
95 i2c_cmd_handle_t cmd = i2c_cmd_link_create(); in i2c_master_write_slave() local
96 i2c_master_start(cmd); in i2c_master_write_slave()
[all …]
/hal_espressif-3.6.0/examples/peripherals/i2c/i2c_tools/main/
Dcmd_i2ctools.c125 i2c_cmd_handle_t cmd = i2c_cmd_link_create(); in do_i2cdetect_cmd() local
126 i2c_master_start(cmd); in do_i2cdetect_cmd()
127 i2c_master_write_byte(cmd, (address << 1) | WRITE_BIT, ACK_CHECK_EN); in do_i2cdetect_cmd()
128 i2c_master_stop(cmd); in do_i2cdetect_cmd()
129 esp_err_t ret = i2c_master_cmd_begin(i2c_port, cmd, 50 / portTICK_RATE_MS); in do_i2cdetect_cmd()
130 i2c_cmd_link_delete(cmd); in do_i2cdetect_cmd()
189 i2c_cmd_handle_t cmd = i2c_cmd_link_create(); in do_i2cget_cmd() local
190 i2c_master_start(cmd); in do_i2cget_cmd()
192 i2c_master_write_byte(cmd, chip_addr << 1 | WRITE_BIT, ACK_CHECK_EN); in do_i2cget_cmd()
193 i2c_master_write_byte(cmd, data_addr, ACK_CHECK_EN); in do_i2cget_cmd()
[all …]
/hal_espressif-3.6.0/components/spi_flash/esp32s3/
Dopi_flash_cmd_format_mxic.h13 .cmd = 0x609f, \
24 .cmd = 0xfa05, \
35 .cmd = 0xf906, \
46 .cmd = 0xde21, \
57 .cmd = 0x23dc, \
68 .cmd = 0x13ec, \
79 .cmd = 0xed12, \
90 .cmd = 0x13ec, \
101 .cmd = 0x609f, \
112 .cmd = 0xfa05, \
[all …]
/hal_espressif-3.6.0/components/console/
Dcommands.c85 esp_err_t esp_console_cmd_register(const esp_console_cmd_t *cmd) in esp_console_cmd_register() argument
88 if (!cmd || cmd->command == NULL) { in esp_console_cmd_register()
91 if (strchr(cmd->command, ' ') != NULL) { in esp_console_cmd_register()
94 item = (cmd_item_t *)find_command_by_name(cmd->command); in esp_console_cmd_register()
106 item->command = cmd->command; in esp_console_cmd_register()
107 item->help = cmd->help; in esp_console_cmd_register()
108 if (cmd->hint) { in esp_console_cmd_register()
113 unused = asprintf(&item->hint, " %s", cmd->hint); in esp_console_cmd_register()
114 } else if (cmd->argtable) { in esp_console_cmd_register()
120 arg_print_syntax(f, cmd->argtable, NULL); in esp_console_cmd_register()
[all …]
/hal_espressif-3.6.0/tools/esp_prov/prov/
Dwifi_scan.py32 cmd = proto.wifi_scan_pb2.WiFiScanPayload()
33 cmd.msg = proto.wifi_scan_pb2.TypeCmdScanStart
34 cmd.cmd_scan_start.blocking = blocking
35 cmd.cmd_scan_start.passive = passive
36 cmd.cmd_scan_start.group_channels = group_channels
37 cmd.cmd_scan_start.period_ms = period_ms
38 enc_cmd = security_ctx.encrypt_data(cmd.SerializeToString()).decode('latin-1')
55 cmd = proto.wifi_scan_pb2.WiFiScanPayload()
56 cmd.msg = proto.wifi_scan_pb2.TypeCmdScanStatus
57 enc_cmd = security_ctx.encrypt_data(cmd.SerializeToString()).decode('latin-1')
[all …]
Dwifi_prov.py70 cmd = proto.wifi_config_pb2.WiFiConfigPayload()
71 cmd.msg = proto.wifi_config_pb2.TypeCmdSetConfig
72 cmd.cmd_set_config.ssid = tobytes(ssid)
73 cmd.cmd_set_config.passphrase = tobytes(passphrase)
74 enc_cmd = security_ctx.encrypt_data(cmd.SerializeToString()).decode('latin-1')
90 cmd = proto.wifi_config_pb2.WiFiConfigPayload()
91 cmd.msg = proto.wifi_config_pb2.TypeCmdApplyConfig
92 enc_cmd = security_ctx.encrypt_data(cmd.SerializeToString()).decode('latin-1')
/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/smp/
Dsmp_l2c.c160 UINT8 cmd ; in smp_data_received() local
163 STREAM_TO_UINT8(cmd, p); in smp_data_received()
166 if ((SMP_OPCODE_MAX < cmd) || (SMP_OPCODE_MIN > cmd)) { in smp_data_received()
167 SMP_TRACE_WARNING( "Ignore received command with RESERVED code 0x%02x\n", cmd); in smp_data_received()
173 if (SMP_OPCODE_PAIRING_REQ == cmd || SMP_OPCODE_SEC_REQ == cmd) { in smp_data_received()
191 if (cmd == SMP_OPCODE_CONFIRM) { in smp_data_received()
194 __FUNCTION__, cmd, p_cb->peer_auth_req, p_cb->loc_auth_req); in smp_data_received()
198 cmd = SMP_OPCODE_PAIR_COMMITM; in smp_data_received()
202 p_cb->rcvd_cmd_code = cmd; in smp_data_received()
204 smp_sm_event(p_cb, cmd, p); in smp_data_received()
[all …]
/hal_espressif-3.6.0/components/driver/test/
Dtest_i2c.c85 i2c_cmd_handle_t cmd = i2c_cmd_link_create(); in i2c_master_write_slave() local
86 i2c_master_start(cmd); in i2c_master_write_slave()
87 TEST_ESP_OK(i2c_master_write_byte(cmd, ( ESP_SLAVE_ADDR << 1 ) | WRITE_BIT, ACK_CHECK_EN)); in i2c_master_write_slave()
88 TEST_ESP_OK(i2c_master_write(cmd, data_wr, size, ACK_CHECK_EN)); in i2c_master_write_slave()
89 TEST_ESP_OK(i2c_master_stop(cmd)); in i2c_master_write_slave()
90 esp_err_t ret = i2c_master_cmd_begin(i2c_num, cmd, 5000 / portTICK_RATE_MS); in i2c_master_write_slave()
91 i2c_cmd_link_delete(cmd); in i2c_master_write_slave()
361 i2c_cmd_handle_t cmd = i2c_cmd_link_create(); in master_read_slave_test() local
362 i2c_master_start(cmd); in master_read_slave_test()
363 i2c_master_write_byte(cmd, ( ESP_SLAVE_ADDR << 1 ) | READ_BIT, ACK_CHECK_EN); in master_read_slave_test()
[all …]
Dtest_rmt.c279 uint32_t cmd = 0x20; in do_nec_tx_rx() local
295 cmd = 0x20; in do_nec_tx_rx()
296 while (cmd <= 0x30) { in do_nec_tx_rx()
297 ESP_LOGI(TAG, "Send command 0x%x to address 0x%x", cmd, addr); in do_nec_tx_rx()
299 TEST_ESP_OK(s_ir_builder->build_frame(s_ir_builder, addr, cmd)); in do_nec_tx_rx()
301 if (cmd & 0x01) { in do_nec_tx_rx()
307 cmd++; in do_nec_tx_rx()
316 if (s_ir_parser->get_scan_code(s_ir_parser, &addr, &cmd, &repeat) == ESP_OK) { in do_nec_tx_rx()
317 … ESP_LOGI(TAG, "Scan Code %s --- addr: 0x%04x cmd: 0x%04x", repeat ? "(repeat)" : "", addr, cmd); in do_nec_tx_rx()
327 TEST_ASSERT_EQUAL(0x30, cmd); in do_nec_tx_rx()
[all …]
/hal_espressif-3.6.0/examples/bluetooth/nimble/throughput_app/blecent_throughput/components/cmd_system/
Dcmd_system.c73 const esp_console_cmd_t cmd = { in register_version() local
79 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_version()
92 const esp_console_cmd_t cmd = { in register_restart() local
98 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_restart()
111 const esp_console_cmd_t cmd = { in register_free() local
117 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_free()
164 const esp_console_cmd_t cmd = { in register_tasks() local
170 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_tasks()
231 const esp_console_cmd_t cmd = { in register_deep_sleep() local
240 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_deep_sleep()
[all …]
/hal_espressif-3.6.0/examples/system/console/advanced/components/cmd_system/
Dcmd_system.c87 const esp_console_cmd_t cmd = { in register_version() local
93 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_version()
106 const esp_console_cmd_t cmd = { in register_restart() local
112 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_restart()
125 const esp_console_cmd_t cmd = { in register_free() local
131 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_free()
178 const esp_console_cmd_t cmd = { in register_tasks() local
184 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_tasks()
259 const esp_console_cmd_t cmd = { in register_deep_sleep() local
272 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_deep_sleep()
[all …]
/hal_espressif-3.6.0/examples/peripherals/spi_master/lcd/main/
Dspi_master_example_main.c74 uint8_t cmd; member
187 void lcd_cmd(spi_device_handle_t spi, const uint8_t cmd) in lcd_cmd() argument
193 t.tx_buffer=&cmd; //The data is the cmd itself in lcd_cmd()
247 int cmd=0; in lcd_init() local
295 while (lcd_init_cmds[cmd].databytes!=0xff) { in lcd_init()
296 lcd_cmd(spi, lcd_init_cmds[cmd].cmd); in lcd_init()
297 lcd_data(spi, lcd_init_cmds[cmd].data, lcd_init_cmds[cmd].databytes&0x1F); in lcd_init()
298 if (lcd_init_cmds[cmd].databytes&0x80) { in lcd_init()
301 cmd++; in lcd_init()
/hal_espressif-3.6.0/tools/idf_monitor_base/
Dserial_handler.py144 def handle_commands(self, cmd, chip, run_make_func, console_reader, serial_reader): argument
155 if cmd in [CMD_RESET,
162 if cmd == CMD_STOP:
165 elif cmd == CMD_RESET:
172 elif cmd == CMD_MAKE:
174 elif cmd == CMD_APP_FLASH:
176 elif cmd == CMD_OUTPUT_TOGGLE:
178 elif cmd == CMD_TOGGLE_LOGGING:
180 elif cmd == CMD_TOGGLE_TIMESTAMPS:
182 elif cmd == CMD_ENTER_BOOT:
[all …]
/hal_espressif-3.6.0/tools/find_build_apps/
Dmake.py44 for cmd in commands:
45 cmd = shlex.split(cmd) if isinstance(cmd, string_type) else cmd
47 subprocess.check_call(cmd, stdout=build_stdout, stderr=build_stderr, cwd=work_path)
/hal_espressif-3.6.0/examples/peripherals/rmt/ir_protocols/main/
Dir_protocols_main.c30 uint32_t cmd = 0; in example_ir_rx_task() local
58 if (ir_parser->get_scan_code(ir_parser, &addr, &cmd, &repeat) == ESP_OK) { in example_ir_rx_task()
59 … ESP_LOGI(TAG, "Scan Code %s --- addr: 0x%04x cmd: 0x%04x", repeat ? "(repeat)" : "", addr, cmd); in example_ir_rx_task()
78 uint32_t cmd = 0x20; in example_ir_tx_task() local
96 ESP_LOGI(TAG, "Send command 0x%x to address 0x%x", cmd, addr); in example_ir_tx_task()
98 ESP_ERROR_CHECK(ir_builder->build_frame(ir_builder, addr, cmd)); in example_ir_tx_task()
107 cmd++; in example_ir_tx_task()
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/
Dble_mesh_console_system.c52 const esp_console_cmd_t cmd = { in register_restart() local
58 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_restart()
71 const esp_console_cmd_t cmd = { in register_free() local
77 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_free()
174 const esp_console_cmd_t cmd = { in register_make() local
180 ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) ); in register_make()
/hal_espressif-3.6.0/components/console/test/
Dtest_console.c26 const esp_console_cmd_t cmd = { variable
32 TEST_ESP_OK(esp_console_cmd_register(&cmd));
34 TEST_ESP_OK(esp_console_cmd_register(&cmd));
55 esp_console_cmd_t cmd = { variable
60 TEST_ESP_OK(esp_console_cmd_register(&cmd));
/hal_espressif-3.6.0/components/esptool_py/esptool/flasher_stub/include/
Drom_functions.h219 .cmd = CMD_RDID, \
230 .cmd = CMD_RDSR, \
241 .cmd = CMD_WREN, \
252 .cmd = CMD_SECTOR_ERASE_4B, \
263 .cmd = CMD_LARGE_BLOCK_ERASE_4B, \
274 .cmd = CMD_FSTRD4B, \
285 .cmd = CMD_PROGRAM_PAGE_4B, \
296 .cmd = CMD_FSTRD4B, \
306 uint16_t cmd; member
318 uint16_t cmd; member
[all …]

12345678910