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 
22 #ifndef AT25XXX_MTD_H
23 #define AT25XXX_MTD_H
24 
25 #include <stdint.h>
26 
27 #include "at25xxx.h"
28 #include "mtd.h"
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
40 typedef struct {
45 
49 extern const mtd_desc_t mtd_at25xxx_driver;
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif /* AT25XXX_MTD_H */
56 
mtd_dev_t
MTD device descriptor.
Definition: mtd.h:58
at25xxx_t
struct that represents an AT25XXX device
Definition: at25xxx.h:52
mtd_desc
MTD driver interface.
Definition: mtd.h:75
mtd_at25xxx_t::base
mtd_dev_t base
inherit from mtd_dev_t object
Definition: mtd.h:41
at25xxx.h
Driver for the AT25xxx series of EEPROMs.
mtd.h
Interface definition for at25xxx MTD wrapper.
mtd_at25xxx_t::at25xxx_eeprom
at25xxx_t * at25xxx_eeprom
at25xxx_eeprom dev descriptor
Definition: mtd.h:42
mtd_at25xxx_t::params
const at25xxx_params_t * params
params for at25xxx_eeprom init
Definition: mtd.h:43
mtd_at25xxx_driver
const mtd_desc_t mtd_at25xxx_driver
mtd_at25xxx_eeprom device operations table for mtd
at25xxx_params_t
struct holding all params needed for device initialization
Definition: at25xxx.h:39
mtd_at25xxx_t
Device descriptor for mtd_at25xxx device.
Definition: mtd.h:40