31#ifndef PH_OEM_PARAM_I2C
32#define PH_OEM_PARAM_I2C (I2C_DEV(0))
34#ifndef PH_OEM_PARAM_ADDR
35#define PH_OEM_PARAM_ADDR (0x65)
37#ifndef PH_OEM_PARAM_INTERRUPT_PIN
38#define PH_OEM_PARAM_INTERRUPT_PIN (GPIO_UNDEF)
40#ifndef PH_OEM_PARAM_INTERRUPT_OPTION
41#define PH_OEM_PARAM_INTERRUPT_OPTION (PH_OEM_IRQ_BOTH)
43#ifndef PH_OEM_PARAM_INTERRUPT_GPIO_MODE
44#define PH_OEM_PARAM_INTERRUPT_GPIO_MODE (GPIO_IN_PD)
48#define PH_OEM_PARAMS { .i2c = PH_OEM_PARAM_I2C, \
49 .addr = PH_OEM_PARAM_ADDR, \
50 .interrupt_pin = PH_OEM_PARAM_INTERRUPT_PIN, \
51 .gpio_mode = PH_OEM_PARAM_INTERRUPT_GPIO_MODE, \
52 .irq_option = PH_OEM_PARAM_INTERRUPT_OPTION }
54#ifndef PH_OEM_SAUL_INFO
55#define PH_OEM_SAUL_INFO { .name = "pH OEM sensor" }
struct ph_oem_params ph_oem_params_t
pH OEM sensor params
Device driver for Atlas Scientific pH OEM Sensor with SMBus/I2C interface.
static const saul_reg_info_t ph_oem_saul_info[]
Additional meta information to keep in the SAUL registry.
Register definitions for the Atlas Scientific pH OEM sensor.
SAUL registry interface definition.
Additional data to collect for each entry.