ltc4150_params.h File Reference

Default configuration for LTC4150 coulomb counters. More...

Detailed Description

Default configuration for LTC4150 coulomb counters.

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file ltc4150_params.h.

#include "board.h"
#include "ltc4150.h"
#include "saul_reg.h"
+ Include dependency graph for ltc4150_params.h:

Go to the source code of this file.

Variables

static const ltc4150_params_t ltc4150_params []
 Configure LTC4150 devices. More...
 
static const saul_reg_info_t ltc4150_saul_info []
 Allocate and configure entries to the SAUL registry. More...
 

Set default configuration parameters for the LTC4150

#define LTC4150_PARAM_INT   (GPIO_PIN(0, 4))
 
#define LTC4150_PARAM_POL   (GPIO_UNDEF)
 
#define LTC4150_PARAM_SHUTDOWN   (GPIO_PIN(0, 5))
 
#define LTC4150_PARAM_PULSES   (45700U)
 
#define LTC4150_PARAM_FLAGS   LTC4150_EXT_PULL_UP
 
#define LTC4150_PARAM_RECS   NULL
 
#define LTC4150_PARAM_RECDATA   NULL
 
#define LTC4150_PARAMS
 

Set default SAUL info text for the LTC4150

#define LTC4150_SAULINFO
 

Macro Definition Documentation

◆ LTC4150_PARAMS

#define LTC4150_PARAMS
Value:
{ .interrupt = LTC4150_PARAM_INT, \
.polarity = LTC4150_PARAM_POL, \
.shutdown = LTC4150_PARAM_SHUTDOWN, \
.pulses_per_ah = LTC4150_PARAM_PULSES, \
.flags = LTC4150_PARAM_FLAGS, \
.recorders = LTC4150_PARAM_RECS, \
.recorder_data = LTC4150_PARAM_RECDATA }

Definition at line 54 of file ltc4150_params.h.

◆ LTC4150_SAULINFO

#define LTC4150_SAULINFO
Value:
{ .name = "LTC4150 charge" }, \
{ .name = "LTC4150 average current" }

Definition at line 69 of file ltc4150_params.h.

Variable Documentation

◆ ltc4150_params

const ltc4150_params_t ltc4150_params[]
static
Initial value:
=
{
LTC4150_PARAMS
}

Configure LTC4150 devices.

Definition at line 78 of file ltc4150_params.h.

◆ ltc4150_saul_info

const saul_reg_info_t ltc4150_saul_info[]
static
Initial value:
=
{
LTC4150_SAULINFO
}

Allocate and configure entries to the SAUL registry.

Definition at line 86 of file ltc4150_params.h.