Loading...
Searching...
No Matches
mtd_at24cxxx.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Otto-von-Guericke Universität
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
21
22#include "at24cxxx.h"
23#include "mtd.h"
24
25#ifdef __cplusplus
26extern "C"
27{
28#endif
29
40
44#define MTD_AT24CXXX_INIT(dev_p, params_p) \
45(mtd_at24cxxx_t) { \
46 .base = { \
47 .driver = &mtd_at24cxxx_driver \
48 }, \
49 .at24cxxx_eeprom = (dev_p), \
50 .params = (params_p) \
51}
52
57
58#ifdef __cplusplus
59}
60#endif
61
Device driver interface for AT24CXXX EEPROM units.
struct at24cxxx_params at24cxxx_params_t
Struct that holds initialization parameters.
const mtd_desc_t mtd_at24cxxx_driver
MTD EEPROM driver for at24cxxx EEPROM.
struct mtd_desc mtd_desc_t
MTD driver interface.
Definition mtd.h:100
Struct that represents an AT24CXXX device.
Definition at24cxxx.h:99
Device descriptor for mtd at24cxxx device.
mtd_dev_t base
inherit from mtd_dev_t object
const at24cxxx_params_t * params
at24cxxx parameters
at24cxxx_t * at24cxxx_eeprom
at24cxxx device descriptor
MTD device descriptor.
Definition mtd.h:108