Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sdmmc.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_SDMMC_H_
13#define ZEPHYR_INCLUDE_SD_SDMMC_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 sdmmc_write_blocks(struct sd_card *card, const uint8_t *wbuf,
38 uint32_t start_block, uint32_t num_blocks);
39
54int sdmmc_read_blocks(struct sd_card *card, uint8_t *rbuf,
55 uint32_t start_block, uint32_t num_blocks);
56
68int sdmmc_ioctl(struct sd_card *card, uint8_t cmd, void *buf);
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* ZEPHYR_INCLUDE_SD_SDMMC_H_ */
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition ft8xx_reference_api.h:153
Public API for SD subsystem.
SD Host Controller public API header file.
int sdmmc_read_blocks(struct sd_card *card, uint8_t *rbuf, uint32_t start_block, uint32_t num_blocks)
Read block from SD card to buffer.
int sdmmc_write_blocks(struct sd_card *card, const uint8_t *wbuf, uint32_t start_block, uint32_t num_blocks)
Write blocks to SD card from buffer.
int sdmmc_ioctl(struct sd_card *card, uint8_t cmd, void *buf)
Get I/O control data from SD card.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
SD card structure.
Definition sd.h:63