Loading...
Searching...
No Matches
at24mac_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Benjamin Valentin
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
20
21#include "board.h"
22#include "at24mac.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifndef AT24MAC_PARAM_I2C_DEV
33#define AT24MAC_PARAM_I2C_DEV I2C_DEV(0)
34#endif
35#ifndef AT24MAC_PARAM_I2C_ADDR
36#define AT24MAC_PARAM_I2C_ADDR (0x58)
37#endif
38#ifndef AT24MAC_PARAM_TYPE
39#define AT24MAC_PARAM_TYPE (AT24MAC6XX)
40#endif
41
42#ifndef AT24MAC_PARAMS
43#define AT24MAC_PARAMS { .i2c_dev = AT24MAC_PARAM_I2C_DEV, \
44 .i2c_addr = AT24MAC_PARAM_I2C_ADDR,\
45 .type = AT24MAC_PARAM_TYPE }
46#endif
48
53{
54 AT24MAC_PARAMS
55};
56
57#ifdef __cplusplus
58}
59#endif
60
static const at24mac_params_t at24mac_params[]
Configuration for AT24MACs.
struct holding all params needed for device communication
Definition at24mac.h:49