Loading...
Searching...
No Matches
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.
 
static const saul_reg_info_t sdp3x_saul_info [SDP3X_NUMOF]
 Configure SAUL registry entries.
 

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

◆ SDP31_PRODUCT_NO_BYTE_0

#define SDP31_PRODUCT_NO_BYTE_0   0x03

Definition at line 49 of file sdp3x_params.h.

◆ SDP31_PRODUCT_NO_BYTE_1

#define SDP31_PRODUCT_NO_BYTE_1   0x01

Definition at line 50 of file sdp3x_params.h.

◆ SDP31_PRODUCT_NO_BYTE_3

#define SDP31_PRODUCT_NO_BYTE_3   0x01

Definition at line 51 of file sdp3x_params.h.

◆ SDP3X_ADDR1

#define SDP3X_ADDR1   (0x21) /* 7 bit address */

Definition at line 37 of file sdp3x_params.h.

◆ SDP3X_ADDR2

#define SDP3X_ADDR2   (0x22) /* 7 bit address */

Definition at line 38 of file sdp3x_params.h.

◆ SDP3X_ADDR3

#define SDP3X_ADDR3   (0x23) /* 7 bit address */

Definition at line 39 of file sdp3x_params.h.

◆ SDP3X_MODEL_31

#define SDP3X_MODEL_31   1

Definition at line 46 of file sdp3x_params.h.

◆ SDP3X_MODEL_32

#define SDP3X_MODEL_32   2

Definition at line 47 of file sdp3x_params.h.

◆ SDP3X_NUMOF

#define SDP3X_NUMOF   ARRAY_SIZE(sdp3x_params)

Get the number of configured SDP3X devices.

Definition at line 91 of file sdp3x_params.h.

◆ SDP3X_PARAM_I2C_ADDR

#define SDP3X_PARAM_I2C_ADDR   SDP3X_ADDR1

Definition at line 62 of file sdp3x_params.h.

◆ SDP3X_PARAM_I2C_DEV

#define SDP3X_PARAM_I2C_DEV   I2C_DEV(0)

Definition at line 59 of file sdp3x_params.h.

◆ SDP3X_PARAM_IRQ_PIN

#define SDP3X_PARAM_IRQ_PIN   GPIO_UNDEF

Definition at line 65 of file sdp3x_params.h.

◆ 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.

◆ SDP3X_SAUL_INFO

#define SDP3X_SAUL_INFO   { .name = "sdp3x" }

Definition at line 75 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.