Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mspi_emul.h File Reference

Public APIs for the MSPI emulation drivers. More...

#include <zephyr/device.h>
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/mspi.h>
#include <zephyr/sys/slist.h>
#include <zephyr/types.h>

Go to the source code of this file.

Data Structures

struct  emul_mspi_device_api
 Definition of the MSPI device emulator API. More...
 
struct  mspi_emul
 Node in a linked list of emulators for MSPI devices. More...
 
struct  emul_mspi_driver_api
 Definition of the MSPI controller emulator API. More...
 

Typedefs

typedef struct mspi_emul *(* mspi_emul_find_emul) (const struct device *dev, uint16_t dev_idx)
 Find an emulator present on a MSPI bus.
 
typedef int(* mspi_emul_trigger_event) (const struct device *dev, enum mspi_bus_event evt_type)
 Triggers an event on the emulator of MSPI controller side which causes calling specific callbacks.
 
typedef int(* emul_mspi_dev_api_transceive) (const struct emul *target, const struct mspi_xfer_packet *packets, uint32_t num_packet, bool async, uint32_t timeout)
 Loopback MSPI transceive request to the device emulator as no real hardware attached.
 

Functions

int mspi_emul_register (const struct device *dev, struct mspi_emul *emul)
 Register an emulated device on the controller.
 

Detailed Description

Public APIs for the MSPI emulation drivers.