Home
last modified time | relevance | path

Searched refs:data_read (Results 1 – 9 of 9) sorted by relevance

/hal_espressif-2.7.6/components/esp_https_ota/src/
Desp_https_ota.c89 … int data_read = esp_http_client_read(http_client, upgrade_data_buf, DEFAULT_OTA_BUF_SIZE); in _http_handle_response_code() local
90 if (data_read <= 0) { in _http_handle_response_code()
241 int data_read = 0, bytes_read = 0; in esp_https_ota_get_img_desc() local
247 data_read = esp_http_client_read(handle->http_client, in esp_https_ota_get_img_desc()
254 if (errno == ENOTCONN || errno == ECONNRESET || errno == ECONNABORTED || data_read < 0) { in esp_https_ota_get_img_desc()
258 data_read_size -= data_read; in esp_https_ota_get_img_desc()
259 bytes_read += data_read; in esp_https_ota_get_img_desc()
283 int data_read; in esp_https_ota_perform() local
301 data_read = esp_http_client_read(handle->http_client, in esp_https_ota_perform()
304 if (data_read == 0) { in esp_https_ota_perform()
[all …]
/hal_espressif-2.7.6/examples/system/ota/native_ota_example/main/
Dnative_ota_example.c143 int data_read = esp_http_client_read(client, ota_write_data, BUFFSIZE); in ota_example_task() local
144 if (data_read < 0) { in ota_example_task()
148 } else if (data_read > 0) { in ota_example_task()
151 …if (data_read > sizeof(esp_image_header_t) + sizeof(esp_image_segment_header_t) + sizeof(esp_app_d… in ota_example_task()
202 err = esp_ota_write( update_handle, (const void *)ota_write_data, data_read); in ota_example_task()
208 binary_file_length += data_read; in ota_example_task()
210 } else if (data_read == 0) { in ota_example_task()
/hal_espressif-2.7.6/components/spi_flash/test/
Dtest_spi_flash.c266 static uint32_t measure_read(const char* name, const esp_partition_t* part, uint8_t* data_read, int… in measure_read() argument
278 esp_err_t err = spi_flash_read(part->address + offset, data_read + offset, len_read); in measure_read()
289 #define MEAS_READ(n) (measure_read("read in "#n"-byte chunks", part, data_read, n))
297 uint8_t *data_read = heap_caps_malloc(total_len, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT); variable
311 TEST_ASSERT_EQUAL_HEX8_ARRAY(data_to_write, data_read, total_len);
332 free(data_read);
Dtest_esp_flash.c1025 static uint32_t measure_read(const char* name, const esp_partition_t* part, uint8_t* data_read, int… in measure_read() argument
1037 …esp_err_t err = esp_flash_read(part->flash_chip, data_read + offset, part->address + offset, len_r… in measure_read()
1048 #define MEAS_READ(n) (measure_read("read in "#n"-byte chunks", part, data_read, n))
1055 uint8_t *data_read = heap_caps_malloc(total_len, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT); in test_flash_read_write_performance() local
1069 TEST_ASSERT_EQUAL_HEX8_ARRAY(data_to_write, data_read, total_len); in test_flash_read_write_performance()
1104 free(data_read); in test_flash_read_write_performance()
/hal_espressif-2.7.6/docs/zh_CN/api-reference/system/
Dota.rst143 int data_read = esp_http_client_read(client, ota_write_data, BUFFSIZE);
145 if (data_read > 0) {
148 …if (data_read > sizeof(esp_image_header_t) + sizeof(esp_image_segment_header_t) + sizeof(esp_app_d…
161 esp_ota_write( update_handle, (const void *)ota_write_data, data_read);
/hal_espressif-2.7.6/examples/protocols/esp_http_client/main/
Desp_http_client_example.c593 … int data_read = esp_http_client_read_response(client, output_buffer, MAX_HTTP_OUTPUT_BUFFER); in http_native_request() local
594 if (data_read >= 0) { in http_native_request()
619 … int data_read = esp_http_client_read_response(client, output_buffer, MAX_HTTP_OUTPUT_BUFFER); in http_native_request() local
620 if (data_read >= 0) { in http_native_request()
/hal_espressif-2.7.6/components/driver/test/
Dtest_sdio.c317 uint8_t data_read; in test_reg() local
318 err = essl_read_reg(handle, offset, &data_read, 10); in test_reg()
321 TEST_ASSERT_EQUAL_HEX8(data[offset], data_read); in test_reg()
/hal_espressif-2.7.6/components/esp_http_client/
Desp_http_client.c1423 int data_read = esp_http_client_read(client, buffer + read_len, len - read_len); in esp_http_client_read_response() local
1424 if (data_read <= 0) { in esp_http_client_read_response()
1427 read_len += data_read; in esp_http_client_read_response()
1440 int data_read = esp_http_client_get_data(client); in esp_http_client_flush_response() local
1441 if (data_read < 0) { in esp_http_client_flush_response()
1444 read_len += data_read; in esp_http_client_flush_response()
/hal_espressif-2.7.6/docs/en/api-reference/system/
Dota.rst161 int data_read = esp_http_client_read(client, ota_write_data, BUFFSIZE);
163 if (data_read > 0) {
166 …if (data_read > sizeof(esp_image_header_t) + sizeof(esp_image_segment_header_t) + sizeof(esp_app_d…
179 esp_ota_write( update_handle, (const void *)ota_write_data, data_read);