current6 2.0.0.0
Current 6 Registers Settings

Settings for registers of Current 6 Click driver. More...

Macros

#define CURRENT6_OPMODE_STANDBY   0x0000
 Current 6 Configuration register settings.
 
#define CURRENT6_OPMODE_LOW_POWER   0x0001
 
#define CURRENT6_OPMODE_SINGLE_CONVERSION   0x0002
 
#define CURRENT6_OPMODE_CONTINUOUS_MEASUREMENT   0x0003
 
#define CURRENT6_OPMODE_ACTIVE_MODE_4_SPS   0x0004
 
#define CURRENT6_OPMODE_ACTIVE_MODE_1_SPS   0x0005
 
#define CURRENT6_OPMODE_ACTIVE_MODE_0p25_SPS   0x0006
 
#define CURRENT6_OPMODE_ACTIVE_MODE_0p25_SPS   0x0006
 
#define CURRENT6_OPMODE_ACTIVE_MODE_0p0625_SPS   0x0007
 
#define CURRENT6_I2C_TIMEOUT_DISABLE   0x0008
 
#define CURRENT6_I2C_TIMEOUT_ENABLE   0x0000
 
#define CURRENT6_ALERT_UNFILTERED   0x0000
 
#define CURRENT6_ALERT_FILTERED   0x0010
 
#define CURRENT6_PEC_ENABLE   0x0020
 
#define CURRENT6_PEC_DISABLE   0x0000
 
#define CURRENT6_INPUT_RANGE_10mV   0x0040
 
#define CURRENT6_INPUT_RANGE_50mV   0x0000
 
#define CURRENT6_ENTER_HS_MODE   0x0080
 
#define CURRENT6_EXIT_HS_MODE   0x0000
 
#define CURRENT6_ADC_SAMPLE_RATE_15_KSPS   0x0000
 
#define CURRENT6_ADC_SAMPLE_RATE_23p45_KSPS   0x0200
 
#define CURRENT6_ADC_SAMPLE_RATE_30_KSPS   0x0300
 
#define CURRENT6_ADC_SAMPLE_RATE_37p5_KSPS   0x0400
 
#define CURRENT6_ADC_SAMPLE_RATE_47p1_KSPS   0x0500
 
#define CURRENT6_ADC_SAMPLE_RATE_60_KSPS   0x0600
 
#define CURRENT6_ADC_SAMPLE_RATE_93p5_KSPS   0x0700
 
#define CURRENT6_ADC_SAMPLE_RATE_120_KSPS   0x0800
 
#define CURRENT6_ADC_SAMPLE_RATE_150_KSPS   0x0900
 
#define CURRENT6_ADC_SAMPLE_RATE_234p5_KSPS   0x0A00
 
#define CURRENT6_ADC_SAMPLE_RATE_375_KSPS   0x0B00
 
#define CURRENT6_ADC_SAMPLE_RATE_468p5_KSPS   0x0C00
 
#define CURRENT6_ADC_SAMPLE_RATE_750_KSPS   0x0D00
 
#define CURRENT6_ADC_SAMPLE_RATE_1000_KSPS   0x0E00
 
#define CURRENT6_ADC_SAMPLE_RATE_0p5_KSPS   0x0F00
 
#define CURRENT6_DIGITAL_FILTER_NO_AVG   0x0000
 
#define CURRENT6_DIGITAL_FILTER_AVG_8_SAMPLES   0x1000
 
#define CURRENT6_DIGITAL_FILTER_AVG_16_SAMPLES   0x2000
 
#define CURRENT6_DIGITAL_FILTER_AVG_32_SAMPLES   0x3000
 
#define CURRENT6_DIGITAL_FILTER_AVG_64_SAMPLES   0x4000
 
#define CURRENT6_DIGITAL_FILTER_AVG_128_SAMPLES   0x5000
 
#define CURRENT6_STATUS_WAKE_UP   0x0001
 Current 6 Status register settings.
 
#define CURRENT6_STATUS_CONVERSION_READY   0x0002
 
#define CURRENT6_STATUS_OVERFLOW_CURRENT   0x0004
 
#define CURRENT6_STATUS_OVERFLOW_VOLTAGE   0x0008
 
#define CURRENT6_STATUS_UNDERFLOW_VOLTAGE   0x0010
 
#define CURRENT6_STATUS_I2C_TIMEOUT   0x0020
 
#define CURRENT6_STATUS_FIFO_ALARM   0x0040
 
