mtd_sdcard.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 HAW-Hamburg
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
22 #ifndef MTD_SDCARD_H
23 #define MTD_SDCARD_H
24 
25 #include <stdint.h>
26 
27 #include "sdcard_spi.h"
28 #include "mtd.h"
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
40 typedef struct {
44 } mtd_sdcard_t;
45 
61 #ifdef DOXYGEN
62 #define CONFIG_MTD_SDCARD_ERASE
63 #endif
69 extern const mtd_desc_t mtd_sdcard_driver;
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* MTD_SDCARD_H */
const mtd_desc_t mtd_sdcard_driver
sdcard device operations table for mtd
Public interface for the sdcard_spi driver.
MTD driver interface.
Definition: mtd.h:204
MTD device descriptor.
Definition: mtd.h:112
Device descriptor for mtd_sdcard device.
Definition: mtd_sdcard.h:40
const sdcard_spi_params_t * params
params for sdcard_spi init
Definition: mtd_sdcard.h:43
mtd_dev_t base
inherit from mtd_dev_t object
Definition: mtd_sdcard.h:41
sdcard_spi_t * sd_card
sdcard_spi dev descriptor
Definition: mtd_sdcard.h:42
sdcard_spi device params
Definition: sdcard_spi.h:175
Device descriptor for sdcard_spi.
Definition: sdcard_spi.h:188