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 
9 #pragma once
10 
24 #include <stdint.h>
25 
26 #include "sdcard_spi.h"
27 #include "mtd.h"
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
39 typedef struct {
43 } mtd_sdcard_t;
44 
60 #ifdef DOXYGEN
61 #define CONFIG_MTD_SDCARD_ERASE
62 #endif
68 extern const mtd_desc_t mtd_sdcard_driver;
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
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:203
MTD device descriptor.
Definition: mtd.h:111
Device descriptor for mtd_sdcard device.
Definition: mtd_sdcard.h:39
const sdcard_spi_params_t * params
params for sdcard_spi init
Definition: mtd_sdcard.h:42
mtd_dev_t base
inherit from mtd_dev_t object
Definition: mtd_sdcard.h:40
sdcard_spi_t * sd_card
sdcard_spi dev descriptor
Definition: mtd_sdcard.h:41
sdcard_spi device params
Definition: sdcard_spi.h:174
Device descriptor for sdcard_spi.
Definition: sdcard_spi.h:187