Loading...
Searching...
No Matches

Internal definitions for AD7746 capacitance sensor. More...

Detailed Description

Internal definitions for AD7746 capacitance sensor.

Author
Leandro Lanzieri leand.nosp@m.ro.l.nosp@m.anzie.nosp@m.ri@h.nosp@m.aw-ha.nosp@m.mbur.nosp@m.g.de

Definition in file ad7746_internal.h.

Go to the source code of this file.

Macros

#define AD7746_RESET_CMD   (0xBF)
 AD7746 reset command.
 

AD7746 registers

#define AD7746_REG_STATUS   (0x00)
 Status.
 
#define AD7746_REG_CAP_DATA_H   (0x01)
 Capacitive channel data High.
 
#define AD7746_REG_CAP_DATA_M   (0x02)
 Capacitive channel data Med.
 
#define AD7746_REG_CAP_DATA_L   (0x03)
 Capacitive channel data Low.
 
#define AD7746_REG_VT_DATA_H   (0x04)
 Voltage/Temp channel data High.
 
#define AD7746_REG_VT_DATA_M   (0x05)
 Voltage/Temp channel data Med.
 
#define AD7746_REG_VT_DATA_L   (0x06)
 Voltage/Temp channel data Low.
 
#define AD7746_REG_CAP_SETUP   (0x07)
 Capacitive channel setup.
 
#define AD7746_REG_VT_SETUP   (0x08)
 Voltage/Temp channel setup.
 
#define AD7746_REG_EXC_SETUP   (0x09)
 Capacitive channel excitation setup.
 
#define AD7746_REG_CONFIGURATION   (0x0A)
 Configuration.
 
#define AD7746_REG_CAP_DAC_A   (0x0B)
 Capacitive DAC A setup.
 
#define AD7746_REG_CAP_DAC_B   (0x0C)
 Capacitive DAC B setup.
 
#define AD7746_REG_CAP_OFF_H   (0x0D)
 Capacitive offset High.
 
#define AD7746_REG_CAP_OFF_L   (0x0E)
 Capacitive offset Low.
 
#define AD7746_REG_CAP_GAIN_H   (0x0F)
 Capacitive gain High.
 
#define AD7746_REG_CAP_GAIN_L   (0x10)
 Capacitive gain Low.
 
#define AD7746_REG_VOLT_GAIN_H   (0x11)
 Voltage gain High.
 
#define AD7746_REG_VOLT_GAIN_L   (0x12)
 Voltage gain Low.
 

AD7746 Status register bits

#define AD7746_STATUS_EXCERR_BIT   (3)
 excitation output error
 
#define AD7746_STATUS_RDY_BIT   (2)
 conversion ready
 
#define AD7746_STATUS_RDYVT_BIT   (1)
 voltage/temperature ready
 
#define AD7746_STATUS_RDYCAP_BIT   (0)
 capacitance ready
 

AD7746 Capacitive channel setup register bits

#define AD7746_CAP_SETUP_CAPEN_BIT   (7)
 capacitive channel enable
 
#define AD7746_CAP_SETUP_CIN2_BIT   (6)
 second capacitive channel
 
#define AD7746_CAP_SETUP_CAPDIFF_BIT   (5)
 differential mode enable
 
#define AD7746_CAP_SETUP_CACHOP_BIT   (0)
 capacitive channel chopping
 

AD7746 Voltage/Temperature channel setup register bits

#define AD7746_VT_SETUP_VTEN_BIT   (7)
 
#define AD7746_VT_SETUP_VTMD1_BIT   (6)
 
#define AD7746_VT_SETUP_VTMD0_BIT   (5)
 
#define AD7746_VT_SETUP_EXTREF_BIT   (4)
 
#define AD7746_VT_SETUP_VTSHORT_BIT   (1)
 
#define AD7746_VT_SETUP_VTCHOP_BIT   (0)
 

AD7746 Capacitive channel excitation setup register bits

#define AD7746_EXC_SETUP_CLKCTRL_BIT   (7)
 Clock control.
 
