Loading...
Searching...
No Matches
mtd_at24cxxx.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Otto-von-Guericke Universität
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
25#include "at24cxxx.h"
26#include "mtd.h"
27
28#ifdef __cplusplus
29extern "C"
30{
31#endif
32
43
47#define MTD_AT24CXXX_INIT(dev_p, params_p) \
48(mtd_at24cxxx_t) { \
49 .base = { \
50 .driver = &mtd_at24cxxx_driver \
51 }, \
52 .at24cxxx_eeprom = (dev_p), \
53 .params = (params_p) \
54}
55
60
61#ifdef __cplusplus
62}
63#endif
64
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:103
Struct that represents an AT24CXXX device.
Definition at24cxxx.h:102
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:111