/hal_espressif-2.7.6/components/driver/test/ |
D | test_spi_sio.c | 76 .rx_buffer = master_rx_buffer+i, 81 .rx_buffer = slave_rx_buffer, 93 ESP_LOG_BUFFER_HEXDUMP("slave rx", slave_t.rx_buffer, tlen+rlen, ESP_LOG_INFO); 95 ESP_LOG_BUFFER_HEXDUMP("master rx", master_t.rx_buffer, rlen, ESP_LOG_INFO); 97 TEST_ASSERT_EQUAL_HEX8_ARRAY(master_t.tx_buffer, slave_t.rx_buffer, tlen); 98 TEST_ASSERT_EQUAL_HEX8_ARRAY(slave_t.tx_buffer + tlen, master_t.rx_buffer, rlen); 114 WORD_ALIGNED_ATTR uint8_t rx_buffer[320]; in test_sio_master_round() local 139 .rx_buffer = rx_buffer+i, in test_sio_master_round() 141 memset(rx_buffer, 0x66, sizeof(rx_buffer)); in test_sio_master_round() 150 ESP_LOG_BUFFER_HEXDUMP("master rx", t.rx_buffer, rlen, ESP_LOG_INFO); in test_sio_master_round() [all …]
|
D | test_spi_slave.c | 107 slave_t.rx_buffer=slave_rxbuf; 116 t.rx_buffer = master_rxbuf+i; 126 ESP_LOG_BUFFER_HEX( "master rx", t.rx_buffer, t.length/8 ); 128 ESP_LOG_BUFFER_HEX( "slave rx", slave_t.rx_buffer, (slave_t.trans_len+7)/8); 130 TEST_ASSERT_EQUAL_HEX8_ARRAY( t.tx_buffer, slave_t.rx_buffer, t.length/8 ); 131 TEST_ASSERT_EQUAL_HEX8_ARRAY( slave_t.tx_buffer, t.rx_buffer, t.length/8 ); 198 .rx_buffer = master_recv_buf, in unaligned_test_master() 246 .rx_buffer = slave_recv_buf, in unaligned_test_slave()
|
D | test_common_spi.c | 84 t.rx_buffer = recvbuf+8; in spitest_slave_task() 122 .rx_buffer = rx_buf_ptr, in spitest_init_transactions() 134 .rx_buffer = rx_buf_ptr, in spitest_init_transactions() 152 if (t->rx_buffer) ESP_LOG_BUFFER_HEX( "master rx", t->rx_buffer, rxlength/8 ); in spitest_master_print_data() 174 memcmp(slave_t->tx_start, master_t->rx_buffer, (len + 7) / 8) != 0 ) { in spitest_check_data() 190 TEST_ASSERT_EQUAL_HEX8_ARRAY(slave_t->tx_start, master_t->rx_buffer, (len + 7) / 8); in spitest_check_data()
|
D | test_spi_master.c | 139 t.rx_buffer=recvbuf; in spi_test() 503 .rx_buffer = NULL, 604 trans[0].rx_buffer = data_malloc+1; 608 trans[1].rx_buffer = data_iram; 612 trans[2].rx_buffer = data_iram; 617 trans[3].rx_buffer = data_dram; 638 … TEST_ASSERT_EQUAL_HEX32_ARRAY(trans[x].tx_buffer, trans[x].rx_buffer, trans[x].length / 8 /4); 690 t.rx_buffer = rx_buf + i; 694 t.rx_buffer = NULL; 710 TEST_ASSERT_EQUAL_HEX8_ARRAY(t.tx_buffer, t.rx_buffer, t.length/8-1 ); [all …]
|
D | test_spi_param.c | 171 .rx_buffer = recvbuf, in local_test_loop() 195 … if (check_master_data && memcmp(slave_trans.tx_buffer, t->rx_buffer, (len + 7) / 8) != 0 ) { in local_test_loop() 204 … if (check_slave_data && memcmp(t->tx_buffer, slave_trans.rx_buffer, (len + 7) / 8) != 0 ) { in local_test_loop() 213 ESP_LOG_BUFFER_HEX("slave rx", slave_trans.rx_buffer, len); in local_test_loop() 216 TEST_ASSERT_EQUAL_HEX8_ARRAY(slave_trans.tx_buffer, t->rx_buffer, (len + 7) / 8); in local_test_loop() 217 TEST_ASSERT_EQUAL_HEX8_ARRAY(t->tx_buffer, slave_trans.rx_buffer, (len + 7) / 8); in local_test_loop() 573 .rx_buffer = slave_recvbuf in TEST_SPI_LOCAL() 581 .rx_buffer = master_recvbuf in TEST_SPI_LOCAL() 834 …memcpy(context->master_trans[i].rx_buffer, context->slave_trans[i].start, (context->master_trans[i… in timing_slave_start() 836 …memcpy(context->master_trans[i].rx_buffer, context->slave_trans[i].start, (context->master_trans[i… in timing_slave_start()
|
/hal_espressif-2.7.6/examples/protocols/sockets/udp_client/main/ |
D | udp_client.c | 44 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-2.7.6/examples/protocols/sockets/udp_server/main/ |
D | udp_server.c | 32 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() 97 … rx_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-2.7.6/examples/protocols/sockets/tcp_client/main/ |
D | tcp_client.c | 41 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-2.7.6/components/hal/ |
D | spi_slave_hal_iram.c | 38 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() 75 spi_ll_enable_miso(hal->hw, (hal->rx_buffer == NULL) ? 0 : 1); in spi_slave_hal_prepare_data() 87 if (!hal->use_dma && hal->rx_buffer) { in spi_slave_hal_store_result() 89 spi_ll_read_buffer(hal->hw, hal->rx_buffer, hal->bitlen); in spi_slave_hal_store_result() 102 if (hal->use_dma && hal->rx_buffer) { in spi_slave_hal_dma_need_reset()
|
/hal_espressif-2.7.6/tools/test_apps/protocols/pppos/main/ |
D | pppos_client_main.c | 32 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-2.7.6/examples/protocols/sockets/tcp_server/main/ |
D | tcp_server.c | 37 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-2.7.6/examples/protocols/sockets/tcp_client_multi_net/main/ |
D | tcp_client_multiple.c | 33 char rx_buffer[128] = {0}; in app_multiple_handle() local 92 ret = recv(sock, rx_buffer, sizeof(rx_buffer) - 1, 0); in app_multiple_handle() 96 rx_buffer[ret] = 0; // Null-terminate whatever we received and treat like a string in app_multiple_handle() 98 ESP_LOGI(TAG, "%s", rx_buffer); in app_multiple_handle()
|
/hal_espressif-2.7.6/components/driver/ |
D | spi_slave.c | 291 SPI_CHECK(spihost[host]->dma_enabled == 0 || trans_desc->rx_buffer==NULL || in spi_slave_queue_trans() 292 … (esp_ptr_dma_capable(trans_desc->rx_buffer) && esp_ptr_word_aligned(trans_desc->rx_buffer) && in spi_slave_queue_trans() 388 hal->rx_buffer = trans->rx_buffer; in spi_intr()
|
D | sdspi_host.c | 192 .rx_buffer = data, in go_idle_clockout() 509 .rx_buffer = cmd, in start_command_default() 575 .rx_buffer = &t_rx, in poll_data_token() 678 .rx_buffer = cmd, in start_command_read_blocks() 740 .rx_buffer = rx_data, in start_command_read_blocks() 819 .rx_buffer = cmd, in start_command_write_blocks()
|
D | spi_master.c | 685 bool rx_enabled = (trans_desc->flags & SPI_TRANS_USE_RXDATA) || (trans_desc->rx_buffer); in check_trans_valid() 730 trans_buf->buffer_to_rcv != trans_desc->rx_buffer) { // NOLINT(clang-analyzer-unix.Malloc) in uninstall_priv_desc() 734 memcpy(trans_desc->rx_buffer, trans_buf->buffer_to_rcv, (trans_desc->rxlength + 7) / 8); in uninstall_priv_desc() 750 rcv_ptr = trans_desc->rx_buffer; in setup_priv_desc()
|
/hal_espressif-2.7.6/components/esp_serial_slave_link/ |
D | essl_spi.c | 70 .rx_buffer = out_data, in essl_spi_rdbuf() 86 .rx_buffer = out_data, in essl_spi_rdbuf_polling() 131 .rx_buffer = out_data, in essl_spi_rddma_seg()
|
/hal_espressif-2.7.6/components/hal/include/hal/ |
D | spi_slave_hal.h | 79 void *rx_buffer; ///< Buffer to hold the received data. member
|
/hal_espressif-2.7.6/components/driver/include/driver/ |
D | spi_slave.h | 81 void *rx_buffer; /**< Pointer to receive buffer, or NULL for no MISO phase. member
|
D | spi_master.h | 142 …void *rx_buffer; ///< Pointer to receive buffer, or NULL for no MISO phase. Written by … member
|
/hal_espressif-2.7.6/components/esp_websocket_client/ |
D | esp_websocket_client.c | 117 char *rx_buffer; member 419 client->rx_buffer = malloc(buffer_size); in esp_websocket_client_init() 420 ESP_WS_CLIENT_MEM_CHECK(TAG, client->rx_buffer, { in esp_websocket_client_init() 455 free(client->rx_buffer); in esp_websocket_client_destroy() 533 …rlen = esp_transport_read(client->transport, client->rx_buffer, client->buffer_size, client->confi… in esp_websocket_client_recv() 546 esp_websocket_client_dispatch_event(client, WEBSOCKET_EVENT_DATA, client->rx_buffer, rlen); in esp_websocket_client_recv() 553 const char *data = (client->payload_len == 0) ? NULL : client->rx_buffer; in esp_websocket_client_recv()
|
/hal_espressif-2.7.6/examples/peripherals/spi_slave/receiver/main/ |
D | app_main.c | 152 t.rx_buffer=recvbuf; in app_main()
|
/hal_espressif-2.7.6/examples/peripherals/spi_slave/sender/main/ |
D | app_main.c | 176 t.rx_buffer=recvbuf; in app_main()
|
/hal_espressif-2.7.6/components/esp_eth/src/ |
D | esp_eth_mac_dm9051.c | 164 .rx_buffer = buffer in dm9051_memory_read() 188 .rx_buffer = buffer in dm9051_memory_peek()
|
/hal_espressif-2.7.6/docs/en/api-reference/peripherals/ |
D | spi_slave.rst | 66 …ly, or TX and RX transactions. If :cpp:member:`spi_slave_transaction_t::rx_buffer` is set to NULL,… 94 …e is read or written to a chunk of memory indicated by the :cpp:member:`rx_buffer` and :cpp:member…
|
D | spi_master.rst | 121 …ery transaction requires both writing and reading data. If :cpp:member:`rx_buffer` is NULL and :cp… 159 …m or written to a chunk of memory indicated by the members :cpp:member:`rx_buffer` and :cpp:member… 229 …In both cases, do not touch the :cpp:member:`tx_buffer` or :cpp:member:`rx_buffer` members, becaus…
|