Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
|
3.7.0 |
MSPI callback API. More...
Data Structures | |
struct | mspi_event_data |
MSPI event data. More... | |
struct | mspi_event |
MSPI event. More... | |
struct | mspi_callback_context |
MSPI callback context. More... | |
Typedefs | |
typedef void(* | mspi_callback_handler_t) (struct mspi_callback_context *mspi_cb_ctx,...) |
Define the application callback handler function signature. | |
Functions | |
static int | mspi_register_callback (const struct device *controller, const struct mspi_dev_id *dev_id, const enum mspi_bus_event evt_type, mspi_callback_handler_t cb, struct mspi_callback_context *ctx) |
Register the mspi callback functions. | |
MSPI callback API.
mspi_callback_handler_t |
#include <zephyr/drivers/mspi.h>
Define the application callback handler function signature.
mspi_cb_ctx | Pointer to the MSPI callback context |
|
inlinestatic |
#include <zephyr/drivers/mspi.h>
Register the mspi callback functions.
This routines provides a generic interface to register mspi callback functions. In generally it should be called before mspi_transceive.
controller | Pointer to the device structure for the driver instance. |
dev_id | Pointer to the device ID structure from a device. |
evt_type | The event type associated the callback. |
cb | Pointer to the user implemented callback function. |
ctx | Pointer to the callback context. |
0 | If successful. |
-ENOTSUP |