17#ifndef ZEPHYR_INCLUDE_DRIVERS_SDHC_SDHC_EMUL_H_
18#define ZEPHYR_INCLUDE_DRIVERS_SDHC_SDHC_EMUL_H_
APIs and macros for the Zephyr device model.
int sdhc_emul_clear_fault(const struct device *dev)
Clear any active fault injection.
uint8_t * sdhc_emul_get_storage(const struct device *dev)
Get a pointer to the emulated card storage.
int sdhc_emul_set_fault(const struct device *dev, uint8_t cmd_index)
Set fault injection on a specific CMD index.
int sdhc_emul_set_card_present(const struct device *dev, bool present)
Set the virtual card presence state.
void sdhc_emul_trigger_sdio_irq(const struct device *dev, uint8_t fn)
Trigger an SDIO interrupt.
int sdhc_emul_get_block_count(const struct device *dev, uint32_t *count)
Get the number of blocks in the emulated card.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:543