Home
last modified time | relevance | path

Searched refs:read_bytes (Results 1 – 12 of 12) sorted by relevance

/hal_espressif-3.6.0/examples/storage/semihost_vfs/main/
Dsemihost_vfs_example_main.c71 ssize_t read_bytes; in app_main() local
74 read_bytes = read(fd, s_buf, sizeof(s_buf)); in app_main()
75 if(read_bytes == -1) { in app_main()
77 } else if(read_bytes > 0) { in app_main()
78 fwrite(s_buf, 1, read_bytes, stdout); in app_main()
79 count += read_bytes; in app_main()
81 } while(read_bytes > 0); in app_main()
/hal_espressif-3.6.0/components/vfs/test/
Dtest_vfs_select.c182 int read_bytes = read(uart_fd, recv_message, sizeof(message));
183 TEST_ASSERT_EQUAL(read_bytes, sizeof(message));
199 read_bytes = read(uart_fd, recv_message, sizeof(message));
200 TEST_ASSERT_EQUAL(read_bytes, sizeof(message));
242 int read_bytes = read(uart_fd, recv_message, sizeof(message));
243 TEST_ASSERT_EQUAL(read_bytes, sizeof(message));
260 read_bytes = read(uart_fd, recv_message, sizeof(message));
261 TEST_ASSERT_EQUAL(read_bytes, sizeof(message));
303 int read_bytes = read(socket_fd, recv_message, sizeof(message));
304 TEST_ASSERT_EQUAL(read_bytes, sizeof(message));
[all …]
/hal_espressif-3.6.0/examples/protocols/http_server/restful_server/main/
Drest_server.c81 ssize_t read_bytes; in rest_common_get_handler() local
84 read_bytes = read(fd, chunk, SCRATCH_BUFSIZE); in rest_common_get_handler()
85 if (read_bytes == -1) { in rest_common_get_handler()
87 } else if (read_bytes > 0) { in rest_common_get_handler()
89 if (httpd_resp_send_chunk(req, chunk, read_bytes) != ESP_OK) { in rest_common_get_handler()
99 } while (read_bytes > 0); in rest_common_get_handler()
/hal_espressif-3.6.0/examples/system/select/main/
Dselect_example.c160 int read_bytes; in check_and_print() local
163 if ((read_bytes = read(fd, buf, sizeof(buf)-1)) > 0) { in check_and_print()
164 buf[read_bytes] = '\0'; in check_and_print()
165 ESP_LOGI(TAG, "%d bytes were received through %s: %s", read_bytes, src_msg, buf); in check_and_print()
/hal_espressif-3.6.0/components/esp_rom/include/esp32s3/rom/usb/
Dusb_dc.h310 const uint32_t max_data_len, uint32_t *const read_bytes);
346 uint32_t *read_bytes);
Dusb_device.h311 uint32_t *read_bytes);
/hal_espressif-3.6.0/components/esp_rom/include/esp32s2/rom/usb/
Dusb_dc.h310 const uint32_t max_data_len, uint32_t *const read_bytes);
346 uint32_t *read_bytes);
Dusb_device.h311 uint32_t *read_bytes);
/hal_espressif-3.6.0/components/esptool_py/esptool/esptool/
Dloader.py529 read_bytes = self._port.read(waiting)
531 b"boot:(0x[0-9a-fA-F]+)(.*waiting for download)?", read_bytes, re.DOTALL
1506 read_bytes = port.read(1 if waiting == 0 else waiting)
1507 if read_bytes == b"":
1520 trace_function("Read %d bytes: %s", len(read_bytes), HexFormatter(read_bytes))
1521 for b in read_bytes:
1527 trace_function("Read invalid data: %s", HexFormatter(read_bytes))
1533 detect_panic_handler(read_bytes + remaining_data)
1545 trace_function("Read invalid data: %s", HexFormatter(read_bytes))
1551 detect_panic_handler(read_bytes + remaining_data)
/hal_espressif-3.6.0/components/tinyusb/additions/src/
Dtusb_cdc_acm.c230 …rx_unread_to_buffer(esp_tusb_cdcacm_t *acm, uint8_t *out_buf, size_t req_bytes, size_t *read_bytes) in read_from_rx_unread_to_buffer() argument
232 uint8_t *buf = xRingbufferReceiveUpTo(acm->rx_unread_buf, read_bytes, 0, req_bytes); in read_from_rx_unread_to_buffer()
234 memcpy(out_buf, buf, *read_bytes); in read_from_rx_unread_to_buffer()
/hal_espressif-3.6.0/examples/protocols/smtp_client/main/
Dsmtp_client_example_main.c460 int read_bytes = MIN(((sizeof (base64_buffer) - 1) / 4) * 3, esp_logo_png_end - offset - 1); in smtp_client_task() local
462 &base64_len, (unsigned char *) offset, read_bytes); in smtp_client_task()
467 offset += read_bytes; in smtp_client_task()
/hal_espressif-3.6.0/components/console/linenoise/
Dlinenoise.c1050 size_t read_bytes = 0; in linenoiseProbe() local
1051 while (timeout_ms > 0 && read_bytes < 4) { // response is ESC[0n or ESC[3n in linenoiseProbe()
1059 read_bytes += cb; in linenoiseProbe()
1067 if (read_bytes < 4) { in linenoiseProbe()