pwrmeter3 2.1.0.0
PWR Meter 3 Registers Settings

Settings for registers of PWR Meter 3 Click driver. More...

Macros

#define PWRMETER3_CUST_ACCESS_CODE   0x4F70656Eul
 PWR Meter 3 access code values.
 
#define PWRMETER3_CUST_ACCESS_CODE_CLEAR   0x00000000ul
 
#define PWRMETER3_VEVENT_CYCS_MASK   0x0000003Ful
 PWR Meter 3 register 0E/1E settings.
 
#define PWRMETER3_OVERVREG_MASK   0x00003F00ul
 
#define PWRMETER3_UNDERVREG_MASK   0x000FC000ul
 
#define PWRMETER3_DELAYCNT_SEL_MASK   0x00100000ul
 
#define PWRMETER3_HALFCYCLC_EN_MASK   0x00200000ul
 
#define PWRMETER3_SQUAREWAVE_EN_MASK   0x00400000ul
 
#define PWRMETER3_ZEROCROSSCHANSEL_MASK   0x00800000ul
 
#define PWRMETER3_ZEROCROSSEDGESEL_MASK   0x01000000ul
 
#define PWRMETER3_ECC_MASK   0xFC000000ul
 
#define PWRMETER3_OVERVREG_MAX   63
 
#define PWRMETER3_UNDERVREG_MAX   63
 
#define PWRMETER3_OVERVREG_3   3
 
#define PWRMETER3_UNDERVREG_1   1
 
#define PWRMETER3_I2C_SLV_ADDR_MASK   0x000001FCul
 PWR Meter 3 register 0F/1F settings.
 
#define PWRMETER3_I2C_DIS_SLV_ADDR   0x00000200ul
 
#define PWRMETER3_DIO_0_SEL_MASK   0x00000C00ul
 
#define PWRMETER3_DIO_1_SEL_MASK   0x00003000ul
 
#define PWRMETER3_N_MASK   0x00FFC000ul
 
#define PWRMETER3_BYPASS_N_EN_MASK   0x01000000ul
 
#define PWRMETER3_DIO_0_SEL_ZC   0
 
#define PWRMETER3_DIO_0_SEL_OV   1
 
#define PWRMETER3_DIO_0_SEL_UV   2
 
#define PWRMETER3_DIO_0_SEL_OV_UV   3
 
#define PWRMETER3_DIO_1_SEL_OCF   0
 
#define PWRMETER3_DIO_1_SEL_UV   1
 
#define PWRMETER3_DIO_1_SEL_OV   2
 
#define PWRMETER3_DIO_1_SEL_OV_UV_OCF   3
 
#define PWRMETER3_BYPASS_N_DISABLE   0
 
#define PWRMETER3_BYPASS_N_ENABLE   1
 
#define PWRMETER3_MAX_NUM_SAMPLES   1023u
 
#define PWRMETER3_RSENSE_OHM   2000.0f
 PWR Meter 3 RMS voltage and current calculation values.
 
#define PWRMETER3_AC_RDIV_OHM   2000000.0f
 
#define PWRMETER3_DC_RDIV_OHM   4000000.0f
 
#define PWRMETER3_ADC_FSCALE   55000u
 
#define PWRMETER3_DELTA_VIN_MAX_mV   250
 
#define PWRMETER3_mV_TO_V   1000u
 
#define PWRMETER3_MAX_CURRENT   90
 
#define PWRMETER3_DEF_AVG_SAMPLES   500u
 
#define PWRMETER3_DEVICE_ADDRESS_0   0x60
 PWR Meter 3 device address setting.
 
#define PWRMETER3_DEVICE_ADDRESS_1   0x61
 
#define PWRMETER3_DEVICE_ADDRESS_2   0x64
 
#define PWRMETER3_DEVICE_ADDRESS_3   0x65
 

Detailed Description

Settings for registers of PWR Meter 3 Click driver.

Macro Definition Documentation

◆ PWRMETER3_AC_RDIV_OHM

#define PWRMETER3_AC_RDIV_OHM   2000000.0f

◆ PWRMETER3_ADC_FSCALE

#define PWRMETER3_ADC_FSCALE   55000u

◆ PWRMETER3_BYPASS_N_DISABLE

#define PWRMETER3_BYPASS_N_DISABLE   0

◆ PWRMETER3_BYPASS_N_EN_MASK

#define PWRMETER3_BYPASS_N_EN_MASK   0x01000000ul

◆ PWRMETER3_BYPASS_N_ENABLE

#define PWRMETER3_BYPASS_N_ENABLE   1

◆ PWRMETER3_CUST_ACCESS_CODE

#define PWRMETER3_CUST_ACCESS_CODE   0x4F70656Eul

PWR Meter 3 access code values.

Specified access code values of PWR Meter 3 Click driver.

◆ PWRMETER3_CUST_ACCESS_CODE_CLEAR

#define PWRMETER3_CUST_ACCESS_CODE_CLEAR   0x00000000ul

◆ PWRMETER3_DC_RDIV_OHM

#define PWRMETER3_DC_RDIV_OHM   4000000.0f

◆ PWRMETER3_DEF_AVG_SAMPLES

#define PWRMETER3_DEF_AVG_SAMPLES   500u

