ecg2 2.0.0.0
ECG 2 Registers Settings

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

Macros

#define ECG2_WAKEUP_CMD   0x02
 ECG 2 description setting.
 
#define ECG2_STANDBY_CMD   0x04
 
#define ECG2_RESET_CMD   0x06
 
#define ECG2_START_CONVERSION   0x08
 
#define ECG2_STOP_CONVERSION   0x0A
 
#define ECG2_ENABLE_READ_DATA_CONT_MODE   0x10
 
#define ECG2_STOP_DATA_CONT_MODE   0x11
 
#define ECG2_READ_DATA_CMD   0x12
 
#define ECG2_SPI_CMD_WRITE   0x40
 
#define ECG2_SPI_CMD_READ   0x20
 
#define ECG2_CONFIG1_REG_DEFAULT_VAL   0x04
 ECG 2 config register default values.
 
#define ECG2_CONFIG2_REG_DEFAULT_VAL   0x20
 
#define ECG2_CONFIG3_REG_DEFAULT_VAL   0x40
 
#define ECG2_CFG_DAISY_ENABLE   0x00
 ECG 2 read type settings.
 
#define ECG2_CFG_MULTI_READBACK   0x40
 
#define ECG2_CFG_CLK_ENABLE   0x20
 ECG 2 clock settings.
 
#define ECG2_CFG_CLK_DISABLE   0x00
 
#define ECG2_CFG_DATA_SPEED_8K   0x00
 ECG 2 data speed settings.
 
#define ECG2_CFG_DATA_SPEED_4K   0x01
 
#define ECG2_CFG_DATA_SPEED_2K   0x02
 
#define ECG2_CFG_DATA_SPEED_1K   0x03
 
#define ECG2_CFG_DATA_SPEED_500   0x04
 
#define ECG2_CFG_DATA_SPEED_250   0x05
 
#define ECG2_CFG_DATA_SPEED_125   0x06
 
#define ECG2_CFG_DATA_SPEED_OFF   0x07
 
#define ECG2_CFG_INT_TEST_EXT   0x10
 ECG 2 data speed settings.
 
#define ECG2_CFG_INT_TEST_INT   0x00
 
#define ECG2_CFG_FREQ_F_DIV_2_TO_21   0x00
 ECG 2 frequency divider settings.
 
#define ECG2_CFG_FREQ_F_DIV_2_TO_20   0x01
 
#define ECG2_CFG_FREQ_NOT_USED   0x02
 
#define ECG2_CFG_FREQ_AT_DC   0x03
 
#define ECG2_CFG_AMPLITUDE_NEGATIVE_1   0x00
 ECG 2 negative amplitude settings.
 
#define ECG2_CFG_AMPLITUDE_NEGATIVE_2   0x01
 
#define ECG2_CFG_ENABLE_INT_BUFFER   0x80
 ECG 2 internal buffer settings.
 
#define ECG2_CFG_DISABLE_INT_BUFFER   0x00
 
#define ECG2_CFG_REFBUF_ENABLE   0x80
 
#define ECG2_CFG_REFBUF_DISABLE   0x00
 
#define ECG2_CFG_INTERNAL_RLDREF   0x08
 
#define ECG2_CFG_EXTERNAL_RLDREF   0x00
 
#define ECG2_CFG_RLD_ENABLE   0x0C
 
#define ECG2_CFG_RLD_DISABLE   0x00
 
#define ECG2_CFG_RLD_SENSE_ENABLE   0x02
 
#define ECG2_CFG_RLD_SENSE_DISABLE   0x00
 
#define ECG2_CFG_RLD_NOT_CONNECTED   0x01
 
#define ECG2_CFG_RLD_CONNECTED   0x00
 
#define ECG2_CFG_VREF_2V4   0x00
 ECG 2 Vref settings.
 
#define ECG2_CFG_VREF_4V   0x20
 
#define ECG2_CFG_COMPARATOR_P_95   0x00
 ECG 2 positive comparator settings.
 
#define ECG2_CFG_COMPARATOR_P_92_5   0x20
 
#define ECG2_CFG_COMPARATOR_P_90   0x40
 
#define ECG2_CFG_COMPARATOR_P_87_5   0x60
 
#define ECG2_CFG_COMPARATOR_P_85   0x80
 
#define ECG2_CFG_COMPARATOR_P_80   0xA0
 
#define ECG2_CFG_COMPARATOR_P_75   0xC0
 
#define ECG2_CFG_COMPARATOR_P_70   0xE0
 
#define ECG2_CFG_COMPARATOR_N_5   0x00
 ECG 2 negative comparator settings.
 
