ph2 2.1.0.0
pH 2 Registers Settings

Settings for registers of pH 2 Click driver. More...

Macros

#define PH2_PH_CALCULATION_COEF   0.18
 pH 2 description setting.
 
#define PH2_CONFIG_ADDRESS   0x10
 
#define PH2_ADC_RESOLUTION   0x0FFF
 pH 2 ADC setting.
 
#define PH2_VREF_3V3   3.3
 
#define PH2_VREF_5V   5.0
 
#define PH2_SET_DEV_ADDR   0x4D
 pH 2 device address setting.
 
#define PH2_FAMILY_CODE   0x28
 pH 2 DS18B20 family code value.
 
#define PH2_CONFIG_RESOLUTION_9BIT   0x00
 pH 2 config register settings.
 
#define PH2_CONFIG_RESOLUTION_10BIT   0x20
 
#define PH2_CONFIG_RESOLUTION_11BIT   0x40
 
#define PH2_CONFIG_RESOLUTION_12BIT   0x60
 
#define PH2_CONFIG_RESOLUTION_BIT_MASK   0x60
 
#define PH2_CONFIG_RESERVED_BITS   0x10
 
#define PH2_DATA_RESOLUTION   0.0625
 pH 2 temperature calculation values.
 
#define PH2_DEFAULT_ADDRESS   PH2_CONFIG_ADDRESS
 pH 2 default config values.
 
#define PH2_DEFAULT_RESOLUTION   PH2_CONFIG_RESOLUTION_12BIT
 
#define PH2_DEFAULT_TEMP_HIGH_ALARM   0xFF
 
#define PH2_DEFAULT_TEMP_LOW_ALARM   0x00
 

Detailed Description

Settings for registers of pH 2 Click driver.

Macro Definition Documentation

◆ PH2_ADC_RESOLUTION

#define PH2_ADC_RESOLUTION   0x0FFF

pH 2 ADC setting.

Specified settings for ADC of pH 2 Click driver.

◆ PH2_CONFIG_ADDRESS

#define PH2_CONFIG_ADDRESS   0x10

◆ PH2_CONFIG_RESERVED_BITS

#define PH2_CONFIG_RESERVED_BITS   0x10

◆ PH2_CONFIG_RESOLUTION_10BIT

#define PH2_CONFIG_RESOLUTION_10BIT   0x20

◆ PH2_CONFIG_RESOLUTION_11BIT

#define PH2_CONFIG_RESOLUTION_11BIT   0x40

◆ PH2_CONFIG_RESOLUTION_12BIT

#define PH2_CONFIG_RESOLUTION_12BIT   0x60

◆ PH2_CONFIG_RESOLUTION_9BIT

#define PH2_CONFIG_RESOLUTION_9BIT   0x00

pH 2 config register settings.

Specified config register settings of pH 2 Click driver.

◆ PH2_CONFIG_RESOLUTION_BIT_MASK

#define PH2_CONFIG_RESOLUTION_BIT_MASK   0x60

◆ PH2_DATA_RESOLUTION

#define PH2_DATA_RESOLUTION   0.0625

pH 2 temperature calculation values.

Specified temperature calculation values of pH 2 Click driver.

◆ PH2_DEFAULT_ADDRESS

#define PH2_DEFAULT_ADDRESS   PH2_CONFIG_ADDRESS

pH 2 default config values.

Specified default config values of pH 2 Click driver.

◆ PH2_DEFAULT_RESOLUTION

#define PH2_DEFAULT_RESOLUTION   PH2_CONFIG_RESOLUTION_12BIT

◆ PH2_DEFAULT_TEMP_HIGH_ALARM

#define PH2_DEFAULT_TEMP_HIGH_ALARM   0xFF

◆ PH2_DEFAULT_TEMP_LOW_ALARM

#define PH2_DEFAULT_TEMP_LOW_ALARM   0x00

◆ PH2_FAMILY_CODE

#define PH2_FAMILY_CODE   0x28

pH 2 DS18B20 family code value.

Specified family code value of DS18B20 of pH 2 2 Click driver.

◆ PH2_PH_CALCULATION_COEF

#define PH2_PH_CALCULATION_COEF   0.18

pH 2 description setting.

Specified setting for description of pH 2 Click driver.

◆ PH2_SET_DEV_ADDR

#define PH2_SET_DEV_ADDR   0x4D

pH 2 device address setting.

Specified setting for device slave address selection of pH 2 Click driver.

◆ PH2_VREF_3V3

#define PH2_VREF_3V3   3.3

◆ PH2_VREF_5V

#define PH2_VREF_5V   5.0