sdp3x_params.h File Reference

Device driver params interface for the SDP3x sensor. More...

Detailed Description

Device driver params interface for the SDP3x sensor.

Author
Dirk Ehmen ehmen.nosp@m.@ibr.nosp@m..cs.t.nosp@m.u-bs.nosp@m..de
Nishchay Agrawal f2016.nosp@m.088@.nosp@m.pilan.nosp@m.i.bi.nosp@m.ts-pi.nosp@m.lani.nosp@m..ac.i.nosp@m.n

Definition in file sdp3x_params.h.

#include "board.h"
#include "sdp3x.h"
#include "saul_reg.h"
#include "periph/gpio.h"
+ Include dependency graph for sdp3x_params.h:

Go to the source code of this file.

Macros

#define SDP3X_NUMOF   ARRAY_SIZE(sdp3x_params)
 Get the number of configured SDP3X devices.
 

Variables

static const sdp3x_params_t sdp3x_params []
 Configure SDP3X. More...
 
static const saul_reg_info_t sdp3x_saul_info [SDP3X_NUMOF]
 Configure SAUL registry entries. More...
 

SDP3x I2C addresses

#define SDP3X_ADDR1   (0x21) /* 7 bit address */
 
#define SDP3X_ADDR2   (0x22) /* 7 bit address */
 
#define SDP3X_ADDR3   (0x23) /* 7 bit address */
 

SDP3x Models

#define SDP3X_MODEL_31   1
 
#define SDP3X_MODEL_32   2
 
#define SDP31_PRODUCT_NO_BYTE_0   0x03
 
#define SDP31_PRODUCT_NO_BYTE_1   0x01
 
#define SDP31_PRODUCT_NO_BYTE_3   0x01
 

Set default configuration parameters for the SDP3X

#define SDP3X_PARAM_I2C_DEV   I2C_DEV(0)
 
#define SDP3X_PARAM_I2C_ADDR   SDP3X_ADDR1
 
#define SDP3X_PARAM_IRQ_PIN   GPIO_UNDEF
 
#define SDP3X_PARAMS
 
#define SDP3X_SAUL_INFO   { .name = "sdp3x" }
 

Macro Definition Documentation

◆ SDP3X_PARAMS

#define SDP3X_PARAMS
Value:
{ .i2c_dev = SDP3X_PARAM_I2C_DEV, \
.i2c_addr = SDP3X_PARAM_I2C_ADDR, \
.irq_pin = SDP3X_PARAM_IRQ_PIN }

Definition at line 69 of file sdp3x_params.h.

Variable Documentation

◆ sdp3x_params

const sdp3x_params_t sdp3x_params[]
static
Initial value:
=
{
SDP3X_PARAMS
}

Configure SDP3X.

Definition at line 83 of file sdp3x_params.h.

◆ sdp3x_saul_info

const saul_reg_info_t sdp3x_saul_info[SDP3X_NUMOF]
static
Initial value:
=
{
SDP3X_SAUL_INFO
}

Configure SAUL registry entries.

Definition at line 96 of file sdp3x_params.h.