Get the length of last transaction, in bits. Should be called after ``spi_slave_hal_store_result``. Note that if last transaction is longer than configured before, the return value still the actual length.
Check whether we need to reset the DMA according to the status of last transactions. In ESP32, sometimes we may need to reset the DMA for the slave before the next transaction. Call this to check it.