![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| int bm_spi_mngr_init | ( | struct bm_spi_mngr * | mgr, |
| const nrfx_spim_config_t * | default_spim_cfg ) |
#include <bm_spi_mngr.h>
Initialize the SPI manager and the underlying SPIM driver.
Initializes the transaction queue and calls nrfx_spim_init with the internal event handler. On success, clears the current transaction pointer and stores this SPIM configuration.
| [in] | mgr | Manager instance to initialize. |
| [in] | default_spim_cfg | Pointer to the SPIM driver configuration. This configuration will be used whenever the scheduled transaction has required_spim_cfg set to NULL. |
| 0 | On success. |
| -EFAULT | If mgr, default_spim_cfg, the queue, or its buffer is NULL. |
| -EINVAL | If the queue size is zero. |