Loading...
Searching...
No Matches
at24mac_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Benjamin Valentin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "at24mac.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#ifndef AT24MAC_PARAM_I2C_DEV
30#define AT24MAC_PARAM_I2C_DEV I2C_DEV(0)
31#endif
32#ifndef AT24MAC_PARAM_I2C_ADDR
33#define AT24MAC_PARAM_I2C_ADDR (0x58)
34#endif
35#ifndef AT24MAC_PARAM_TYPE
36#define AT24MAC_PARAM_TYPE (AT24MAC6XX)
37#endif
38
39#ifndef AT24MAC_PARAMS
40#define AT24MAC_PARAMS { .i2c_dev = AT24MAC_PARAM_I2C_DEV, \
41 .i2c_addr = AT24MAC_PARAM_I2C_ADDR,\
42 .type = AT24MAC_PARAM_TYPE }
43#endif
45
50{
51 AT24MAC_PARAMS
52};
53
54#ifdef __cplusplus
55}
56#endif
57
static const at24mac_params_t at24mac_params[]
Configuration for AT24MACs.
struct holding all params needed for device communication
Definition at24mac.h:49