mtd_sam0_sdhc.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2022 Benjamin Valentin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
22 #include "mtd.h"
23 #include "sdhc.h"
24 
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29 
35 typedef struct {
39 
43 extern const mtd_desc_t mtd_sam0_sdhc_driver;
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
const mtd_desc_t mtd_sam0_sdhc_driver
sdcard device operations table for mtd
SD card interface functions for sam0 class devices.
MTD driver interface.
Definition: mtd.h:203
MTD device descriptor.
Definition: mtd.h:111
Device descriptor for mtd_sdcard device.
Definition: mtd_sam0_sdhc.h:35
sdhc_state_t state
sdcard_spi dev descriptor
Definition: mtd_sam0_sdhc.h:37
mtd_dev_t base
inherit from mtd_dev_t object
Definition: mtd_sam0_sdhc.h:36
SD Card driver context.
Definition: sdhc.h:37