Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mmc.h
Go to the documentation of this file.
1/*
2 * Copyright 2022 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_SD_MMC_H_
13#define ZEPHYR_INCLUDE_SD_MMC_H_
14
15#include <zephyr/device.h>
16#include <zephyr/drivers/sdhc.h>
17#include <zephyr/sd/sd.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
37int mmc_write_blocks(struct sd_card *card, const uint8_t *wbuf,
38 uint32_t start_block, uint32_t num_blocks);
39
54int mmc_read_blocks(struct sd_card *card, uint8_t *rbuf,
55 uint32_t start_block, uint32_t num_blocks);
56
70int mmc_ioctl(struct sd_card *card, uint8_t cmd, void *buf);
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif /* ZEPHYR_INCLUDE_SD_MMC_H_ */
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition ft8xx_reference_api.h:153
int mmc_ioctl(struct sd_card *card, uint8_t cmd, void *buf)
Get I/O control data from MMC card.
int mmc_read_blocks(struct sd_card *card, uint8_t *rbuf, uint32_t start_block, uint32_t num_blocks)
Read block from MMC card to buffer.
int mmc_write_blocks(struct sd_card *card, const uint8_t *wbuf, uint32_t start_block, uint32_t num_blocks)
Write blocks to MMC card from buffer.
Public API for SD subsystem.
SD Host Controller public API header file.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
SD card structure.
Definition sd.h:63