#define ECG2_CFG_COMPARATOR_N_7_5   0x20
 
#define ECG2_CFG_COMPARATOR_N_10   0x40
 
#define ECG2_CFG_COMPARATOR_N_12_5   0x60
 
#define ECG2_CFG_COMPARATOR_N_15   0x80
 
#define ECG2_CFG_COMPARATOR_N_20   0xA0
 
#define ECG2_CFG_COMPARATOR_N_25   0xC0
 
#define ECG2_CFG_COMPARATOR_N_30   0xE0
 
#define ECG2_CFG_VLEAD_OFF   0x00
 ECG 2 lead settings.
 
#define ECG2_CFG_VLEAD_EN   0x10
 
#define ECG2_CFG_ILEAD_OFF_4nA   0x00
 
#define ECG2_CFG_ILEAD_OFF_8nA   0x04
 
#define ECG2_CFG_ILEAD_OFF_12nA   0x08
 
#define ECG2_CFG_ILEAD_OFF_16nA   0x0C
 
#define ECG2_CFG_FLEAD_OFF_AC_OFF   0x01
 
#define ECG2_CFG_FLEAD_OFF_NOT_USED   0x02
 
#define ECG2_CFG_FLEAD_OFF_DC_OFF   0x03
 
#define ECG2_CFG_NORMAL_MODE   0x00
 ECG 2 mode settings.
 
#define ECG2_CFG_POWER_DOWN   0x80
 
#define ECG2_CFG_PGA_GAIN_6   0x00
 ECG 2 gain settings.
 
#define ECG2_CFG_PGA_GAIN_1   0x01
 
#define ECG2_CFG_PGA_GAIN_2   0x02
 
#define ECG2_CFG_PGA_GAIN_3   0x03
 
#define ECG2_CFG_PGA_GAIN_4   0x04
 
#define ECG2_CFG_PGA_GAIN_8   0x05
 
#define ECG2_CFG_PGA_GAIN_12   0x06
 
#define ECG2_CFG_MUX_NORMAL_ELECTRODE   0x00
 ECG 2 MUX settings.
 
#define ECG2_CFG_MUX_SHORTED_INPUT   0x01
 
#define ECG2_CFG_MUX_RLD_MEASURMENTS   0x02
 
#define ECG2_CFG_MUX_MVDD_MEASURMENTS   0x03
 
#define ECG2_CFG_MUX_TEMPERATURE_SENSOR   0x04
 
#define ECG2_CFG_MUX_TEST_SIGNAL   0x05
 
#define ECG2_CFG_MUX_RLD_DRP   0x06
 
#define ECG2_CFG_MUX_RLD_DRN   0x07
 
#define ECG2_CHANNEL_ODD_CHANNEL_1   0x00
 ECG 2 channel settings.
 
#define ECG2_CHANNEL_ODD_CHANNEL_3   0x01
 
#define ECG2_CHANNEL_ODD_CHANNEL_5   0x02
 
#define ECG2_CHANNEL_ODD_CHANNEL_7   0x03
 
#define ECG2_CHANNEL_EVEN_CHANNEL_2   0x00
 
#define ECG2_CHANNEL_EVEN_CHANNEL_4   0x01
 
#define ECG2_CHANNEL_EVEN_CHANNEL_6   0x02
 
#define ECG2_CHANNEL_EVEN_CHANNEL_8   0x03
 
#define ECG2_CHANNEL_ENABLE   0x01
 
#define ECG2_CHANNEL_DISABLE   0x00
 
#define ECG2_DATA_READY   0x01
 
#define ECG2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define ECG2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of ECG 2 Click driver.

Macro Definition Documentation

◆ ECG2_CFG_AMPLITUDE_NEGATIVE_1

#define ECG2_CFG_AMPLITUDE_NEGATIVE_1   0x00

ECG 2 negative amplitude settings.

Specified negative amplitude settings of ECG 2 Click driver.

◆ ECG2_CFG_AMPLITUDE_NEGATIVE_2

#define ECG2_CFG_AMPLITUDE_NEGATIVE_2   0x01

◆ ECG2_CFG_CLK_DISABLE

#define ECG2_CFG_CLK_DISABLE   0x00

◆ ECG2_CFG_CLK_ENABLE

#define ECG2_CFG_CLK_ENABLE   0x20

ECG 2 clock settings.

Specified clock settings of ECG 2 Click driver.

◆ ECG2_CFG_COMPARATOR_N_10

#define ECG2_CFG_COMPARATOR_N_10   0x40

◆ ECG2_CFG_COMPARATOR_N_12_5

#define ECG2_CFG_COMPARATOR_N_12_5   0x60

