Searched refs:trans_desc (Results 1 – 6 of 6) sorted by relevance
| /hal_espressif-latest/components/driver/spi/gpspi/ |
| D | spi_master.c | 761 …TER_ISR_ATTR esp_err_t check_trans_valid(spi_device_handle_t handle, spi_transaction_t *trans_desc) in check_trans_valid() argument 766 bool tx_enabled = (trans_desc->flags & SPI_TRANS_USE_TXDATA) || (trans_desc->tx_buffer); in check_trans_valid() 767 bool rx_enabled = (trans_desc->flags & SPI_TRANS_USE_RXDATA) || (trans_desc->rx_buffer); in check_trans_valid() 768 spi_transaction_ext_t *t_ext = (spi_transaction_ext_t *)trans_desc; in check_trans_valid() 769 …bool dummy_enabled = (((trans_desc->flags & SPI_TRANS_VARIABLE_DUMMY)? t_ext->dummy_bits: handle->… in check_trans_valid() 774 …SPI_CHECK((trans_desc->flags & SPI_TRANS_USE_RXDATA)==0 || trans_desc->rxlength <= 32, "SPI_TRANS_… in check_trans_valid() 775 …SPI_CHECK((trans_desc->flags & SPI_TRANS_USE_TXDATA)==0 || trans_desc->length <= 32, "SPI_TRANS_US… in check_trans_valid() 776 …SPI_CHECK(trans_desc->length <= bus_attr->max_transfer_sz*8, "txdata transfer > host maximum", ESP… in check_trans_valid() 777 …SPI_CHECK(trans_desc->rxlength <= bus_attr->max_transfer_sz*8, "rxdata transfer > host maximum", E… in check_trans_valid() 778 …SPI_CHECK(is_half_duplex || trans_desc->rxlength <= trans_desc->length, "rx length > tx length in … in check_trans_valid() [all …]
|
| D | spi_slave.c | 366 …ave_queue_trans(spi_host_device_t host, const spi_slave_transaction_t *trans_desc, TickType_t tick… in spi_slave_queue_trans() argument 371 …SPI_CHECK(spihost[host]->dma_enabled == 0 || trans_desc->tx_buffer==NULL || esp_ptr_dma_capable(tr… in spi_slave_queue_trans() 373 SPI_CHECK(spihost[host]->dma_enabled == 0 || trans_desc->rx_buffer==NULL || in spi_slave_queue_trans() 374 … (esp_ptr_dma_capable(trans_desc->rx_buffer) && esp_ptr_word_aligned(trans_desc->rx_buffer) && in spi_slave_queue_trans() 375 (trans_desc->length%4==0)), in spi_slave_queue_trans() 378 …SPI_CHECK(trans_desc->length <= spihost[host]->max_transfer_sz * 8, "data transfer > host maximum"… in spi_slave_queue_trans() 379 r = xQueueSend(spihost[host]->trans_queue, (void *)&trans_desc, ticks_to_wait); in spi_slave_queue_trans() 385 …R_ATTR spi_slave_queue_trans_isr(spi_host_device_t host, const spi_slave_transaction_t *trans_desc) in spi_slave_queue_trans_isr() argument 391 …_FALSE_ISR(spihost[host]->dma_enabled == 0 || trans_desc->tx_buffer==NULL || esp_ptr_dma_capable(t… in spi_slave_queue_trans_isr() 393 ESP_RETURN_ON_FALSE_ISR(spihost[host]->dma_enabled == 0 || trans_desc->rx_buffer==NULL || in spi_slave_queue_trans_isr() [all …]
|
| D | spi_slave_hd.c | 399 spi_slave_hd_data_t *trans_desc; in spi_slave_hd_append_tx_isr() local 402 trans_finish = spi_slave_hd_hal_get_tx_finished_trans(hal, (void **)&trans_desc); in spi_slave_hd_append_tx_isr() 411 .trans = trans_desc, in spi_slave_hd_append_tx_isr() 419 ret = xQueueSendFromISR(host->tx_ret_queue, &trans_desc, &awoken); in spi_slave_hd_append_tx_isr() 437 spi_slave_hd_data_t *trans_desc; in spi_slave_hd_append_rx_isr() local 441 … trans_finish = spi_slave_hd_hal_get_rx_finished_trans(hal, (void **)&trans_desc, &trans_len); in spi_slave_hd_append_rx_isr() 445 trans_desc->trans_len = trans_len; in spi_slave_hd_append_rx_isr() 451 .trans = trans_desc, in spi_slave_hd_append_rx_isr() 459 ret = xQueueSendFromISR(host->rx_ret_queue, &trans_desc, &awoken); in spi_slave_hd_append_rx_isr()
|
| /hal_espressif-latest/components/driver/spi/include/driver/ |
| D | spi_master.h | 216 esp_err_t spi_device_queue_trans(spi_device_handle_t handle, spi_transaction_t *trans_desc, TickTyp… 239 esp_err_t spi_device_get_trans_result(spi_device_handle_t handle, spi_transaction_t **trans_desc, T… 258 esp_err_t spi_device_transmit(spi_device_handle_t handle, spi_transaction_t *trans_desc); 281 esp_err_t spi_device_polling_start(spi_device_handle_t handle, spi_transaction_t *trans_desc, TickT… 318 esp_err_t spi_device_polling_transmit(spi_device_handle_t handle, spi_transaction_t *trans_desc);
|
| D | spi_slave.h | 143 esp_err_t spi_slave_queue_trans(spi_host_device_t host, const spi_slave_transaction_t *trans_desc, … 166 esp_err_t spi_slave_get_trans_result(spi_host_device_t host, spi_slave_transaction_t **trans_desc, … 186 esp_err_t spi_slave_transmit(spi_host_device_t host, spi_slave_transaction_t *trans_desc, TickType_…
|
| /hal_espressif-latest/components/driver/include/esp_private/ |
| D | spi_slave_internal.h | 77 …err_t spi_slave_queue_trans_isr(spi_host_device_t host, const spi_slave_transaction_t *trans_desc);
|