![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
SPI transaction manager instance. More...
#include <bm/bm_spi_mngr.h>
Data Fields | ||
| struct { | ||
| const struct bm_spi_mngr_transaction *volatile current_transaction | ||
| Transaction currently being executed (NULL when idle). More... | ||
| nrfx_spim_config_t default_configuration | ||
| Default SPIM configuration (copy of the argument to bm_spi_mngr_init) More... | ||
| const nrfx_spim_config_t * current_configuration | ||
| Pointer to the SPIM configuration currently applied to the instance. More... | ||
| uint8_t volatile current_transfer_idx | ||
Index of the active transfer within current_transaction. More... | ||
| } | cb | |
| Control block (writable runtime state) for this instance. | ||
| struct { | ||
| size_t size | ||
| Maximum number of pending transactions (not counting the one in progress). More... | ||
| struct ring_buf ring_buf | ||
Zephyr ring_buf used as a FIFO of transaction pointers. More... | ||
| uint8_t * byte_storage | ||
Buffer that ring_buf uses to store the queued transaction pointers. More... | ||
| } | queue | |
| Pending transaction queue (buffer + Zephyr ring_buf). | ||
| nrfx_spim_t * | spim | |
| nrfx SPIM driver instance. | ||
SPI transaction manager instance.
Instantiate with BM_SPI_MNGR_DEF. Do not modify fields directly.