19#ifndef PH_OEM_PARAMS_H
20#define PH_OEM_PARAMS_H
35#ifndef PH_OEM_PARAM_I2C
36#define PH_OEM_PARAM_I2C (I2C_DEV(0))
38#ifndef PH_OEM_PARAM_ADDR
39#define PH_OEM_PARAM_ADDR (0x65)
41#ifndef PH_OEM_PARAM_INTERRUPT_PIN
42#define PH_OEM_PARAM_INTERRUPT_PIN (GPIO_UNDEF)
44#ifndef PH_OEM_PARAM_INTERRUPT_OPTION
45#define PH_OEM_PARAM_INTERRUPT_OPTION (PH_OEM_IRQ_BOTH)
47#ifndef PH_OEM_PARAM_INTERRUPT_GPIO_MODE
48#define PH_OEM_PARAM_INTERRUPT_GPIO_MODE (GPIO_IN_PD)
52#define PH_OEM_PARAMS { .i2c = PH_OEM_PARAM_I2C, \
53 .addr = PH_OEM_PARAM_ADDR, \
54 .interrupt_pin = PH_OEM_PARAM_INTERRUPT_PIN, \
55 .gpio_mode = PH_OEM_PARAM_INTERRUPT_GPIO_MODE, \
56 .irq_option = PH_OEM_PARAM_INTERRUPT_OPTION }
58#ifndef PH_OEM_SAUL_INFO
59#define PH_OEM_SAUL_INFO { .name = "pH OEM sensor" }
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.