rmstodc2 2.1.0.0
RMS to DC 2 Registers Settings

Settings for registers of RMS to DC 2 Click driver. More...

Macros

#define RMSTODC2_RMS_VOLTAGE_COEF   1.045f
 RMS to DC 2 RMS voltage calculation setting.
 
#define RMSTODC2_ADC_RESOLUTION   0x0FFF
 RMS to DC 2 ADC setting.
 
#define RMSTODC2_VREF_3V3   3.3
 
#define RMSTODC2_VREF_5V   5.0
 
#define RMSTODC2_SET_DEV_ADDR   0x4D
 RMS to DC 2 device address setting.
 

Detailed Description

Settings for registers of RMS to DC 2 Click driver.

Macro Definition Documentation

◆ RMSTODC2_ADC_RESOLUTION

#define RMSTODC2_ADC_RESOLUTION   0x0FFF

RMS to DC 2 ADC setting.

Specified settings for ADC of RMS to DC 2 Click driver.

◆ RMSTODC2_RMS_VOLTAGE_COEF

#define RMSTODC2_RMS_VOLTAGE_COEF   1.045f

RMS to DC 2 RMS voltage calculation setting.

Specified setting for RMS voltage calculation of RMS to DC 2 Click driver.

Note
This coefficient is obtained from measurements and it is valid for up to 20kHz frequency.

◆ RMSTODC2_SET_DEV_ADDR

#define RMSTODC2_SET_DEV_ADDR   0x4D

RMS to DC 2 device address setting.

Specified setting for device slave address selection of RMS to DC 2 Click driver.

◆ RMSTODC2_VREF_3V3

#define RMSTODC2_VREF_3V3   3.3

◆ RMSTODC2_VREF_5V

#define RMSTODC2_VREF_5V   5.0