Home
last modified time | relevance | path

Searched refs:tx_buffer (Results 1 – 25 of 28) sorted by relevance

12

/hal_espressif-3.4.0/components/driver/test/
Dtest_spi_slave.c128 slave_t.tx_buffer=NULL;
140 t.tx_buffer = master_txbuf;
150 ESP_LOG_BUFFER_HEX( "master tx", t.tx_buffer, t.length/8 );
153 TEST_ASSERT_EQUAL_HEX8_ARRAY( t.tx_buffer, slave_t.rx_buffer, t.length/8 );
174 slave_t.tx_buffer=slave_txbuf;
186 t.tx_buffer = NULL;
197 ESP_LOG_BUFFER_HEX( "slave tx", slave_t.tx_buffer, (slave_t.trans_len+7)/8);
199 TEST_ASSERT_EQUAL_HEX8_ARRAY( slave_t.tx_buffer, t.rx_buffer, t.length/8 );
221 slave_t.tx_buffer=slave_txbuf+i;
234 t.tx_buffer = master_txbuf+i;
[all …]
Dtest_spi_sio.c80 .tx_buffer = spitest_master_send+i,
86 .tx_buffer = spitest_slave_send+i,
98 ESP_LOG_BUFFER_HEXDUMP("master tx", master_t.tx_buffer, tlen, ESP_LOG_INFO);
100 ESP_LOG_BUFFER_HEXDUMP("slave tx", slave_t.tx_buffer, tlen+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);
145 .tx_buffer = spitest_master_send+i, in test_sio_master_round()
156 ESP_LOG_BUFFER_HEXDUMP("master tx", t.tx_buffer, tlen, ESP_LOG_INFO); in test_sio_master_round()
198 .tx_buffer = spitest_slave_send+i, in test_sio_slave_round()
204 ESP_LOG_BUFFER_HEXDUMP("slave tx", t.tx_buffer, tlen+rlen, ESP_LOG_INFO); in test_sio_slave_round()
Dtest_common_spi.c88 t.tx_buffer = txdata.start; in spitest_slave_task()
121 const void* tx_buffer = spitest_master_send + i%8; in spitest_init_transactions() local
132 .tx_buffer = tx_buffer, in spitest_init_transactions()
137 .tx_buffer = tx_buffer, in spitest_init_transactions()
156 if (t->tx_buffer) ESP_LOG_BUFFER_HEX( "master tx", t->tx_buffer, t->length/8 ); in spitest_master_print_data()
184 memcmp(master_t->tx_buffer, slave_t->data, (len + 7) / 8) != 0 ) { in spitest_check_data()
196 TEST_ASSERT_EQUAL_HEX8_ARRAY(master_t->tx_buffer, slave_t->data, (len + 7) / 8); in spitest_check_data()
Dtest_sdio.c324 static uint8_t tx_buffer[TX_BUFFER_SIZE*2]; variable
330 for (int i = 0; i < sizeof(tx_buffer); i++) { in init_tx_buffer()
331 tx_buffer[i] = rand(); in init_tx_buffer()
340 int page_offset = (rand() % (sizeof(tx_buffer) - (TX_BUFFER_SIZE) + 1)) & (~3); in get_master_send_data()
341 *out_start = &tx_buffer[page_offset + offset_in_page]; in get_master_send_data()
507 TEST_ASSERT_EQUAL_HEX8_ARRAY(tx_buffer + 4*i, buffer, read_len); in test_reset_master()
511 … esp_err_t err = essl_send_packet(handle, tx_buffer + i * 8, TEST_RESET_DATA_LEN, portMAX_DELAY); in test_reset_master()
686 err = sdio_slave_send_queue(tx_buffer + 4*i, TEST_RESET_DATA_LEN, (void*)i, portMAX_DELAY); in slave_tx_rx_short_data()
697 TEST_ASSERT_EQUAL_HEX8_ARRAY(tx_buffer+i*8, addr, size); in slave_tx_rx_short_data()
Dtest_spi_master.c61 t.tx_buffer = sendbuf; in check_spi_pre_n_for()
148 t.tx_buffer = sendbuf; in spi_test()
664 trans[0].tx_buffer = data_iram;
668 trans[1].tx_buffer = data_dram;
672 trans[2].tx_buffer = data_drom;
677 trans[3].tx_buffer = data_malloc + 2;
699 … TEST_ASSERT_EQUAL_HEX32_ARRAY(trans[x].tx_buffer, trans[x].rx_buffer, trans[x].length / 8 / 4);
750 t.tx_buffer = tx_buf + 2 * i;
771 TEST_ASSERT_EQUAL_HEX8_ARRAY(t.tx_buffer, t.rx_buffer, t.length / 8 - 1 );
774 TEST_ASSERT_EQUAL_HEX8_ARRAY(t.tx_buffer, t.rx_buffer, t.length / 8 );
[all …]
Dtest_spi_param.c175 .tx_buffer = txdata->start, 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()
217 ESP_LOG_BUFFER_HEX("slave tx", slave_trans.tx_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()
577 .tx_buffer = slave_sendbuf, in TEST_SPI_LOCAL()
585 .tx_buffer = master_sendbuf, in TEST_SPI_LOCAL()
734 if (context->master_trans[i].tx_buffer!=NULL) { in test_master_start()
735 … memcpy(ptr+2, context->master_trans[i].tx_buffer, (context->master_trans[i].length+7)/8); in test_master_start()
/hal_espressif-3.4.0/components/hal/
Dspi_slave_hal_iram.c50 if (hal->tx_buffer) { in spi_slave_hal_prepare_data()
51 lldesc_setup_link(hal->dmadesc_tx, hal->tx_buffer, (hal->bitlen + 7) / 8, false); in spi_slave_hal_prepare_data()
63 if (hal->tx_buffer) { in spi_slave_hal_prepare_data()
65 spi_ll_write_buffer(hal->hw, hal->tx_buffer, hal->bitlen); in spi_slave_hal_prepare_data()
77 spi_ll_enable_miso(hal->hw, (hal->tx_buffer == NULL) ? 0 : 1); in spi_slave_hal_prepare_data()
/hal_espressif-3.4.0/components/esp_eth/src/
Desp_eth_mac_ksz8851snl.c31 uint8_t *tx_buffer; member
322 emac->tx_buffer[0] = ++s_frame_id & TXSR_TXFID_MASK; in emac_ksz8851snl_transmit()
323 emac->tx_buffer[1] = 0x80U; in emac_ksz8851snl_transmit()
324 emac->tx_buffer[2] = length & 0xFFU; in emac_ksz8851snl_transmit()
325 emac->tx_buffer[3] = (length >> 8U) & 0xFFU; in emac_ksz8851snl_transmit()
326 memcpy(emac->tx_buffer + 4U, buf, length); in emac_ksz8851snl_transmit()
332 .base.tx_buffer = emac->tx_buffer, in emac_ksz8851snl_transmit()
576 heap_caps_free(emac->tx_buffer); in emac_ksz8851_del()
693 emac->tx_buffer = NULL; in esp_eth_mac_new_ksz8851snl()
695 …emac->tx_buffer = heap_caps_malloc(KSZ8851_QMU_PACKET_LENGTH + KSZ8851_QMU_PACKET_PADDING, MALLOC_… in esp_eth_mac_new_ksz8851snl()
[all …]
/hal_espressif-3.4.0/components/driver/
Dsdspi_host.c183 .tx_buffer = data, in go_idle_clockout()
500 .tx_buffer = cmd, in start_command_default()
530 .tx_buffer = &t_rx, in poll_busy()
566 .tx_buffer = &t_rx, in poll_data_token()
669 .tx_buffer = cmd, in start_command_read_blocks()
733 .tx_buffer = rx_data in start_command_read_blocks()
810 .tx_buffer = cmd, in start_command_write_blocks()
832 .tx_buffer = &start_token in start_command_write_blocks()
856 .tx_buffer = tx_data, in start_command_write_blocks()
909 .tx_buffer = &stop_token, in start_command_write_blocks()
Dspi_slave.c281 …pihost[host]->dma_enabled == 0 || trans_desc->tx_buffer==NULL || esp_ptr_dma_capable(trans_desc->t… in spi_slave_queue_trans()
381 hal->tx_buffer = trans->tx_buffer; in spi_intr()
Dspi_master.c679 bool tx_enabled = (trans_desc->flags & SPI_TRANS_USE_TXDATA) || (trans_desc->tx_buffer); in check_trans_valid()
725 trans_buf->buffer_to_send != trans_desc->tx_buffer) { in uninstall_priv_desc()
766 send_ptr = trans_desc->tx_buffer ; in setup_priv_desc()
/hal_espressif-3.4.0/docs/zh_CN/api-guides/
Dmemory-types.rst109 .tx_buffer = buffer,
125 .tx_buffer = buffer,
148 .tx_buffer = buffer,
/hal_espressif-3.4.0/components/esp_lcd/src/
Desp_lcd_panel_io_spi.c182 lcd_trans->base.tx_buffer = &lcd_cmd; in panel_io_spi_tx_param()
198 lcd_trans->base.tx_buffer = param; in panel_io_spi_tx_param()
230 lcd_trans->base.tx_buffer = &lcd_cmd; in panel_io_spi_tx_color()
246 lcd_trans->base.tx_buffer = color; in panel_io_spi_tx_color()
/hal_espressif-3.4.0/examples/peripherals/spi_master/lcd/main/
Dspi_master_example_main.c193 t.tx_buffer=&cmd; //The data is the cmd itself in lcd_cmd()
213 t.tx_buffer=data; //Data in lcd_data()
350 trans[5].tx_buffer=linedata; //finally send the line data in send_lines()
/hal_espressif-3.4.0/examples/peripherals/spi_slave_hd/append_mode/slave/main/
Dapp_main.c122 uint8_t *tx_buffer[QUEUE_SIZE] = {}; in sendTask() local
127 ESP_ERROR_CHECK(create_transaction_pool(tx_buffer, trans_link, QUEUE_SIZE)); in sendTask()
/hal_espressif-3.4.0/components/esp_websocket_client/
Desp_websocket_client.c118 char *tx_buffer; member
429 client->tx_buffer = malloc(buffer_size); in esp_websocket_client_init()
430 ESP_WS_CLIENT_MEM_CHECK(TAG, client->tx_buffer, { in esp_websocket_client_init()
463 free(client->tx_buffer); in esp_websocket_client_destroy()
875 memcpy(client->tx_buffer, data + widx, need_write); in esp_websocket_client_send_with_opcode()
877 …esp_transport_ws_send_raw(client->transport, current_opcode, (char *)client->tx_buffer, need_write, in esp_websocket_client_send_with_opcode()
/hal_espressif-3.4.0/components/hal/include/hal/
Dspi_slave_hal.h78 const void *tx_buffer; ///< Data to be sent member
/hal_espressif-3.4.0/components/driver/include/driver/
Dspi_slave.h72 const void *tx_buffer; ///< Pointer to transmit buffer, or NULL for no MOSI phase member
Dspi_master.h133 const void *tx_buffer; ///< Pointer to transmit buffer, or NULL for no MOSI phase member
/hal_espressif-3.4.0/components/esp_serial_slave_link/
Dessl_spi.c140 .tx_buffer = data, in essl_spi_wrbuf()
155 .tx_buffer = data, in essl_spi_wrbuf_polling()
213 .tx_buffer = data, in essl_spi_wrdma_seg()
/hal_espressif-3.4.0/examples/peripherals/spi_slave/receiver/main/
Dapp_main.c152 t.tx_buffer=sendbuf; in app_main()
/hal_espressif-3.4.0/examples/peripherals/spi_slave/sender/main/
Dapp_main.c176 t.tx_buffer=sendbuf; in app_main()
/hal_espressif-3.4.0/docs/en/api-guides/
Dmemory-types.rst175 .tx_buffer = buffer,
189 .tx_buffer = buffer,
214 .tx_buffer = buffer,
/hal_espressif-3.4.0/docs/en/api-reference/peripherals/
Dspi_slave.rst66 …he read phase will be skipped. If :cpp:member:`spi_slave_transaction_t::tx_buffer` is set to NULL,…
94 …unk of memory indicated by the :cpp:member:`rx_buffer` and :cpp:member:`tx_buffer` members of the …
Dspi_master.rst125 …RANS_USE_RXDATA` is not set, the read phase is skipped. If :cpp:member:`tx_buffer` is NULL and :cp…
218 …emory indicated by the members :cpp:member:`rx_buffer` and :cpp:member:`tx_buffer` of the structur…
290 …pe:`SPI_TRANS_USE_RXDATA`. In both cases, do not touch the :cpp:member:`tx_buffer` or :cpp:member:…

12