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 
60 #ifdef DOXYGEN
61 #define CONFIG_MTD_SDCARD_ERASE
62 #endif
63 
68 extern const mtd_desc_t mtd_sdcard_driver;
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* MTD_SDCARD_H */
75 
mtd_dev_t
MTD device descriptor.
Definition: mtd.h:58
mtd_sdcard_t::params
const sdcard_spi_params_t * params
params for sdcard_spi init
Definition: mtd_sdcard.h:43
mtd_sdcard_t
Device descriptor for mtd_sdcard device.
Definition: mtd_sdcard.h:40
mtd_desc
MTD driver interface.
Definition: mtd.h:75
sdcard_spi.h
Public interface for the sdcard_spi driver.
mtd_sdcard_t::sd_card
sdcard_spi_t * sd_card
sdcard_spi dev descriptor
Definition: mtd_sdcard.h:42
mtd_sdcard_driver
const mtd_desc_t mtd_sdcard_driver
sdcard device operations table for mtd
mtd.h
mtd_sdcard_t::base
mtd_dev_t base
inherit from mtd_dev_t object
Definition: mtd_sdcard.h:41
sdcard_spi_params_t
sdcard_spi device params
Definition: sdcard_spi.h:174
sdcard_spi_t
Device descriptor for sdcard_spi.
Definition: sdcard_spi.h:187