Searched refs:slave_t (Results 1 – 5 of 5) sorted by relevance
/hal_espressif-3.4.0/components/driver/test/ |
D | test_spi_slave.c | 124 spi_slave_transaction_t slave_t; variable 126 memset(&slave_t, 0, sizeof(spi_slave_transaction_t)); 127 slave_t.length=8*32; 128 slave_t.tx_buffer=NULL; 129 slave_t.rx_buffer=slave_rxbuf; 134 TEST_ESP_OK(spi_slave_queue_trans(TEST_SLAVE_HOST, &slave_t, portMAX_DELAY)); 149 ESP_LOGI(SLAVE_TAG, "trans_len: %d", slave_t.trans_len); 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 ); 154 TEST_ASSERT_EQUAL( t.length, slave_t.trans_len ); [all …]
|
D | test_spi_sio.c | 84 spi_slave_transaction_t slave_t = { variable 91 TEST_ESP_OK(spi_slave_queue_trans(TEST_SLAVE_HOST, &slave_t, portMAX_DELAY)); 96 TEST_ASSERT(ret_t == &slave_t); 99 ESP_LOG_BUFFER_HEXDUMP("slave rx", slave_t.rx_buffer, tlen+rlen, 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);
|
D | test_common_spi.c | 168 esp_err_t spitest_check_data(int len, spi_transaction_t *master_t, slave_rxdata_t *slave_t, bool ch… in spitest_check_data() argument 171 uint32_t rcv_len = slave_t->len; in spitest_check_data() 179 memcmp(slave_t->tx_start, master_t->rx_buffer, (len + 7) / 8) != 0 ) { in spitest_check_data() 184 memcmp(master_t->tx_buffer, slave_t->data, (len + 7) / 8) != 0 ) { in spitest_check_data() 190 spitest_slave_print_data(slave_t, true); 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() 196 TEST_ASSERT_EQUAL_HEX8_ARRAY(master_t->tx_buffer, slave_t->data, (len + 7) / 8); in spitest_check_data()
|
D | test_spi_master.c | 949 spi_slave_transaction_t slave_t = { in test_dummy() local 954 TEST_ESP_OK(spi_slave_queue_trans(TEST_SLAVE_HOST, &slave_t, portMAX_DELAY)); in test_dummy() 970 TEST_ASSERT(ret_slave == &slave_t); in test_dummy()
|
/hal_espressif-3.4.0/components/driver/test/include/test/ |
D | test_common_spi.h | 263 esp_err_t spitest_check_data(int len, spi_transaction_t *master_t, slave_rxdata_t *slave_t, bool ch…
|