mtd.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 ML!PA Consulting GmbH
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 "at25xxx.h"
27 #include "mtd.h"
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
39 typedef struct {
44 
48 extern const mtd_desc_t mtd_at25xxx_driver;
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
Driver for the AT25xxx series of EEPROMs.
const mtd_desc_t mtd_at25xxx_driver
mtd_at25xxx_eeprom device operations table for mtd
struct holding all params needed for device initialization
Definition: at25xxx.h:38
struct that represents an AT25XXX device
Definition: at25xxx.h:51
Device descriptor for mtd_at25xxx device.
Definition: mtd.h:39
const at25xxx_params_t * params
params for at25xxx_eeprom init
Definition: mtd.h:42
mtd_dev_t base
inherit from mtd_dev_t object
Definition: mtd.h:40
at25xxx_t * at25xxx_eeprom
at25xxx_eeprom dev descriptor
Definition: mtd.h:41
MTD driver interface.
Definition: mtd.h:203
MTD device descriptor.
Definition: mtd.h:111