Loading...
Searching...
No Matches
ad7746_internal.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
26#define AD7746_REG_STATUS (0x00)
27#define AD7746_REG_CAP_DATA_H (0x01)
28#define AD7746_REG_CAP_DATA_M (0x02)
29#define AD7746_REG_CAP_DATA_L (0x03)
30#define AD7746_REG_VT_DATA_H (0x04)
31#define AD7746_REG_VT_DATA_M (0x05)
32#define AD7746_REG_VT_DATA_L (0x06)
33#define AD7746_REG_CAP_SETUP (0x07)
34#define AD7746_REG_VT_SETUP (0x08)
35#define AD7746_REG_EXC_SETUP (0x09)
36#define AD7746_REG_CONFIGURATION (0x0A)
37#define AD7746_REG_CAP_DAC_A (0x0B)
38#define AD7746_REG_CAP_DAC_B (0x0C)
39#define AD7746_REG_CAP_OFF_H (0x0D)
40#define AD7746_REG_CAP_OFF_L (0x0E)
41#define AD7746_REG_CAP_GAIN_H (0x0F)
42#define AD7746_REG_CAP_GAIN_L (0x10)
43#define AD7746_REG_VOLT_GAIN_H (0x11)
44#define AD7746_REG_VOLT_GAIN_L (0x12)
46
50#define AD7746_RESET_CMD (0xBF)
51
56#define AD7746_STATUS_EXCERR_BIT (3)
57#define AD7746_STATUS_RDY_BIT (2)
58#define AD7746_STATUS_RDYVT_BIT (1)
59#define AD7746_STATUS_RDYCAP_BIT (0)
61
66#define AD7746_CAP_SETUP_CAPEN_BIT (7)
67#define AD7746_CAP_SETUP_CIN2_BIT (6)
68#define AD7746_CAP_SETUP_CAPDIFF_BIT (5)
69#define AD7746_CAP_SETUP_CACHOP_BIT (0)
71
76#define AD7746_VT_SETUP_VTEN_BIT (7)
77#define AD7746_VT_SETUP_VTMD1_BIT (6)
78#define AD7746_VT_SETUP_VTMD0_BIT (5)
79#define AD7746_VT_SETUP_EXTREF_BIT (4)
80#define AD7746_VT_SETUP_VTSHORT_BIT (1)
81#define AD7746_VT_SETUP_VTCHOP_BIT (0)
83
88#define AD7746_EXC_SETUP_CLKCTRL_BIT (7)
89#define AD7746_EXC_SETUP_EXCON_BIT (6)
90#define AD7746_EXC_SETUP_EXCB_BIT (5)
91#define AD7746_EXC_SETUP_INV_EXCB_BIT (4)
92#define AD7746_EXC_SETUP_EXCA_BIT (3)
93#define AD7746_EXC_SETUP_INV_EXCA_BIT (2)
94#define AD7746_EXC_SETUP_EXCLVL1_BIT (1)
95#define AD7746_EXC_SETUP_EXCLVL0_BIT (0)
97
102#define AD7746_CONFIGURATION_VTF1_BIT (7)
103#define AD7746_CONFIGURATION_VTF0_BIT (6)
104#define AD7746_CONFIGURATION_CAPF2_BIT (5)
105#define AD7746_CONFIGURATION_CAPF1_BIT (4)
106#define AD7746_CONFIGURATION_CAPF0_BIT (3)
107#define AD7746_CONFIGURATION_MD2_BIT (2)
108#define AD7746_CONFIGURATION_MD1_BIT (1)
109#define AD7746_CONFIGURATION_MD0_BIT (0)
111
116#define AD7746_DACAEN_BIT 7
118
123#define AD7746_DACBEN_BIT 7
125
126#ifdef __cplusplus
127}
128#endif
129