19.8.5.2.2 Workflow

  1. Select the slave.
    spi_select_slave(&spi_master_instance, &slave, true);
    
  2. Start the transfer job.
    dma_start_transfer_job(&example_resource_rx);
    dma_start_transfer_job(&example_resource_tx);
    
  3. Wait for transfer done.
    while (!transfer_rx_is_done) {
        /* Wait for transfer done */
    }
    
  4. Deselect the slave.
    spi_select_slave(&spi_master_instance, &slave, false);
    
  5. Enter endless loop.
    while (true) {
    }