Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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.
 

Detailed Description

MSPI callback API .

Typedef Documentation

◆ mspi_callback_handler_t

typedef void(* mspi_callback_handler_t) (struct mspi_callback_context *mspi_cb_ctx,...)

#include <zephyr/drivers/mspi.h>

Define the application callback handler function signature.

Parameters
mspi_cb_ctxPointer to the MSPI callback context

Function Documentation

◆ mspi_register_callback()

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 )
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.

Parameters
controllerPointer to the device structure for the driver instance.
dev_idPointer to the device ID structure from a device.
evt_typeThe event type associated the callback.
cbPointer to the user implemented callback function.
ctxPointer to the callback context.
Return values
0If successful.
-ENOTSUP