34 #ifndef PH_OEM_PARAM_I2C 
   35 #define PH_OEM_PARAM_I2C                  (I2C_DEV(0)) 
   37 #ifndef PH_OEM_PARAM_ADDR 
   38 #define PH_OEM_PARAM_ADDR                 (0x65) 
   40 #ifndef PH_OEM_PARAM_INTERRUPT_PIN 
   41 #define PH_OEM_PARAM_INTERRUPT_PIN        (GPIO_UNDEF) 
   43 #ifndef PH_OEM_PARAM_INTERRUPT_OPTION 
   44 #define PH_OEM_PARAM_INTERRUPT_OPTION     (PH_OEM_IRQ_BOTH) 
   46 #ifndef PH_OEM_PARAM_INTERRUPT_GPIO_MODE 
   47 #define PH_OEM_PARAM_INTERRUPT_GPIO_MODE  (GPIO_IN_PD) 
   51 #define PH_OEM_PARAMS       { .i2c = PH_OEM_PARAM_I2C,        \ 
   52                               .addr = PH_OEM_PARAM_ADDR,       \ 
   53                               .interrupt_pin = PH_OEM_PARAM_INTERRUPT_PIN, \ 
   54                               .gpio_mode = PH_OEM_PARAM_INTERRUPT_GPIO_MODE, \ 
   55                               .irq_option = PH_OEM_PARAM_INTERRUPT_OPTION } 
   57 #ifndef PH_OEM_SAUL_INFO 
   58 #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.