◆ PWRMETER3_DELAYCNT_SEL_MASK

#define PWRMETER3_DELAYCNT_SEL_MASK   0x00100000ul

◆ PWRMETER3_DELTA_VIN_MAX_mV

#define PWRMETER3_DELTA_VIN_MAX_mV   250

◆ PWRMETER3_DEVICE_ADDRESS_0

#define PWRMETER3_DEVICE_ADDRESS_0   0x60

PWR Meter 3 device address setting.

Specified setting for device slave address selection of PWR Meter 3 Click driver.

◆ PWRMETER3_DEVICE_ADDRESS_1

#define PWRMETER3_DEVICE_ADDRESS_1   0x61

◆ PWRMETER3_DEVICE_ADDRESS_2

#define PWRMETER3_DEVICE_ADDRESS_2   0x64

◆ PWRMETER3_DEVICE_ADDRESS_3

#define PWRMETER3_DEVICE_ADDRESS_3   0x65

◆ PWRMETER3_DIO_0_SEL_MASK

#define PWRMETER3_DIO_0_SEL_MASK   0x00000C00ul

◆ PWRMETER3_DIO_0_SEL_OV

#define PWRMETER3_DIO_0_SEL_OV   1

◆ PWRMETER3_DIO_0_SEL_OV_UV

#define PWRMETER3_DIO_0_SEL_OV_UV   3

◆ PWRMETER3_DIO_0_SEL_UV

#define PWRMETER3_DIO_0_SEL_UV   2

◆ PWRMETER3_DIO_0_SEL_ZC

#define PWRMETER3_DIO_0_SEL_ZC   0

◆ PWRMETER3_DIO_1_SEL_MASK

#define PWRMETER3_DIO_1_SEL_MASK   0x00003000ul

◆ PWRMETER3_DIO_1_SEL_OCF

#define PWRMETER3_DIO_1_SEL_OCF   0

◆ PWRMETER3_DIO_1_SEL_OV

#define PWRMETER3_DIO_1_SEL_OV   2

◆ PWRMETER3_DIO_1_SEL_OV_UV_OCF

#define PWRMETER3_DIO_1_SEL_OV_UV_OCF   3

◆ PWRMETER3_DIO_1_SEL_UV

#define PWRMETER3_DIO_1_SEL_UV   1

◆ PWRMETER3_ECC_MASK

#define PWRMETER3_ECC_MASK   0xFC000000ul

◆ PWRMETER3_HALFCYCLC_EN_MASK

#define PWRMETER3_HALFCYCLC_EN_MASK   0x00200000ul

◆ PWRMETER3_I2C_DIS_SLV_ADDR

#define PWRMETER3_I2C_DIS_SLV_ADDR   0x00000200ul

◆ PWRMETER3_I2C_SLV_ADDR_MASK

#define PWRMETER3_I2C_SLV_ADDR_MASK   0x000001FCul

PWR Meter 3 register 0F/1F settings.

Specified register 0F/1F settings of PWR Meter 3 Click driver.

◆ PWRMETER3_MAX_CURRENT

#define PWRMETER3_MAX_CURRENT   90

◆ PWRMETER3_MAX_NUM_SAMPLES

#define PWRMETER3_MAX_NUM_SAMPLES   1023u

◆ PWRMETER3_mV_TO_V

#define PWRMETER3_mV_TO_V   1000u

◆ PWRMETER3_N_MASK

#define PWRMETER3_N_MASK   0x00FFC000ul

◆ PWRMETER3_OVERVREG_3

#define PWRMETER3_OVERVREG_3   3

◆ PWRMETER3_OVERVREG_MASK

#define PWRMETER3_OVERVREG_MASK   0x00003F00ul

◆ PWRMETER3_OVERVREG_MAX

#define PWRMETER3_OVERVREG_MAX   63

◆ PWRMETER3_RSENSE_OHM

#define PWRMETER3_RSENSE_OHM   2000.0f

PWR Meter 3 RMS voltage and current calculation values.

Specified RMS voltage and current calculation values of PWR Meter 3 Click driver.

◆ PWRMETER3_SQUAREWAVE_EN_MASK

#define PWRMETER3_SQUAREWAVE_EN_MASK   0x00400000ul

◆ PWRMETER3_UNDERVREG_1

#define PWRMETER3_UNDERVREG_1   1

◆ PWRMETER3_UNDERVREG_MASK

#define PWRMETER3_UNDERVREG_MASK   0x000FC000ul

◆ PWRMETER3_UNDERVREG_MAX

#define PWRMETER3_UNDERVREG_MAX   63

◆ PWRMETER3_VEVENT_CYCS_MASK

#define PWRMETER3_VEVENT_CYCS_MASK   0x0000003Ful

PWR Meter 3 register 0E/1E settings.

Specified register 0E/1E settings of PWR Meter 3 Click driver.

◆ PWRMETER3_ZEROCROSSCHANSEL_MASK

#define PWRMETER3_ZEROCROSSCHANSEL_MASK   0x00800000ul

◆ PWRMETER3_ZEROCROSSEDGESEL_MASK

#define PWRMETER3_ZEROCROSSEDGESEL_MASK   0x01000000ul