32.1.2.6 qspi_dma_register_callback
Register a function as QSPI transfer completion callback.
void qspi_dma_register_callback(
struct qspi_dma_descriptor * qspi,
const enum _qspi_dma_cb_type type,
_qspi_dma_cb_t cb
)
Register callback function specified by its type.
-
QSPI_DMA_CB_XFER_DONE: set the function that will be called on QSPI transfer completion including deactivate the CS.
-
QSPI_DMA_CB_ERROR: set the function that will be called on QSPI transfer error. Register NULL function to not use the callback.
Parameters
- qspi
-
Type: struct qspi_dma_descriptor Struct *
Pointer to the HAL QSPI instance
- type
-
Type: const enum _qspi_dma_cb_type
Callback type (_qspi_dma_cb_type)
- cb
-
Type: _qspi_dma_cb_t
Pointer to callback function
Returns
Type: void