![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
SPI transaction descriptor. More...
#include <bm/bm_spi_mngr.h>
Data Fields | |
| bm_spi_mngr_callback_begin_t | begin_callback |
| User function invoked before the first transfer of the transaction starts. | |
| bm_spi_mngr_callback_end_t | end_callback |
| User function invoked when the transaction completes or aborts after an error. | |
| void * | user_data |
| Opaque pointer passed to the optional begin and end callbacks. | |
| const struct bm_spi_mngr_transfer * | transfers |
| Array of transfers that make up the transaction. | |
| uint8_t | number_of_transfers |
| Number of entries in transfers. | |
| const nrfx_spim_config_t * | required_spim_cfg |
| Optional SPIM configuration for this transaction, NULL selects the default. | |
SPI transaction descriptor.
The manager stores only a pointer to this descriptor, so the descriptor, its transfers array, and any referenced buffers must remain valid until the transaction completes.
If required_spim_cfg is non-NULL it must remain valid until the transaction completes. If it is NULL, the default configuration passed to bm_spi_mngr_init is used.
If required_spim_cfg differs from the configuration currently in use, the module initializes the SPIM instance again before starting the transaction.