ph2 2.1.0.0
ph2_t Struct Reference

pH 2 Click context object. More...

#include <ph2.h>

Data Fields

digital_out_t st1
 
digital_out_t st2
 
analog_in_t adc
 
i2c_master_t i2c
 
one_wire_t ow
 
float pH_val
 
float pH_vol
 
one_wire_rom_address_t rom_addr
 
uint8_t config
 
uint8_t slave_address
 
float vref
 
ph2_drv_t drv_sel
 

Detailed Description

pH 2 Click context object.

Context object definition of pH 2 Click driver.

Field Documentation

◆ adc

analog_in_t adc

ADC module object.

◆ config

uint8_t config

Device configuration register setting.

◆ drv_sel

ph2_drv_t drv_sel

Master driver interface selector.

◆ i2c

i2c_master_t i2c

I2C driver object.

◆ ow

one_wire_t ow

One Wire driver object.

◆ pH_val

float pH_val

◆ pH_vol

float pH_vol

◆ rom_addr

one_wire_rom_address_t rom_addr

ROM address of device.

◆ slave_address

uint8_t slave_address

Device slave address (used for I2C driver).

◆ st1

digital_out_t st1

Status 1 pin.

◆ st2

digital_out_t st2

Status 2 pin.

◆ vref

float vref

ADC reference voltage.


The documentation for this struct was generated from the following file: