Home
last modified time | relevance | path

Searched refs:rx_buffer (Results 1 – 25 of 33) sorted by relevance

12

/hal_espressif-3.6.0/components/driver/test/
Dtest_spi_sio.c82 .rx_buffer = master_rx_buffer+i,
87 .rx_buffer = slave_rx_buffer,
99 ESP_LOG_BUFFER_HEXDUMP("slave rx", slave_t.rx_buffer, tlen+rlen, ESP_LOG_INFO);
101 ESP_LOG_BUFFER_HEXDUMP("master rx", master_t.rx_buffer, rlen, ESP_LOG_INFO);
103 TEST_ASSERT_EQUAL_HEX8_ARRAY(master_t.tx_buffer, slave_t.rx_buffer, tlen);
104 TEST_ASSERT_EQUAL_HEX8_ARRAY(slave_t.tx_buffer + tlen, master_t.rx_buffer, rlen);
122 WORD_ALIGNED_ATTR uint8_t rx_buffer[320]; in test_sio_master_round() local
147 .rx_buffer = rx_buffer+i, in test_sio_master_round()
149 memset(rx_buffer, 0x66, sizeof(rx_buffer)); in test_sio_master_round()
158 ESP_LOG_BUFFER_HEXDUMP("master rx", t.rx_buffer, rlen, ESP_LOG_INFO); in test_sio_master_round()
[all …]
Dtest_spi_slave.c129 slave_t.rx_buffer=slave_rxbuf;
141 t.rx_buffer = NULL;
151 ESP_LOG_BUFFER_HEX( "slave rx", slave_t.rx_buffer, (slave_t.trans_len+7)/8);
153 TEST_ASSERT_EQUAL_HEX8_ARRAY( t.tx_buffer, slave_t.rx_buffer, t.length/8 );
175 slave_t.rx_buffer=NULL;
187 t.rx_buffer = master_rxbuf;
196 ESP_LOG_BUFFER_HEX( "master rx", t.rx_buffer, t.length/8 );
199 TEST_ASSERT_EQUAL_HEX8_ARRAY( slave_t.tx_buffer, t.rx_buffer, t.length/8 );
222 slave_t.rx_buffer=slave_rxbuf;
235 t.rx_buffer = master_rxbuf+i;
[all …]
Dtest_common_spi.c89 t.rx_buffer = recvbuf+8; in spitest_slave_task()
127 .rx_buffer = rx_buf_ptr, in spitest_init_transactions()
139 .rx_buffer = rx_buf_ptr, in spitest_init_transactions()
157 if (t->rx_buffer) ESP_LOG_BUFFER_HEX( "master rx", t->rx_buffer, rxlength/8 ); in spitest_master_print_data()
179 memcmp(slave_t->tx_start, master_t->rx_buffer, (len + 7) / 8) != 0 ) { in spitest_check_data()
195 TEST_ASSERT_EQUAL_HEX8_ARRAY(slave_t->tx_start, master_t->rx_buffer, (len + 7) / 8); in spitest_check_data()
Dtest_spi_master.c149 t.rx_buffer = recvbuf; in spi_test()
564 .rx_buffer = NULL,
665 trans[0].rx_buffer = data_malloc + 1;
669 trans[1].rx_buffer = data_iram;
673 trans[2].rx_buffer = data_iram;
678 trans[3].rx_buffer = data_dram;
699 … TEST_ASSERT_EQUAL_HEX32_ARRAY(trans[x].tx_buffer, trans[x].rx_buffer, trans[x].length / 8 / 4);
751 t.rx_buffer = rx_buf + i;
755 t.rx_buffer = NULL;
771 TEST_ASSERT_EQUAL_HEX8_ARRAY(t.tx_buffer, t.rx_buffer, t.length / 8 - 1 );
[all …]
Dtest_spi_param.c176 .rx_buffer = recvbuf, in local_test_loop()
200 … if (check_master_data && memcmp(slave_trans.tx_buffer, t->rx_buffer, (len + 7) / 8) != 0 ) { in local_test_loop()
209 … if (check_slave_data && memcmp(t->tx_buffer, slave_trans.rx_buffer, (len + 7) / 8) != 0 ) { in local_test_loop()
218 ESP_LOG_BUFFER_HEX("slave rx", slave_trans.rx_buffer, len); in local_test_loop()
221 TEST_ASSERT_EQUAL_HEX8_ARRAY(slave_trans.tx_buffer, t->rx_buffer, (len + 7) / 8); in local_test_loop()
222 TEST_ASSERT_EQUAL_HEX8_ARRAY(t->tx_buffer, slave_trans.rx_buffer, (len + 7) / 8); in local_test_loop()
578 .rx_buffer = slave_recvbuf in TEST_SPI_LOCAL()
586 .rx_buffer = master_recvbuf in TEST_SPI_LOCAL()
839 …memcpy(context->master_trans[i].rx_buffer, context->slave_trans[i].start, (context->master_trans[i… in timing_slave_start()
841 …memcpy(context->master_trans[i].rx_buffer, context->slave_trans[i].start, (context->master_trans[i… in timing_slave_start()
/hal_espressif-3.6.0/examples/openthread/ot_cli/main/
Desp_ot_udp_socket.c23 char rx_buffer[128]; in udp_socket_server_task() local
57 …len = recvfrom(listen_sock, rx_buffer, sizeof(rx_buffer) - 1, 0, (struct sockaddr *)&source_addr, … in udp_socket_server_task()
65 rx_buffer[len] = 0; // Null-terminate whatever we received and treat like a string... in udp_socket_server_task()
67 ESP_LOGI(TAG, "%s", rx_buffer); in udp_socket_server_task()
82 char rx_buffer[128]; in udp_socket_client_task() local
106 …len = recvfrom(client_sock, rx_buffer, sizeof(rx_buffer) - 1, 0, (struct sockaddr *)&source_addr, … in udp_socket_client_task()
111 rx_buffer[len] = 0; // Null-terminate whatever we received and treat like a string in udp_socket_client_task()
113 ESP_LOGI(TAG, "%s", rx_buffer); in udp_socket_client_task()
Desp_ot_tcp_socket.c22 char rx_buffer[128]; in tcp_socket_server_task() local
71 len = recv(client_sock, rx_buffer, sizeof(rx_buffer) - 1, 0); in tcp_socket_server_task()
75 rx_buffer[len] = 0; // Null-terminate whatever we received and treat like a string in tcp_socket_server_task()
77 ESP_LOGI(TAG, "%s", rx_buffer); in tcp_socket_server_task()
99 char rx_buffer[128]; in tcp_socket_client_task() local
123 len = recv(client_sock, rx_buffer, sizeof(rx_buffer) - 1, 0); in tcp_socket_client_task()
127 rx_buffer[len] = 0; // Null-terminate whatever we received and treat like a string in tcp_socket_client_task()
129 ESP_LOGI(TAG, "%s", rx_buffer); in tcp_socket_client_task()
/hal_espressif-3.6.0/examples/protocols/sockets/udp_client/main/
Dudp_client.c44 char rx_buffer[128]; in udp_client_task() local
89 …int len = recvfrom(sock, rx_buffer, sizeof(rx_buffer) - 1, 0, (struct sockaddr *)&source_addr, &so… in udp_client_task()
98 rx_buffer[len] = 0; // Null-terminate whatever we received and treat like a string in udp_client_task()
100 ESP_LOGI(TAG, "%s", rx_buffer); in udp_client_task()
101 if (strncmp(rx_buffer, "OK: ", 4) == 0) { in udp_client_task()
/hal_espressif-3.6.0/examples/protocols/sockets/udp_server/main/
Dudp_server.c32 char rx_buffer[128]; in udp_server_task() local
81 …int len = recvfrom(sock, rx_buffer, sizeof(rx_buffer) - 1, 0, (struct sockaddr *)&source_addr, &so… in udp_server_task()
97rx_buffer[len] = 0; // Null-terminate whatever we received and treat like a string... in udp_server_task()
99 ESP_LOGI(TAG, "%s", rx_buffer); in udp_server_task()
101 … int err = sendto(sock, rx_buffer, len, 0, (struct sockaddr *)&source_addr, sizeof(source_addr)); in udp_server_task()
/hal_espressif-3.6.0/tools/test_apps/protocols/pppos/main/
Dpppos_client_main.c32 static char rx_buffer[128]; variable
120 int len = recv(sock, rx_buffer, sizeof(rx_buffer) - 1, 0); in test_tcp_client_ipv4()
125 rx_buffer[len] = 0; // Null-terminate whatever we received and treat like a string in test_tcp_client_ipv4()
126 ESP_LOGI(TAG, "Received from socket:%s", rx_buffer); in test_tcp_client_ipv4()
182 int len = recv(sock, rx_buffer, sizeof(rx_buffer) - 1, 0); in test_tcp_server_ipv6()
188 rx_buffer[len] = 0; // Null-terminate whatever is received and treat it like a string in test_tcp_server_ipv6()
189 ESP_LOGI(TAG, "Received %d bytes: %s", len, rx_buffer); in test_tcp_server_ipv6()
/hal_espressif-3.6.0/examples/protocols/sockets/non_blocking/main/
Dnon_blocking_socket_example.c115 static char rx_buffer[128]; in tcp_client_task() local
186 len = try_receive(TAG, sock, rx_buffer, sizeof(rx_buffer)); in tcp_client_task()
193 ESP_LOGI(TAG, "Received: %.*s", len, rx_buffer); in tcp_client_task()
232 static char rx_buffer[128]; in tcp_server_task() local
333 int len = try_receive(TAG, sock[i], rx_buffer, sizeof(rx_buffer)); in tcp_server_task()
341 ESP_LOGI(TAG, "[sock=%d]: Received %.*s", sock[i], len, rx_buffer); in tcp_server_task()
343 len = socket_send(TAG, sock[i], rx_buffer, len); in tcp_server_task()
351 ESP_LOGI(TAG, "[sock=%d]: Written %.*s", sock[i], len, rx_buffer); in tcp_server_task()
/hal_espressif-3.6.0/components/hal/
Dspi_slave_hal_iram.c38 if (hal->rx_buffer) { in spi_slave_hal_prepare_data()
39 lldesc_setup_link(hal->dmadesc_rx, hal->rx_buffer, ((hal->bitlen + 7) / 8), true); in spi_slave_hal_prepare_data()
76 spi_ll_enable_mosi(hal->hw, (hal->rx_buffer == NULL) ? 0 : 1); in spi_slave_hal_prepare_data()
90 if (!hal->use_dma && hal->rx_buffer) { in spi_slave_hal_store_result()
92 spi_ll_read_buffer(hal->hw, hal->rx_buffer, hal->bitlen); in spi_slave_hal_store_result()
105 if (hal->use_dma && hal->rx_buffer) { in spi_slave_hal_dma_need_reset()
/hal_espressif-3.6.0/examples/protocols/sockets/tcp_client/main/
Dtcp_client.c41 char rx_buffer[128]; in tcp_client_task() local
87 int len = recv(sock, rx_buffer, sizeof(rx_buffer) - 1, 0); in tcp_client_task()
95 rx_buffer[len] = 0; // Null-terminate whatever we received and treat like a string in tcp_client_task()
97 ESP_LOGI(TAG, "%s", rx_buffer); in tcp_client_task()
/hal_espressif-3.6.0/examples/protocols/sockets/tcp_server/main/
Dtcp_server.c37 char rx_buffer[128]; in do_retransmit() local
40 len = recv(sock, rx_buffer, sizeof(rx_buffer) - 1, 0); in do_retransmit()
46 rx_buffer[len] = 0; // Null-terminate whatever is received and treat it like a string in do_retransmit()
47 ESP_LOGI(TAG, "Received %d bytes: %s", len, rx_buffer); in do_retransmit()
53 int written = send(sock, rx_buffer + (len - to_write), to_write, 0); in do_retransmit()
/hal_espressif-3.6.0/examples/protocols/sockets/tcp_client_multi_net/main/
Dtcp_client_multiple.c33 char rx_buffer[128] = {0}; in app_multiple_handle() local
96 ret = recv(sock, rx_buffer, sizeof(rx_buffer) - 1, 0); in app_multiple_handle()
100 rx_buffer[ret] = 0; // Null-terminate whatever we received and treat like a string in app_multiple_handle()
102 ESP_LOGI(TAG, "%s", rx_buffer); in app_multiple_handle()
/hal_espressif-3.6.0/examples/protocols/http_server/captive_portal/main/
Ddns_server.c167 char rx_buffer[128]; in dns_server_task() local
199 …int len = recvfrom(sock, rx_buffer, sizeof(rx_buffer) - 1, 0, (struct sockaddr *)&source_addr, &so… in dns_server_task()
217 rx_buffer[len] = 0; in dns_server_task()
220 int reply_len = parse_dns_request(rx_buffer, len, reply, DNS_MAX_LEN); in dns_server_task()
/hal_espressif-3.6.0/components/driver/
Dspi_slave.c283 SPI_CHECK(spihost[host]->dma_enabled == 0 || trans_desc->rx_buffer==NULL || in spi_slave_queue_trans()
284 … (esp_ptr_dma_capable(trans_desc->rx_buffer) && esp_ptr_word_aligned(trans_desc->rx_buffer) && in spi_slave_queue_trans()
380 hal->rx_buffer = trans->rx_buffer; in spi_intr()
Dsdspi_host.c184 .rx_buffer = data, in go_idle_clockout()
501 .rx_buffer = cmd, in start_command_default()
567 .rx_buffer = &t_rx, in poll_data_token()
670 .rx_buffer = cmd, in start_command_read_blocks()
732 .rx_buffer = rx_data, in start_command_read_blocks()
811 .rx_buffer = cmd, in start_command_write_blocks()
/hal_espressif-3.6.0/components/esp_eth/src/
Desp_eth_mac_ksz8851snl.c30 uint8_t *rx_buffer; member
384 .base.rx_buffer = emac->rx_buffer, in emac_ksz8851_receive()
398 memcpy(buf, emac->rx_buffer + 10U, frame_size); in emac_ksz8851_receive()
575 heap_caps_free(emac->rx_buffer); in emac_ksz8851_del()
692 emac->rx_buffer = NULL; in esp_eth_mac_new_ksz8851snl()
694 …emac->rx_buffer = heap_caps_malloc(KSZ8851_QMU_PACKET_LENGTH + KSZ8851_QMU_PACKET_PADDING, MALLOC_… in esp_eth_mac_new_ksz8851snl()
696 ESP_GOTO_ON_FALSE(emac->rx_buffer, NULL, err, TAG, "RX buffer allocation failed"); in esp_eth_mac_new_ksz8851snl()
717 heap_caps_free(emac->rx_buffer); in esp_eth_mac_new_ksz8851snl()
/hal_espressif-3.6.0/components/esp_websocket_client/
Desp_websocket_client.c117 char *rx_buffer; member
425 client->rx_buffer = malloc(buffer_size); in esp_websocket_client_init()
426 ESP_WS_CLIENT_MEM_CHECK(TAG, client->rx_buffer, { in esp_websocket_client_init()
464 free(client->rx_buffer); in esp_websocket_client_destroy()
542 …rlen = esp_transport_read(client->transport, client->rx_buffer, client->buffer_size, client->confi… in esp_websocket_client_recv()
555 esp_websocket_client_dispatch_event(client, WEBSOCKET_EVENT_DATA, client->rx_buffer, rlen); in esp_websocket_client_recv()
562 const char *data = (client->payload_len == 0) ? NULL : client->rx_buffer; in esp_websocket_client_recv()
/hal_espressif-3.6.0/examples/peripherals/spi_slave_hd/append_mode/slave/main/
Dapp_main.c188 uint8_t *rx_buffer[QUEUE_SIZE] = {}; in recvTask() local
193 ESP_ERROR_CHECK(create_transaction_pool(rx_buffer, trans_link, QUEUE_SIZE)); in recvTask()
/hal_espressif-3.6.0/components/hal/include/hal/
Dspi_slave_hal.h79 void *rx_buffer; ///< Buffer to hold the received data. member
/hal_espressif-3.6.0/components/driver/include/driver/
Dspi_slave.h73 void *rx_buffer; /**< Pointer to receive buffer, or NULL for no MISO phase. member
/hal_espressif-3.6.0/components/esp_serial_slave_link/
Dessl_spi.c108 .rx_buffer = out_data, in essl_spi_rdbuf()
124 .rx_buffer = out_data, in essl_spi_rdbuf_polling()
169 .rx_buffer = out_data, in essl_spi_rddma_seg()
/hal_espressif-3.6.0/examples/peripherals/spi_slave/receiver/main/
Dapp_main.c153 t.rx_buffer=recvbuf; in app_main()

12