#define CURRENT6_STATUS_FIFO_OVERFLOW   0x0080
 
#define CURRENT6_STATUS_FIFO_DATA_COUNT_MASK   0x3F00
 
#define CURRENT6_FIFO_CFG_STORE_CURRENT_ONLY   0x0000
 Current 6 FIFO configuration register settings.
 
#define CURRENT6_FIFO_CFG_STORE_VOLTAGE_ONLY   0x0001
 
#define CURRENT6_FIFO_CFG_STORE_ALL   0x0002
 
#define CURRENT6_FIFO_CFG_DATA_OVERFLOW_MASK   0x3F00
 
#define CURRENT6_FIFO_CFG_DATA_OVERFLOW_DEFAULT   0x0100
 
#define CURRENT6_FIFO_CFG_ROLL_OVER   0x4000
 
#define CURRENT6_FIFO_CFG_FLUSH   0x8000
 
#define CURRENT6_FIFO_DATA_VALID_32   0x80000000
 Current 6 FIFO data register settings.
 
#define CURRENT6_FIFO_DATA_VALID_16   0x8000
 
#define CURRENT6_FIFO_DATA_SIGN_BIT   0x1000
 
#define CURRENT6_FIFO_DATA_RESOLUTION   0x0FFF
 
#define CURRENT6_INT_EN_WAKE_UP   0x01
 Current 6 INT enable register settings.
 
#define CURRENT6_INT_EN_CONVERSION_READY   0x02
 
#define CURRENT6_INT_EN_OVERFLOW_CURRENT   0x04
 
#define CURRENT6_INT_EN_OVERFLOW_VOLTAGE   0x08
 
#define CURRENT6_INT_EN_UNDERFLOW_VOLTAGE   0x10
 
#define CURRENT6_INT_EN_I2C_TIMEOUT   0x20
 
#define CURRENT6_INT_EN_ALARM   0x40
 
#define CURRENT6_INT_EN_OVERFLOW   0x80
 
#define CURRENT6_VOLTAGE_CALCULATION_COEFFICIENT   0.00917
 Current 6 current and voltage calculation values.
 
#define CURRENT6_CURRENT_CALCULATION_COEFFICIENT   0.00125
 
#define CURRENT6_SET_DEV_ADDR   0x21
 Current 6 device address setting.
 

Detailed Description

Settings for registers of Current 6 Click driver.

Macro Definition Documentation

◆ CURRENT6_ADC_SAMPLE_RATE_0p5_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_0p5_KSPS   0x0F00

◆ CURRENT6_ADC_SAMPLE_RATE_1000_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_1000_KSPS   0x0E00

◆ CURRENT6_ADC_SAMPLE_RATE_120_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_120_KSPS   0x0800

◆ CURRENT6_ADC_SAMPLE_RATE_150_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_150_KSPS   0x0900

◆ CURRENT6_ADC_SAMPLE_RATE_15_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_15_KSPS   0x0000

◆ CURRENT6_ADC_SAMPLE_RATE_234p5_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_234p5_KSPS   0x0A00

◆ CURRENT6_ADC_SAMPLE_RATE_23p45_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_23p45_KSPS   0x0200

◆ CURRENT6_ADC_SAMPLE_RATE_30_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_30_KSPS   0x0300

◆ CURRENT6_ADC_SAMPLE_RATE_375_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_375_KSPS   0x0B00

◆ CURRENT6_ADC_SAMPLE_RATE_37p5_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_37p5_KSPS   0x0400

◆ CURRENT6_ADC_SAMPLE_RATE_468p5_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_468p5_KSPS   0x0C00

◆ CURRENT6_ADC_SAMPLE_RATE_47p1_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_47p1_KSPS   0x0500

◆ CURRENT6_ADC_SAMPLE_RATE_60_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_60_KSPS   0x0600

◆ CURRENT6_ADC_SAMPLE_RATE_750_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_750_KSPS   0x0D00

◆ CURRENT6_ADC_SAMPLE_RATE_93p5_KSPS

#define CURRENT6_ADC_SAMPLE_RATE_93p5_KSPS   0x0700

◆ CURRENT6_ALERT_FILTERED

#define CURRENT6_ALERT_FILTERED   0x0010

◆ CURRENT6_ALERT_UNFILTERED

#define CURRENT6_ALERT_UNFILTERED   0x0000

◆ CURRENT6_CURRENT_CALCULATION_COEFFICIENT

#define CURRENT6_CURRENT_CALCULATION_COEFFICIENT   0.00125