#define AD7746_EXC_SETUP_EXCON_BIT   (6)
 Excitation signal control.
 
#define AD7746_EXC_SETUP_EXCB_BIT   (5)
 EXCB pin enable.
 
#define AD7746_EXC_SETUP_INV_EXCB_BIT   (4)
 EXCB pin disable.
 
#define AD7746_EXC_SETUP_EXCA_BIT   (3)
 EXCA pin enable.
 
#define AD7746_EXC_SETUP_INV_EXCA_BIT   (2)
 EXCA pin disable.
 
#define AD7746_EXC_SETUP_EXCLVL1_BIT   (1)
 Excitation voltage level 1.
 
#define AD7746_EXC_SETUP_EXCLVL0_BIT   (0)
 Excitation voltage level 0.
 

AD7746 Configuration register bits

#define AD7746_CONFIGURATION_VTF1_BIT   (7)
 
#define AD7746_CONFIGURATION_VTF0_BIT   (6)
 
#define AD7746_CONFIGURATION_CAPF2_BIT   (5)
 
#define AD7746_CONFIGURATION_CAPF1_BIT   (4)
 
#define AD7746_CONFIGURATION_CAPF0_BIT   (3)
 
#define AD7746_CONFIGURATION_MD2_BIT   (2)
 
#define AD7746_CONFIGURATION_MD1_BIT   (1)
 
#define AD7746_CONFIGURATION_MD0_BIT   (0)
 

AD7746 DAC A register bits

#define AD7746_DACAEN_BIT   7
 

AD7746 DAC B register bits

#define AD7746_DACBEN_BIT   7
 

Macro Definition Documentation

◆ AD7746_CAP_SETUP_CACHOP_BIT

#define AD7746_CAP_SETUP_CACHOP_BIT   (0)

capacitive channel chopping

Definition at line 73 of file ad7746_internal.h.

◆ AD7746_CAP_SETUP_CAPDIFF_BIT

#define AD7746_CAP_SETUP_CAPDIFF_BIT   (5)

differential mode enable

Definition at line 72 of file ad7746_internal.h.

◆ AD7746_CAP_SETUP_CAPEN_BIT

#define AD7746_CAP_SETUP_CAPEN_BIT   (7)

capacitive channel enable

Definition at line 70 of file ad7746_internal.h.

◆ AD7746_CAP_SETUP_CIN2_BIT

#define AD7746_CAP_SETUP_CIN2_BIT   (6)

second capacitive channel

Definition at line 71 of file ad7746_internal.h.

◆ AD7746_CONFIGURATION_CAPF0_BIT

#define AD7746_CONFIGURATION_CAPF0_BIT   (3)

Definition at line 110 of file ad7746_internal.h.

◆ AD7746_CONFIGURATION_CAPF1_BIT

#define AD7746_CONFIGURATION_CAPF1_BIT   (4)

Definition at line 109 of file ad7746_internal.h.

◆ AD7746_CONFIGURATION_CAPF2_BIT

#define AD7746_CONFIGURATION_CAPF2_BIT   (5)

Definition at line 108 of file ad7746_internal.h.

◆ AD7746_CONFIGURATION_MD0_BIT

#define AD7746_CONFIGURATION_MD0_BIT   (0)

Definition at line 113 of file ad7746_internal.h.

◆ AD7746_CONFIGURATION_MD1_BIT

#define AD7746_CONFIGURATION_MD1_BIT   (1)

Definition at line 112 of file ad7746_internal.h.

◆ AD7746_CONFIGURATION_MD2_BIT

#define AD7746_CONFIGURATION_MD2_BIT   (2)

Definition at line 111 of file ad7746_internal.h.

◆ AD7746_CONFIGURATION_VTF0_BIT

#define AD7746_CONFIGURATION_VTF0_BIT   (6)

Definition at line 107 of file ad7746_internal.h.

◆ AD7746_CONFIGURATION_VTF1_BIT

#define AD7746_CONFIGURATION_VTF1_BIT   (7)