◆ ECG2_CFG_COMPARATOR_N_15

#define ECG2_CFG_COMPARATOR_N_15   0x80

◆ ECG2_CFG_COMPARATOR_N_20

#define ECG2_CFG_COMPARATOR_N_20   0xA0

◆ ECG2_CFG_COMPARATOR_N_25

#define ECG2_CFG_COMPARATOR_N_25   0xC0

◆ ECG2_CFG_COMPARATOR_N_30

#define ECG2_CFG_COMPARATOR_N_30   0xE0

◆ ECG2_CFG_COMPARATOR_N_5

#define ECG2_CFG_COMPARATOR_N_5   0x00

ECG 2 negative comparator settings.

Specified negative comparator settings of ECG 2 Click driver.

◆ ECG2_CFG_COMPARATOR_N_7_5

#define ECG2_CFG_COMPARATOR_N_7_5   0x20

◆ ECG2_CFG_COMPARATOR_P_70

#define ECG2_CFG_COMPARATOR_P_70   0xE0

◆ ECG2_CFG_COMPARATOR_P_75

#define ECG2_CFG_COMPARATOR_P_75   0xC0

◆ ECG2_CFG_COMPARATOR_P_80

#define ECG2_CFG_COMPARATOR_P_80   0xA0

◆ ECG2_CFG_COMPARATOR_P_85

#define ECG2_CFG_COMPARATOR_P_85   0x80

◆ ECG2_CFG_COMPARATOR_P_87_5

#define ECG2_CFG_COMPARATOR_P_87_5   0x60

◆ ECG2_CFG_COMPARATOR_P_90

#define ECG2_CFG_COMPARATOR_P_90   0x40

◆ ECG2_CFG_COMPARATOR_P_92_5

#define ECG2_CFG_COMPARATOR_P_92_5   0x20

◆ ECG2_CFG_COMPARATOR_P_95

#define ECG2_CFG_COMPARATOR_P_95   0x00

ECG 2 positive comparator settings.

Specified positive comparator settings of ECG 2 Click driver.

◆ ECG2_CFG_DAISY_ENABLE

#define ECG2_CFG_DAISY_ENABLE   0x00

ECG 2 read type settings.

Specified read type settings of ECG 2 Click driver.

◆ ECG2_CFG_DATA_SPEED_125

#define ECG2_CFG_DATA_SPEED_125   0x06

◆ ECG2_CFG_DATA_SPEED_1K

#define ECG2_CFG_DATA_SPEED_1K   0x03

◆ ECG2_CFG_DATA_SPEED_250

#define ECG2_CFG_DATA_SPEED_250   0x05

◆ ECG2_CFG_DATA_SPEED_2K

#define ECG2_CFG_DATA_SPEED_2K   0x02

◆ ECG2_CFG_DATA_SPEED_4K

#define ECG2_CFG_DATA_SPEED_4K   0x01

◆ ECG2_CFG_DATA_SPEED_500

#define ECG2_CFG_DATA_SPEED_500   0x04

◆ ECG2_CFG_DATA_SPEED_8K

#define ECG2_CFG_DATA_SPEED_8K   0x00

ECG 2 data speed settings.

Specified data speed settings of ECG 2 Click driver.

◆ ECG2_CFG_DATA_SPEED_OFF

#define ECG2_CFG_DATA_SPEED_OFF   0x07

◆ ECG2_CFG_DISABLE_INT_BUFFER

#define ECG2_CFG_DISABLE_INT_BUFFER   0x00

◆ ECG2_CFG_ENABLE_INT_BUFFER

#define ECG2_CFG_ENABLE_INT_BUFFER   0x80

ECG 2 internal buffer settings.

Specified internal buffer settings of ECG 2 Click driver.

◆ ECG2_CFG_EXTERNAL_RLDREF

#define ECG2_CFG_EXTERNAL_RLDREF   0x00

◆ ECG2_CFG_FLEAD_OFF_AC_OFF

#define ECG2_CFG_FLEAD_OFF_AC_OFF   0x01

◆ ECG2_CFG_FLEAD_OFF_DC_OFF

#define ECG2_CFG_FLEAD_OFF_DC_OFF   0x03

◆ ECG2_CFG_FLEAD_OFF_NOT_USED

#define ECG2_CFG_FLEAD_OFF_NOT_USED   0x02

◆ ECG2_CFG_FREQ_AT_DC

#define ECG2_CFG_FREQ_AT_DC   0x03

◆ ECG2_CFG_FREQ_F_DIV_2_TO_20

#define ECG2_CFG_FREQ_F_DIV_2_TO_20   0x01

