Loading...
Searching...
No Matches
lc709203f_params.h
Go to the documentation of this file.
1/*
2 * Copyright 2017, RWTH Aachen. All rights reserved.
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
20#ifndef LC709203F_PARAMS_H
21#define LC709203F_PARAMS_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include "board.h" /* THIS INCLUDE IS MANDATORY */
28#include "lc709203f.h"
29
34#ifndef LC709203F_PARAMS_I2C
35#define LC709203F_PARAMS_I2C (I2C_DEV(0))
36#endif
37#ifndef LC709203F_PARAMS_ADDR
38#define LC709203F_PARAMS_ADDR (0xb)
39#endif
40#ifndef LC709203F_PARAMS_ALARM_PIN
41#define LC709203F_PARAMS_ALARM_PIN GPIO_PIN(4, 6)
42#endif
43
44#ifndef LC709203F_PARAMS
45#define LC709203F_PARAMS { .alarm_pin = LC709203F_PARAMS_ALARM_PIN, \
46 .bus = LC709203F_PARAMS_I2C, \
47 .addr = LC709203F_PARAMS_ADDR }
48#endif
55 #ifdef LC709203F_PARAMS_BOARD
56 LC709203F_PARAMS_BOARD
57 #else
58 LC709203F_PARAMS
59 #endif
60};
61
62#ifdef __cplusplus
63}
64#endif
65#endif /* LC709203F_PARAMS_H */
Device driver interface for the LC709203F Battery Fuel Gauge.
static const lc709203f_params_t params_default[]
Allocation of LC709203f configuration.
Parameter struct for driver initialization.
Definition lc709203f.h:88