![]() |
nrfxlib API 3.4.99
|
| nrf_sqspi_error_t nrf_sqspi_init | ( | nrf_sqspi_t const * | p_qspi, |
| nrf_sqspi_cfg_t const * | p_config ) |
#include <nrf_sqspi.h>
Initialize the QSPI driver instance.
This function configures the peripheral.
This function configures the SoC peripheral attached to the serial bus. To configure the devices on the bus use nrf_sqspi_dev_cfg.
| [in] | p_qspi | Identifier of the QSPI instance to initialize. |
| [in] | p_config | Pointer to the structure with the initial configuration. |
| NRF_SQSPI_SUCCESS | Initialization was successful. |
| NRF_SQSPI_ERROR_INVALID_STATE | The driver is already initialized. |
| NRF_SQSPI_ERROR_INVALID_PARAM | The pin configuration is incorrect. |
SPSYNC.DPPIMAP register while starting, and this driver resets the matching host-side state. Anything published with nrf_sqspi_dppi_role_map_set or nrf_sqspi_dppi_subscribe_enable therefore does not survive an uninit/init cycle and has to be published again afterwards, before the first request. Nothing has to be undone before uninit.