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

SDHC emulation bus interface. More...

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

Go to the source code of this file.

Data Structures

struct  sdhc_emul
 Node in a linked list of emulators for SDHC card devices. More...
struct  sdhc_emul_api
 Definition of the emulator API for SDHC card devices. More...

Typedefs

typedef int(* sdhc_emul_request_t) (const struct emul *target, struct sdhc_command *cmd, struct sdhc_data *data)
 Passes an SDHC request to the card emulator.
typedef int(* sdhc_emul_card_busy_t) (const struct emul *target)
 Check if the emulated card is busy.
typedef int(* sdhc_emul_card_present_t) (const struct emul *target)
 Check if the emulated card is present.

Functions

int sdhc_emul_register (const struct device *dev, struct sdhc_emul *emul)
 Register an emulated card device on the controller.
struct sdhc_emul * sdhc_emul_get_card (const struct device *dev)
 Find the first SDHC emulator registered on a controller.
void sdhc_emul_raise_interrupt (const struct device *dev, int sources)
 Raise an interrupt from an emulated SDHC card through its controller.

Detailed Description

SDHC emulation bus interface.

Defines the emulator bus types and APIs used by the SDHC emulation controller to communicate with emulated card devices.