Definition at line 106 of file ad7746_internal.h.

◆ AD7746_DACAEN_BIT

#define AD7746_DACAEN_BIT   7

Definition at line 120 of file ad7746_internal.h.

◆ AD7746_DACBEN_BIT

#define AD7746_DACBEN_BIT   7

Definition at line 127 of file ad7746_internal.h.

◆ AD7746_EXC_SETUP_CLKCTRL_BIT

#define AD7746_EXC_SETUP_CLKCTRL_BIT   (7)

Clock control.

Definition at line 92 of file ad7746_internal.h.

◆ AD7746_EXC_SETUP_EXCA_BIT

#define AD7746_EXC_SETUP_EXCA_BIT   (3)

EXCA pin enable.

Definition at line 96 of file ad7746_internal.h.

◆ AD7746_EXC_SETUP_EXCB_BIT

#define AD7746_EXC_SETUP_EXCB_BIT   (5)

EXCB pin enable.

Definition at line 94 of file ad7746_internal.h.

◆ AD7746_EXC_SETUP_EXCLVL0_BIT

#define AD7746_EXC_SETUP_EXCLVL0_BIT   (0)

Excitation voltage level 0.

Definition at line 99 of file ad7746_internal.h.

◆ AD7746_EXC_SETUP_EXCLVL1_BIT

#define AD7746_EXC_SETUP_EXCLVL1_BIT   (1)

Excitation voltage level 1.

Definition at line 98 of file ad7746_internal.h.

◆ AD7746_EXC_SETUP_EXCON_BIT

#define AD7746_EXC_SETUP_EXCON_BIT   (6)

Excitation signal control.

Definition at line 93 of file ad7746_internal.h.

◆ AD7746_EXC_SETUP_INV_EXCA_BIT

#define AD7746_EXC_SETUP_INV_EXCA_BIT   (2)

EXCA pin disable.

Definition at line 97 of file ad7746_internal.h.

◆ AD7746_EXC_SETUP_INV_EXCB_BIT

#define AD7746_EXC_SETUP_INV_EXCB_BIT   (4)

EXCB pin disable.

Definition at line 95 of file ad7746_internal.h.

◆ AD7746_REG_CAP_DAC_A

#define AD7746_REG_CAP_DAC_A   (0x0B)

Capacitive DAC A setup.

Definition at line 41 of file ad7746_internal.h.

◆ AD7746_REG_CAP_DAC_B

#define AD7746_REG_CAP_DAC_B   (0x0C)

Capacitive DAC B setup.

Definition at line 42 of file ad7746_internal.h.

◆ AD7746_REG_CAP_DATA_H

#define AD7746_REG_CAP_DATA_H   (0x01)

Capacitive channel data High.

Definition at line 31 of file ad7746_internal.h.

◆ AD7746_REG_CAP_DATA_L

#define AD7746_REG_CAP_DATA_L   (0x03)

Capacitive channel data Low.

Definition at line 33 of file ad7746_internal.h.

◆ AD7746_REG_CAP_DATA_M

#define AD7746_REG_CAP_DATA_M   (0x02)

Capacitive channel data Med.

Definition at line 32 of file ad7746_internal.h.

◆ AD7746_REG_CAP_GAIN_H

#define AD7746_REG_CAP_GAIN_H   (0x0F)

Capacitive gain High.

Definition at line 45 of file ad7746_internal.h.

◆ AD7746_REG_CAP_GAIN_L

#define AD7746_REG_CAP_GAIN_L   (0x10)

Capacitive gain Low.

Definition at line 46 of file ad7746_internal.h.

◆ AD7746_REG_CAP_OFF_H

#define AD7746_REG_CAP_OFF_H   (0x0D)

Capacitive offset High.

Definition at line 43 of file ad7746_internal.h.

◆ AD7746_REG_CAP_OFF_L

#define AD7746_REG_CAP_OFF_L   (0x0E)

Capacitive offset Low.

Definition at line 44 of file ad7746_internal.h.

◆ AD7746_REG_CAP_SETUP