◆ CURRENT6_DIGITAL_FILTER_AVG_128_SAMPLES

#define CURRENT6_DIGITAL_FILTER_AVG_128_SAMPLES   0x5000

◆ CURRENT6_DIGITAL_FILTER_AVG_16_SAMPLES

#define CURRENT6_DIGITAL_FILTER_AVG_16_SAMPLES   0x2000

◆ CURRENT6_DIGITAL_FILTER_AVG_32_SAMPLES

#define CURRENT6_DIGITAL_FILTER_AVG_32_SAMPLES   0x3000

◆ CURRENT6_DIGITAL_FILTER_AVG_64_SAMPLES

#define CURRENT6_DIGITAL_FILTER_AVG_64_SAMPLES   0x4000

◆ CURRENT6_DIGITAL_FILTER_AVG_8_SAMPLES

#define CURRENT6_DIGITAL_FILTER_AVG_8_SAMPLES   0x1000

◆ CURRENT6_DIGITAL_FILTER_NO_AVG

#define CURRENT6_DIGITAL_FILTER_NO_AVG   0x0000

◆ CURRENT6_ENTER_HS_MODE

#define CURRENT6_ENTER_HS_MODE   0x0080

◆ CURRENT6_EXIT_HS_MODE

#define CURRENT6_EXIT_HS_MODE   0x0000

◆ CURRENT6_FIFO_CFG_DATA_OVERFLOW_DEFAULT

#define CURRENT6_FIFO_CFG_DATA_OVERFLOW_DEFAULT   0x0100

◆ CURRENT6_FIFO_CFG_DATA_OVERFLOW_MASK

#define CURRENT6_FIFO_CFG_DATA_OVERFLOW_MASK   0x3F00

◆ CURRENT6_FIFO_CFG_FLUSH

#define CURRENT6_FIFO_CFG_FLUSH   0x8000

◆ CURRENT6_FIFO_CFG_ROLL_OVER

#define CURRENT6_FIFO_CFG_ROLL_OVER   0x4000

◆ CURRENT6_FIFO_CFG_STORE_ALL

#define CURRENT6_FIFO_CFG_STORE_ALL   0x0002

◆ CURRENT6_FIFO_CFG_STORE_CURRENT_ONLY

#define CURRENT6_FIFO_CFG_STORE_CURRENT_ONLY   0x0000

Current 6 FIFO configuration register settings.

Specified settings for FIFO configuration register of Current 6 Click driver.

◆ CURRENT6_FIFO_CFG_STORE_VOLTAGE_ONLY

#define CURRENT6_FIFO_CFG_STORE_VOLTAGE_ONLY   0x0001

◆ CURRENT6_FIFO_DATA_RESOLUTION

#define CURRENT6_FIFO_DATA_RESOLUTION   0x0FFF

◆ CURRENT6_FIFO_DATA_SIGN_BIT

#define CURRENT6_FIFO_DATA_SIGN_BIT   0x1000

◆ CURRENT6_FIFO_DATA_VALID_16

#define CURRENT6_FIFO_DATA_VALID_16   0x8000

◆ CURRENT6_FIFO_DATA_VALID_32

#define CURRENT6_FIFO_DATA_VALID_32   0x80000000

Current 6 FIFO data register settings.

Specified settings for FIFO data register of Current 6 Click driver.

◆ CURRENT6_I2C_TIMEOUT_DISABLE

#define CURRENT6_I2C_TIMEOUT_DISABLE   0x0008

◆ CURRENT6_I2C_TIMEOUT_ENABLE

#define CURRENT6_I2C_TIMEOUT_ENABLE   0x0000

◆ CURRENT6_INPUT_RANGE_10mV

#define CURRENT6_INPUT_RANGE_10mV   0x0040

◆ CURRENT6_INPUT_RANGE_50mV

#define CURRENT6_INPUT_RANGE_50mV   0x0000

◆ CURRENT6_INT_EN_ALARM

#define CURRENT6_INT_EN_ALARM   0x40

◆ CURRENT6_INT_EN_CONVERSION_READY

#define CURRENT6_INT_EN_CONVERSION_READY   0x02

◆ CURRENT6_INT_EN_I2C_TIMEOUT

#define CURRENT6_INT_EN_I2C_TIMEOUT   0x20

◆ CURRENT6_INT_EN_OVERFLOW

#define CURRENT6_INT_EN_OVERFLOW   0x80

◆ CURRENT6_INT_EN_OVERFLOW_CURRENT

