Home
last modified time | relevance | path

Searched refs:slave_trans (Results 1 – 6 of 6) sorted by relevance

/hal_espressif-3.4.0/examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/
Dapp_main.c164 spi_slave_hd_data_t slave_trans[QUEUE_SIZE]; //Transaction descriptor in sender() local
202 slave_trans[descriptor_id].data = send_buf[descriptor_id]; in sender()
203 slave_trans[descriptor_id].len = ready_data_size; in sender()
205 …P_ERROR_CHECK(spi_slave_hd_queue_trans(SLAVE_HOST, SPI_SLAVE_CHAN_TX, &slave_trans[descriptor_id],… in sender()
237 spi_slave_hd_data_t slave_trans[QUEUE_SIZE]; in receiver() local
252 slave_trans[descriptor_id].data = recv_buf[descriptor_id]; in receiver()
253 slave_trans[descriptor_id].len = recv_buf_size; in receiver()
254 …ESP_ERROR_CHECK(spi_slave_hd_queue_trans(SLAVE_HOST, SPI_SLAVE_CHAN_RX, &slave_trans[descriptor_id… in receiver()
277 slave_trans[descriptor_id].data = recv_buf[descriptor_id]; in receiver()
278 slave_trans[descriptor_id].len = recv_buf_size; in receiver()
[all …]
/hal_espressif-3.4.0/components/driver/test/
Dtest_spi_param.c173 slave_txdata_t *txdata = &context->slave_trans[k]; in local_test_loop()
174 spi_slave_transaction_t slave_trans = { in local_test_loop() local
179 esp_err_t err = spi_slave_queue_trans(TEST_SLAVE_HOST, &slave_trans, portMAX_DELAY); in local_test_loop()
194 TEST_ASSERT_EQUAL(&slave_trans, ret_trans); in local_test_loop()
196 uint32_t rcv_len = slave_trans.trans_len; 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()
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()
[all …]
Dtest_spi_slave_hd.c536 spi_slave_hd_data_t slave_trans[4] = { variable
558 …TEST_ESP_OK(spi_slave_hd_queue_trans(TEST_SLAVE_HOST, SPI_SLAVE_CHAN_RX, &slave_trans[i], portMAX_…
561 …TEST_ESP_OK(spi_slave_hd_queue_trans(TEST_SLAVE_HOST, SPI_SLAVE_CHAN_TX, &slave_trans[i], portMAX_…
573 TEST_ASSERT(ret_trans == &slave_trans[i]);
574 TEST_ASSERT_EQUAL(slave_trans[i].len, ret_trans->trans_len);
580 TEST_ASSERT(ret_trans == &slave_trans[i]);
694 spi_slave_hd_data_t slave_trans[4] = { in hd_slave() local
716 …TEST_ESP_OK(spi_slave_hd_queue_trans(TEST_SLAVE_HOST, SPI_SLAVE_CHAN_RX, &slave_trans[i], portMAX_… in hd_slave()
720 …TEST_ESP_OK(spi_slave_hd_queue_trans(TEST_SLAVE_HOST, SPI_SLAVE_CHAN_TX, &slave_trans[i], portMAX_… in hd_slave()
727 TEST_ASSERT(ret_trans == &slave_trans[i]); in hd_slave()
[all …]
Dtest_common_spi.c146 context->slave_trans[i] = (slave_txdata_t) { in spitest_init_transactions()
150 if (cfg->slave_dma_chan != 0) context->slave_trans[i].len = 1024; in spitest_init_transactions()
Dtest_spi_master.c1063 spi_slave_transaction_t slave_trans = { variable
1067 TEST_ESP_OK(spi_slave_queue_trans(TEST_SLAVE_HOST, &slave_trans, portMAX_DELAY));
1087 slave_trans = (spi_slave_transaction_t) {};
1088 slave_trans.tx_buffer = slv_send_buf;
1089 slave_trans.length = buf_size * 8;
1090 TEST_ESP_OK(spi_slave_queue_trans(TEST_SLAVE_HOST, &slave_trans, portMAX_DELAY));
/hal_espressif-3.4.0/components/driver/test/include/test/
Dtest_common_spi.h242 slave_txdata_t slave_trans[MAX_TEST_SIZE]; member