Default configuration for ADS101x/111x devices. More...

Detailed Description

Default configuration for ADS101x/111x devices.

Author
Vincent Dupont vince.nosp@m.nt@o.nosp@m.takey.nosp@m.s.co.nosp@m.m
Matthew Blue matth.nosp@m.ew.b.nosp@m.lue.n.nosp@m.euro.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition in file ads101x_params.h.

#include "board.h"
#include "saul_reg.h"
#include "ads101x.h"
#include "ads101x_regs.h"
+ Include dependency graph for ads101x_params.h:

Go to the source code of this file.

Variables

static const ads101x_params_t ads101x_params []
 ADS101X/111x defaults if not defined for a board or application. More...
 
static const ads101x_alert_params_t ads101x_alert_params []
 ADS101X/111x alert defaults if not defined for a board or application. More...
 
static const saul_reg_info_t ads101x_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 

Set default configuration parameters for the ADS101x/111x driver

#define ADS101X_PARAM_I2C   (I2C_DEV(0))
 
#define ADS101X_PARAM_ADDR   (CONFIG_ADS101X_I2C_ADDRESS)
 
#define ADS101X_PARAM_MUX_GAIN
 
#define ADS101X_PARAM_ALERT_PIN   (GPIO_UNDEF)
 
#define ADS101X_PARAM_LOW_LIMIT   (10000U)
 
#define ADS101X_PARAM_HIGH_LIMIT   (20000U)
 
#define ADS101X_PARAMS
 
#define ADS101X_ALERT_PARAMS
 
#define ADS101X_SAUL_INFO   { .name = "ads101x" }
 

Macro Definition Documentation

◆ ADS101X_ALERT_PARAMS

#define ADS101X_ALERT_PARAMS
Value:
{ .i2c = ADS101X_PARAM_I2C, \
.addr = ADS101X_PARAM_ADDR, \
.alert_pin = ADS101X_PARAM_ALERT_PIN, \
.low_limit = ADS101X_PARAM_LOW_LIMIT, \
.high_limit = ADS101X_PARAM_HIGH_LIMIT }

Definition at line 64 of file ads101x_params.h.

◆ ADS101X_PARAM_MUX_GAIN

#define ADS101X_PARAM_MUX_GAIN
Value:
(ADS101X_AIN0_DIFFM_AIN1 \
| ADS101X_PGA_FSR_2V048)

Definition at line 44 of file ads101x_params.h.

◆ ADS101X_PARAMS

#define ADS101X_PARAMS
Value:
{ .i2c = ADS101X_PARAM_I2C, \
.addr = ADS101X_PARAM_ADDR, \
.mux_gain = ADS101X_PARAM_MUX_GAIN }

Definition at line 58 of file ads101x_params.h.

Variable Documentation

◆ ads101x_alert_params

Initial value:
=
{
ADS101X_ALERT_PARAMS
}

ADS101X/111x alert defaults if not defined for a board or application.

Definition at line 86 of file ads101x_params.h.

◆ ads101x_params

Initial value:
=
{
ADS101X_PARAMS
}

ADS101X/111x defaults if not defined for a board or application.

Definition at line 78 of file ads101x_params.h.

◆ ads101x_saul_info

const saul_reg_info_t ads101x_saul_info[]
static
Initial value:
=
{
ADS101X_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 94 of file ads101x_params.h.