◆ ECG2_CFG_FREQ_F_DIV_2_TO_21

#define ECG2_CFG_FREQ_F_DIV_2_TO_21   0x00

ECG 2 frequency divider settings.

Specified frequency divider settings of ECG 2 Click driver.

◆ ECG2_CFG_FREQ_NOT_USED

#define ECG2_CFG_FREQ_NOT_USED   0x02

◆ ECG2_CFG_ILEAD_OFF_12nA

#define ECG2_CFG_ILEAD_OFF_12nA   0x08

◆ ECG2_CFG_ILEAD_OFF_16nA

#define ECG2_CFG_ILEAD_OFF_16nA   0x0C

◆ ECG2_CFG_ILEAD_OFF_4nA

#define ECG2_CFG_ILEAD_OFF_4nA   0x00

◆ ECG2_CFG_ILEAD_OFF_8nA

#define ECG2_CFG_ILEAD_OFF_8nA   0x04

◆ ECG2_CFG_INT_TEST_EXT

#define ECG2_CFG_INT_TEST_EXT   0x10

ECG 2 data speed settings.

Specified data speed settings of ECG 2 Click driver.

◆ ECG2_CFG_INT_TEST_INT

#define ECG2_CFG_INT_TEST_INT   0x00

◆ ECG2_CFG_INTERNAL_RLDREF

#define ECG2_CFG_INTERNAL_RLDREF   0x08

◆ ECG2_CFG_MULTI_READBACK

#define ECG2_CFG_MULTI_READBACK   0x40

◆ ECG2_CFG_MUX_MVDD_MEASURMENTS

#define ECG2_CFG_MUX_MVDD_MEASURMENTS   0x03

◆ ECG2_CFG_MUX_NORMAL_ELECTRODE

#define ECG2_CFG_MUX_NORMAL_ELECTRODE   0x00

ECG 2 MUX settings.

Specified MUX settings of ECG 2 Click driver.

◆ ECG2_CFG_MUX_RLD_DRN

#define ECG2_CFG_MUX_RLD_DRN   0x07

◆ ECG2_CFG_MUX_RLD_DRP

#define ECG2_CFG_MUX_RLD_DRP   0x06

◆ ECG2_CFG_MUX_RLD_MEASURMENTS

#define ECG2_CFG_MUX_RLD_MEASURMENTS   0x02

◆ ECG2_CFG_MUX_SHORTED_INPUT

#define ECG2_CFG_MUX_SHORTED_INPUT   0x01

◆ ECG2_CFG_MUX_TEMPERATURE_SENSOR

#define ECG2_CFG_MUX_TEMPERATURE_SENSOR   0x04

◆ ECG2_CFG_MUX_TEST_SIGNAL

#define ECG2_CFG_MUX_TEST_SIGNAL   0x05

◆ ECG2_CFG_NORMAL_MODE

#define ECG2_CFG_NORMAL_MODE   0x00

ECG 2 mode settings.

Specified mode settings of ECG 2 Click driver.

◆ ECG2_CFG_PGA_GAIN_1

#define ECG2_CFG_PGA_GAIN_1   0x01

◆ ECG2_CFG_PGA_GAIN_12

#define ECG2_CFG_PGA_GAIN_12   0x06

◆ ECG2_CFG_PGA_GAIN_2

#define ECG2_CFG_PGA_GAIN_2   0x02

◆ ECG2_CFG_PGA_GAIN_3

#define ECG2_CFG_PGA_GAIN_3   0x03

◆ ECG2_CFG_PGA_GAIN_4

#define ECG2_CFG_PGA_GAIN_4   0x04

◆ ECG2_CFG_PGA_GAIN_6

#define ECG2_CFG_PGA_GAIN_6   0x00

ECG 2 gain settings.

Specified gain settings of ECG 2 Click driver.

◆ ECG2_CFG_PGA_GAIN_8

#define ECG2_CFG_PGA_GAIN_8   0x05

◆ ECG2_CFG_POWER_DOWN

#define ECG2_CFG_POWER_DOWN   0x80

◆ ECG2_CFG_REFBUF_DISABLE

#define ECG2_CFG_REFBUF_DISABLE   0x00

◆ ECG2_CFG_REFBUF_ENABLE

#define ECG2_CFG_REFBUF_ENABLE   0x80

◆ ECG2_CFG_RLD_CONNECTED

#define ECG2_CFG_RLD_CONNECTED   0x00

◆ ECG2_CFG_RLD_DISABLE

#define ECG2_CFG_RLD_DISABLE   0x00

◆ ECG2_CFG_RLD_ENABLE

#define ECG2_CFG_RLD_ENABLE   0x0C

