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

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

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

Go to the source code of this file.

Data Structures

struct  spi_emul
 Node in a linked list of emulators for SPI devices. More...
 
struct  spi_emul_api
 Definition of the emulator API. More...
 

Typedefs

typedef int(* spi_emul_io_t) (const struct emul *target, const struct spi_config *config, const struct spi_buf_set *tx_bufs, const struct spi_buf_set *rx_bufs)
 Passes SPI messages to the emulator.
 

Functions

int spi_emul_register (const struct device *dev, struct spi_emul *emul)
 Register an emulated device on the controller.
 
uint32_t spi_emul_get_config (const struct device *dev)
 Back door to allow an emulator to retrieve the host configuration.
 

Detailed Description

Public APIs for the SPI emulation drivers.