37#define SDP3X_ADDR1 (0x21)
38#define SDP3X_ADDR2 (0x22)
39#define SDP3X_ADDR3 (0x23)
46#define SDP3X_MODEL_31 1
47#define SDP3X_MODEL_32 2
49#define SDP31_PRODUCT_NO_BYTE_0 0x03
50#define SDP31_PRODUCT_NO_BYTE_1 0x01
51#define SDP31_PRODUCT_NO_BYTE_3 0x01
58#ifndef SDP3X_PARAM_I2C_DEV
59#define SDP3X_PARAM_I2C_DEV I2C_DEV(0)
61#ifndef SDP3X_PARAM_I2C_ADDR
62#define SDP3X_PARAM_I2C_ADDR SDP3X_ADDR1
64#ifndef SDP3X_PARAM_IRQ_PIN
65#define SDP3X_PARAM_IRQ_PIN GPIO_UNDEF
69#define SDP3X_PARAMS { .i2c_dev = SDP3X_PARAM_I2C_DEV, \
70 .i2c_addr = SDP3X_PARAM_I2C_ADDR, \
71 .irq_pin = SDP3X_PARAM_IRQ_PIN }
74#ifndef SDP3X_SAUL_INFO
75#define SDP3X_SAUL_INFO { .name = "sdp3x" }
91#define SDP3X_NUMOF ARRAY_SIZE(sdp3x_params)
Low-level GPIO peripheral driver interface definitions.
SAUL registry interface definition.
Device driver interface for the SDP3x sensor.
static const saul_reg_info_t sdp3x_saul_info[SDP3X_NUMOF]
Configure SAUL registry entries.
static const sdp3x_params_t sdp3x_params[]
Configure SDP3X.
#define SDP3X_NUMOF
Get the number of configured SDP3X devices.
Additional data to collect for each entry.
Device initialization parameters.