◆ ECG2_CFG_RLD_NOT_CONNECTED

#define ECG2_CFG_RLD_NOT_CONNECTED   0x01

◆ ECG2_CFG_RLD_SENSE_DISABLE

#define ECG2_CFG_RLD_SENSE_DISABLE   0x00

◆ ECG2_CFG_RLD_SENSE_ENABLE

#define ECG2_CFG_RLD_SENSE_ENABLE   0x02

◆ ECG2_CFG_VLEAD_EN

#define ECG2_CFG_VLEAD_EN   0x10

◆ ECG2_CFG_VLEAD_OFF

#define ECG2_CFG_VLEAD_OFF   0x00

ECG 2 lead settings.

Specified lead settings of ECG 2 Click driver.

◆ ECG2_CFG_VREF_2V4

#define ECG2_CFG_VREF_2V4   0x00

ECG 2 Vref settings.

Specified Vref settings of ECG 2 Click driver.

◆ ECG2_CFG_VREF_4V

#define ECG2_CFG_VREF_4V   0x20

◆ ECG2_CHANNEL_DISABLE

#define ECG2_CHANNEL_DISABLE   0x00

◆ ECG2_CHANNEL_ENABLE

#define ECG2_CHANNEL_ENABLE   0x01

◆ ECG2_CHANNEL_EVEN_CHANNEL_2

#define ECG2_CHANNEL_EVEN_CHANNEL_2   0x00

◆ ECG2_CHANNEL_EVEN_CHANNEL_4

#define ECG2_CHANNEL_EVEN_CHANNEL_4   0x01

◆ ECG2_CHANNEL_EVEN_CHANNEL_6

#define ECG2_CHANNEL_EVEN_CHANNEL_6   0x02

◆ ECG2_CHANNEL_EVEN_CHANNEL_8

#define ECG2_CHANNEL_EVEN_CHANNEL_8   0x03

◆ ECG2_CHANNEL_ODD_CHANNEL_1

#define ECG2_CHANNEL_ODD_CHANNEL_1   0x00

ECG 2 channel settings.

Specified channel settings of ECG 2 Click driver.

◆ ECG2_CHANNEL_ODD_CHANNEL_3

#define ECG2_CHANNEL_ODD_CHANNEL_3   0x01

◆ ECG2_CHANNEL_ODD_CHANNEL_5

#define ECG2_CHANNEL_ODD_CHANNEL_5   0x02

◆ ECG2_CHANNEL_ODD_CHANNEL_7

#define ECG2_CHANNEL_ODD_CHANNEL_7   0x03

◆ ECG2_CONFIG1_REG_DEFAULT_VAL

#define ECG2_CONFIG1_REG_DEFAULT_VAL   0x04

ECG 2 config register default values.

Specified config register default values of ECG 2 Click driver.

◆ ECG2_CONFIG2_REG_DEFAULT_VAL

#define ECG2_CONFIG2_REG_DEFAULT_VAL   0x20

◆ ECG2_CONFIG3_REG_DEFAULT_VAL

#define ECG2_CONFIG3_REG_DEFAULT_VAL   0x40

◆ ECG2_DATA_READY

#define ECG2_DATA_READY   0x01

◆ ECG2_ENABLE_READ_DATA_CONT_MODE

#define ECG2_ENABLE_READ_DATA_CONT_MODE   0x10

◆ ECG2_READ_DATA_CMD

#define ECG2_READ_DATA_CMD   0x12

◆ ECG2_RESET_CMD

#define ECG2_RESET_CMD   0x06

◆ ECG2_SET_DATA_SAMPLE_EDGE

#define ECG2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with ecg2_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ ECG2_SET_DATA_SAMPLE_MIDDLE

#define ECG2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ ECG2_SPI_CMD_READ

#define ECG2_SPI_CMD_READ   0x20

◆ ECG2_SPI_CMD_WRITE

#define ECG2_SPI_CMD_WRITE   0x40

◆ ECG2_STANDBY_CMD

#define ECG2_STANDBY_CMD   0x04

◆ ECG2_START_CONVERSION

#define ECG2_START_CONVERSION   0x08

◆ ECG2_STOP_CONVERSION

#define ECG2_STOP_CONVERSION   0x0A

◆ ECG2_STOP_DATA_CONT_MODE

#define ECG2_STOP_DATA_CONT_MODE   0x11

◆ ECG2_WAKEUP_CMD

#define ECG2_WAKEUP_CMD   0x02

ECG 2 description setting.

Specified setting for description of ECG 2 Click driver.

ECG 2 commands.

Specified commands for description of ECG 2 Click driver.