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

Detailed Description

Default configuration for ABP2 capaticance-to-digital converter.

Author
David Picard david.nosp@m..pic.nosp@m.ard@c.nosp@m.lerm.nosp@m.ont.i.nosp@m.n2p3.nosp@m..fr

Definition in file abp2_params.h.

#include "board.h"
#include "saul_reg.h"
#include "abp2.h"
+ Include dependency graph for abp2_params.h:

Go to the source code of this file.

Variables

static const abp2_params_t abp2_params []
 ABP2 default configuration. More...
 
static const saul_reg_info_t abp2_saul_info [][2]
 Additional meta information to keep in the SAUL registry. More...
 

Set default configuration parameters for the ABP2 driver

#define ABP2_PARAM_RNGMIN   (0)
 Default lower range: 0mbar converted to µbar.
 
#define ABP2_PARAM_RNGMAX   (160000)
 Default upper range: 160mbar converted to µbar.
 
#define ABP2_PARAMS
 Default sensor parameters. More...
 
#define ABP2_SAUL_INFO
 Sensor driver name in the SAUL framework. More...
 

Macro Definition Documentation

◆ ABP2_PARAMS

#define ABP2_PARAMS
Value:
{ \
ABP2_PARAM_BUSCFG, \
.rangeMin = ABP2_PARAM_RNGMIN, \
.rangeMax = ABP2_PARAM_RNGMAX \
}
#define ABP2_PARAM_RNGMAX
Default upper range: 160mbar converted to µbar.
Definition: abp2_params.h:69
#define ABP2_PARAM_RNGMIN
Default lower range: 0mbar converted to µbar.
Definition: abp2_params.h:65

Default sensor parameters.

Definition at line 74 of file abp2_params.h.

◆ ABP2_SAUL_INFO

#define ABP2_SAUL_INFO
Value:
{ { .name = "Pressure sensor (abp2)" }, \
{ .name = "Temperature sensor (abp2)" } \
}

Sensor driver name in the SAUL framework.

Definition at line 82 of file abp2_params.h.

Variable Documentation

◆ abp2_params

const abp2_params_t abp2_params[]
static
Initial value:
=
{
}
#define ABP2_PARAMS
Default sensor parameters.
Definition: abp2_params.h:74

ABP2 default configuration.

This variable can be used to initialize the sensor with default values as demonstrated below.

abp2_t dev;
int abp2_init(abp2_t *dev, const abp2_params_t *params)
Initialize the ABP2 sensor.
Parameters for ABP2 sensors.
Definition: abp2.h:132
Device descriptor for ABP2 sensors.
Definition: abp2.h:147

Definition at line 100 of file abp2_params.h.

◆ abp2_saul_info

const saul_reg_info_t abp2_saul_info[][2]
static
Initial value:
=
{
}
#define ABP2_SAUL_INFO
Sensor driver name in the SAUL framework.
Definition: abp2_params.h:82

Additional meta information to keep in the SAUL registry.

Definition at line 108 of file abp2_params.h.