Default configuration for AD7746 capaticance-to-digital converter. More...

Detailed Description

Default configuration for AD7746 capaticance-to-digital converter.

Author
Leandro Lanzieri leand.nosp@m.ro.l.nosp@m.anzie.nosp@m.ri@h.nosp@m.aw-ha.nosp@m.mbur.nosp@m.g.de

Definition in file ad7746_params.h.

#include "board.h"
#include "saul_reg.h"
#include "ad7746.h"
+ Include dependency graph for ad7746_params.h:

Go to the source code of this file.

Variables

static const ad7746_params_t ad7746_params []
 AD7746 configuration. More...
 
static const saul_reg_info_t ad7746_saul_info []
 Additional meta information to keep in the SAUL registry. More...
 

Set default configuration parameters for the AD7746 driver

#define AD7746_PARAM_I2C   (I2C_DEV(0))
 
#define AD7746_PARAM_ADDR   (0x48)
 
#define AD7746_PARAM_CAP_SR   (AD7746_CAP_SR_091)
 
#define AD7746_PARAM_VT_SR   (AD7746_VT_SR_082)
 
#define AD7746_PARAM_VT_MD   (AD7746_VT_MD_TEMP)
 
#define AD7746_PARAM_DAC_A   (39) /* ~1.2pF */
 
#define AD7746_PARAM_DAC_B   (0)
 
#define AD7746_PARAM_EXC_CONFIG   (AD7746_EXC_A)
 
#define AD7746_PARAM_CAP_IN   (AD7746_CAP_IN_1)
 
#define AD7746_PARAMS
 
#define AD7746_SAUL_INFO   { .name = "ad7746" }
 

Macro Definition Documentation

◆ AD7746_PARAMS

#define AD7746_PARAMS
Value:
{ .i2c = AD7746_PARAM_I2C, \
.addr = AD7746_PARAM_ADDR, \
.dac_a_cap = AD7746_PARAM_DAC_A, \
.dac_b_cap = AD7746_PARAM_DAC_B, \
.exc_config = AD7746_PARAM_EXC_CONFIG, \
.cap_sample_rate = AD7746_PARAM_CAP_SR, \
.vt_sample_rate = AD7746_PARAM_VT_SR, \
.vt_mode = AD7746_PARAM_VT_MD, \
.cap_input = AD7746_PARAM_CAP_IN }

Definition at line 64 of file ad7746_params.h.

Variable Documentation

◆ ad7746_params

Initial value:
=
{
AD7746_PARAMS
}

AD7746 configuration.

Definition at line 82 of file ad7746_params.h.

◆ ad7746_saul_info

const saul_reg_info_t ad7746_saul_info[]
static
Initial value:
=
{
AD7746_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 91 of file ad7746_params.h.