mtd_sdmmc.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 HAW-Hamburg
3  * 2023 Gunar Schorcht
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
24 #ifndef MTD_SDMMC_H
25 #define MTD_SDMMC_H
26 
27 #include <stdint.h>
28 
29 #include "mtd.h"
30 #include "sdmmc/sdmmc.h"
31 
32 #ifdef __cplusplus
33 extern "C"
34 {
35 #endif
36 
42 typedef struct {
45  uint8_t sdmmc_idx;
46 } mtd_sdmmc_t;
47 
51 extern const mtd_desc_t mtd_sdmmc_driver;
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* MTD_SDMMC_H */
const mtd_desc_t mtd_sdmmc_driver
SD/MMC device operations table for mtd.
SDIO/SD/MMC device API using a low-level peripheral driver.
MTD driver interface.
Definition: mtd.h:204
MTD device descriptor.
Definition: mtd.h:112
Device descriptor for a mtd_sdmmc device.
Definition: mtd_sdmmc.h:42
uint8_t sdmmc_idx
SD/MMC peripheral index
Definition: mtd_sdmmc.h:45
sdmmc_dev_t * sdmmc
SD/MMC device descriptor.
Definition: mtd_sdmmc.h:44
mtd_dev_t base
inherit mtd_dev_t object
Definition: mtd_sdmmc.h:43
SDIO/SD/MMC device descriptor.
Definition: sdmmc.h:1269