![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| #define BM_SPI_MNGR_DEF | ( | _name, | |
| _queue_size, | |||
| _spim_inst ) |
#include <bm_spi_mngr.h>
Macro for defining an SPI transaction manager instance.
This macro allocates a static buffer for the transaction queue. Therefore, use it in only one place in the code for a given instance name.
The queue size is the maximum number of pending transactions not counting the one that is running. For an empty queue with size of for example 4 elements, it is possible to schedule up to 5 transactions.
| [in] | _name | Name of the instance to be created. |
| [in] | _queue_size | Size of the transaction queue (maximum number of pending transactions). |
| [in] | _spim_inst | Index of the SPIM hardware instance to be used. |