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 
10 #pragma once
11 
26 #include <stdint.h>
27 
28 #include "mtd.h"
29 #include "sdmmc/sdmmc.h"
30 
31 #ifdef __cplusplus
32 extern "C"
33 {
34 #endif
35 
41 typedef struct {
44  uint8_t sdmmc_idx;
45 } mtd_sdmmc_t;
46 
50 extern const mtd_desc_t mtd_sdmmc_driver;
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
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:203
MTD device descriptor.
Definition: mtd.h:111
Device descriptor for a mtd_sdmmc device.
Definition: mtd_sdmmc.h:41
uint8_t sdmmc_idx
SD/MMC peripheral index
Definition: mtd_sdmmc.h:44
sdmmc_dev_t * sdmmc
SD/MMC device descriptor.
Definition: mtd_sdmmc.h:43
mtd_dev_t base
inherit mtd_dev_t object
Definition: mtd_sdmmc.h:42
SDIO/SD/MMC device descriptor.
Definition: sdmmc.h:1268