19#ifndef LTC4150_PARAMS_H
20#define LTC4150_PARAMS_H
34#ifndef LTC4150_PARAM_INT
35#define LTC4150_PARAM_INT (GPIO_PIN(0, 4))
37#ifndef LTC4150_PARAM_POL
38#define LTC4150_PARAM_POL (GPIO_UNDEF)
40#ifndef LTC4150_PARAM_SHUTDOWN
41#define LTC4150_PARAM_SHUTDOWN (GPIO_PIN(0, 5))
43#ifndef LTC4150_PARAM_PULSES
44#define LTC4150_PARAM_PULSES (45700U)
46#ifndef LTC4150_PARAM_FLAGS
47#define LTC4150_PARAM_FLAGS LTC4150_EXT_PULL_UP
49#ifndef LTC4150_PARAM_RECS
50#define LTC4150_PARAM_RECS NULL
51#define LTC4150_PARAM_RECDATA NULL
54#define LTC4150_PARAMS { .interrupt = LTC4150_PARAM_INT, \
55 .polarity = LTC4150_PARAM_POL, \
56 .shutdown = LTC4150_PARAM_SHUTDOWN, \
57 .pulses_per_ah = LTC4150_PARAM_PULSES, \
58 .flags = LTC4150_PARAM_FLAGS, \
59 .recorders = LTC4150_PARAM_RECS, \
60 .recorder_data = LTC4150_PARAM_RECDATA }
68#ifndef LTC4150_SAULINFO
69#define LTC4150_SAULINFO { .name = "LTC4150 charge" }, \
70 { .name = "LTC4150 average current" }
static const saul_reg_info_t ltc4150_saul_info[]
Allocate and configure entries to the SAUL registry.
static const ltc4150_params_t ltc4150_params[]
Configure LTC4150 devices.
SAUL registry interface definition.
Parameters required to set up the LTC4150 coulomb counter.
Additional data to collect for each entry.