#define CURRENT6_INT_EN_OVERFLOW_CURRENT   0x04

◆ CURRENT6_INT_EN_OVERFLOW_VOLTAGE

#define CURRENT6_INT_EN_OVERFLOW_VOLTAGE   0x08

◆ CURRENT6_INT_EN_UNDERFLOW_VOLTAGE

#define CURRENT6_INT_EN_UNDERFLOW_VOLTAGE   0x10

◆ CURRENT6_INT_EN_WAKE_UP

#define CURRENT6_INT_EN_WAKE_UP   0x01

Current 6 INT enable register settings.

Specified settings for INT enable register of Current 6 Click driver.

◆ CURRENT6_OPMODE_ACTIVE_MODE_0p0625_SPS

#define CURRENT6_OPMODE_ACTIVE_MODE_0p0625_SPS   0x0007

◆ CURRENT6_OPMODE_ACTIVE_MODE_0p25_SPS [1/2]

#define CURRENT6_OPMODE_ACTIVE_MODE_0p25_SPS   0x0006

◆ CURRENT6_OPMODE_ACTIVE_MODE_0p25_SPS [2/2]

#define CURRENT6_OPMODE_ACTIVE_MODE_0p25_SPS   0x0006

◆ CURRENT6_OPMODE_ACTIVE_MODE_1_SPS

#define CURRENT6_OPMODE_ACTIVE_MODE_1_SPS   0x0005

◆ CURRENT6_OPMODE_ACTIVE_MODE_4_SPS

#define CURRENT6_OPMODE_ACTIVE_MODE_4_SPS   0x0004

◆ CURRENT6_OPMODE_CONTINUOUS_MEASUREMENT

#define CURRENT6_OPMODE_CONTINUOUS_MEASUREMENT   0x0003

◆ CURRENT6_OPMODE_LOW_POWER

#define CURRENT6_OPMODE_LOW_POWER   0x0001

◆ CURRENT6_OPMODE_SINGLE_CONVERSION

#define CURRENT6_OPMODE_SINGLE_CONVERSION   0x0002

◆ CURRENT6_OPMODE_STANDBY

#define CURRENT6_OPMODE_STANDBY   0x0000

Current 6 Configuration register settings.

Specified settings for Configuration register of Current 6 Click driver.

◆ CURRENT6_PEC_DISABLE

#define CURRENT6_PEC_DISABLE   0x0000

◆ CURRENT6_PEC_ENABLE

#define CURRENT6_PEC_ENABLE   0x0020

◆ CURRENT6_SET_DEV_ADDR

#define CURRENT6_SET_DEV_ADDR   0x21

Current 6 device address setting.

Specified setting for device slave address selection of Current 6 Click driver.

◆ CURRENT6_STATUS_CONVERSION_READY

#define CURRENT6_STATUS_CONVERSION_READY   0x0002

◆ CURRENT6_STATUS_FIFO_ALARM

#define CURRENT6_STATUS_FIFO_ALARM   0x0040

◆ CURRENT6_STATUS_FIFO_DATA_COUNT_MASK

#define CURRENT6_STATUS_FIFO_DATA_COUNT_MASK   0x3F00

◆ CURRENT6_STATUS_FIFO_OVERFLOW

#define CURRENT6_STATUS_FIFO_OVERFLOW   0x0080

◆ CURRENT6_STATUS_I2C_TIMEOUT

#define CURRENT6_STATUS_I2C_TIMEOUT   0x0020

◆ CURRENT6_STATUS_OVERFLOW_CURRENT

#define CURRENT6_STATUS_OVERFLOW_CURRENT   0x0004

◆ CURRENT6_STATUS_OVERFLOW_VOLTAGE

#define CURRENT6_STATUS_OVERFLOW_VOLTAGE   0x0008

◆ CURRENT6_STATUS_UNDERFLOW_VOLTAGE

#define CURRENT6_STATUS_UNDERFLOW_VOLTAGE   0x0010

◆ CURRENT6_STATUS_WAKE_UP

#define CURRENT6_STATUS_WAKE_UP   0x0001

Current 6 Status register settings.

Specified settings for Status register of Current 6 Click driver.

◆ CURRENT6_VOLTAGE_CALCULATION_COEFFICIENT

#define CURRENT6_VOLTAGE_CALCULATION_COEFFICIENT   0.00917

Current 6 current and voltage calculation values.

Specified current and voltage calculation values of Current 6 Click driver.