#define AD7746_REG_CAP_SETUP   (0x07)

Capacitive channel setup.

Definition at line 37 of file ad7746_internal.h.

◆ AD7746_REG_CONFIGURATION

#define AD7746_REG_CONFIGURATION   (0x0A)

Configuration.

Definition at line 40 of file ad7746_internal.h.

◆ AD7746_REG_EXC_SETUP

#define AD7746_REG_EXC_SETUP   (0x09)

Capacitive channel excitation setup.

Definition at line 39 of file ad7746_internal.h.

◆ AD7746_REG_STATUS

#define AD7746_REG_STATUS   (0x00)

Status.

Definition at line 30 of file ad7746_internal.h.

◆ AD7746_REG_VOLT_GAIN_H

#define AD7746_REG_VOLT_GAIN_H   (0x11)

Voltage gain High.

Definition at line 47 of file ad7746_internal.h.

◆ AD7746_REG_VOLT_GAIN_L

#define AD7746_REG_VOLT_GAIN_L   (0x12)

Voltage gain Low.

Definition at line 48 of file ad7746_internal.h.

◆ AD7746_REG_VT_DATA_H

#define AD7746_REG_VT_DATA_H   (0x04)

Voltage/Temp channel data High.

Definition at line 34 of file ad7746_internal.h.

◆ AD7746_REG_VT_DATA_L

#define AD7746_REG_VT_DATA_L   (0x06)

Voltage/Temp channel data Low.

Definition at line 36 of file ad7746_internal.h.

◆ AD7746_REG_VT_DATA_M

#define AD7746_REG_VT_DATA_M   (0x05)

Voltage/Temp channel data Med.

Definition at line 35 of file ad7746_internal.h.

◆ AD7746_REG_VT_SETUP

#define AD7746_REG_VT_SETUP   (0x08)

Voltage/Temp channel setup.

Definition at line 38 of file ad7746_internal.h.

◆ AD7746_RESET_CMD

#define AD7746_RESET_CMD   (0xBF)

AD7746 reset command.

Definition at line 54 of file ad7746_internal.h.

◆ AD7746_STATUS_EXCERR_BIT

#define AD7746_STATUS_EXCERR_BIT   (3)

excitation output error

Definition at line 60 of file ad7746_internal.h.

◆ AD7746_STATUS_RDY_BIT

#define AD7746_STATUS_RDY_BIT   (2)

conversion ready

Definition at line 61 of file ad7746_internal.h.

◆ AD7746_STATUS_RDYCAP_BIT

#define AD7746_STATUS_RDYCAP_BIT   (0)

capacitance ready

Definition at line 63 of file ad7746_internal.h.

◆ AD7746_STATUS_RDYVT_BIT

#define AD7746_STATUS_RDYVT_BIT   (1)

voltage/temperature ready

Definition at line 62 of file ad7746_internal.h.

◆ AD7746_VT_SETUP_EXTREF_BIT

#define AD7746_VT_SETUP_EXTREF_BIT   (4)

Definition at line 83 of file ad7746_internal.h.

◆ AD7746_VT_SETUP_VTCHOP_BIT

#define AD7746_VT_SETUP_VTCHOP_BIT   (0)

Definition at line 85 of file ad7746_internal.h.

◆ AD7746_VT_SETUP_VTEN_BIT

#define AD7746_VT_SETUP_VTEN_BIT   (7)

Definition at line 80 of file ad7746_internal.h.

◆ AD7746_VT_SETUP_VTMD0_BIT

#define AD7746_VT_SETUP_VTMD0_BIT   (5)

Definition at line 82 of file ad7746_internal.h.

◆ AD7746_VT_SETUP_VTMD1_BIT

#define AD7746_VT_SETUP_VTMD1_BIT   (6)

Definition at line 81 of file ad7746_internal.h.

◆ AD7746_VT_SETUP_VTSHORT_BIT

#define AD7746_VT_SETUP_VTSHORT_BIT   (1)

Definition at line 84 of file ad7746_internal.h.