![]() |
nrfxlib API 3.3.99
|
Quad Serial Peripheral Interface soft peripheral (sQSPI) driver. More...
Data Structures | |
| struct | nrf_sqspi_t |
| QSPI2 driver instance structure. More... | |
| struct | nrf_sqspi_evt_t |
| QSPI event reported by a nrf_sqspi_callback_t function. More... | |
| struct | nrf_sqspi_pins_t |
| Pins selection for the QSPI peripheral. More... | |
| struct | nrf_sqspi_cfg_t |
| QSPI driver instance configuration structure. More... | |
| struct | nrf_sqspi_spi_xip_cfg_t |
| Execute-in-place (XIP) configuration. More... | |
| struct | nrf_sqspi_dev_cfg_t |
| QSPI device configuration structure. More... | |
| struct | nrf_sqspi_xfer_t |
| Configuration of a single data transfer. More... | |
| struct | nrf_sqspi_data_fmt_t |
| Data formatting configuration. More... | |
Macros | |
| #define | NRF_SQSPI_PINS_UNUSED UINT32_MAX |
| Value indicating that the pin is not used. | |
| #define | NRF_SQSPI_FLAG_HOLD_XFER (1UL << 0) |
| Flag indicating that the transfer is prepared but not started. | |
Typedefs | |
| typedef void(* | nrf_sqspi_callback_t) (nrf_sqspi_t const *p_qspi, nrf_sqspi_evt_t *p_event, void *p_context) |
| Callback function called when an asynchronous operation ends. | |
Functions | |
| nrfx_err_t | nrf_sqspi_init (nrf_sqspi_t const *p_qspi, nrf_sqspi_cfg_t const *p_config) |
| Initialize the QSPI driver instance. | |
| bool | nrf_sqspi_init_check (nrf_sqspi_t const *p_qspi) |
| Check if the QSPI driver instance is initialized. | |
| nrfx_err_t | nrf_sqspi_reconfigure (nrf_sqspi_t const *p_qspi, nrf_sqspi_cfg_t const *p_config) |
| Reconfigure the QSPI driver instance. | |
| void | nrf_sqspi_uninit (nrf_sqspi_t const *p_qspi) |
| Uninitialize the QSPI driver instance. | |
| nrfx_err_t | nrf_sqspi_dev_cfg (nrf_sqspi_t const *p_qspi, nrf_sqspi_dev_cfg_t const *p_config, nrf_sqspi_callback_t callback, void *p_context) |
| Configure a device attached to the QSPI-controlled bus. | |
| nrfx_err_t | nrf_sqspi_dev_data_fmt_set (nrf_sqspi_t const *p_qspi, nrf_sqspi_data_fmt_t *p_data_fmt) |
| Configure the data format for the device. | |
| nrfx_err_t | nrf_sqspi_activate (nrf_sqspi_t const *p_qspi) |
| Function for activating the QSPI driver instance. | |
| nrfx_err_t | nrf_sqspi_deactivate (nrf_sqspi_t const *p_qspi) |
| Function for deactivating the QSPI driver instance. | |
| nrfx_err_t | nrf_sqspi_xfer (nrf_sqspi_t const *p_qspi, nrf_sqspi_xfer_t const *p_xfer, size_t xfer_count, uint32_t flags) |
| Transfer data using the serial interface. | |
| nrfx_err_t | nrf_sqspi_xfer_prepare (nrf_sqspi_t const *p_qspi, nrf_sqspi_xfer_t const *p_xfer, size_t xfer_count) |
| Prepare the serial interface to transfer the data. | |
| uint32_t * | nrf_sqspi_start_task_address_get (nrf_sqspi_t const *p_qspi) |
| Get an address of the task register to start the prepared transfer. | |
| void | nrf_sqspi_irq_handler (void) |
| IRQ handler function for the QSPI driver. | |
Quad Serial Peripheral Interface soft peripheral (sQSPI) driver.
This API describes the driver operation of a QSPI peripheral or similar peripherals capable of SPI-like serial data transfers (SPI, multi-line SPI, SSP, Microwire, Hyperbus, etc).
This API can be used by both controller and target device in the serial communication bus.
The functions in this driver are not enttrant if they operate on the same QSPI peripheral. It is the responsibility of the API user to ensure the functions are not preempted by each other. An exception is the callback function context. Multiple functions from this API can be called from the callback.