Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
ad7746_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 HAW Hamburg
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
19
#ifndef AD7746_INTERNAL_H
20
#define AD7746_INTERNAL_H
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
#define AD7746_REG_STATUS (0x00)
31
#define AD7746_REG_CAP_DATA_H (0x01)
32
#define AD7746_REG_CAP_DATA_M (0x02)
33
#define AD7746_REG_CAP_DATA_L (0x03)
34
#define AD7746_REG_VT_DATA_H (0x04)
35
#define AD7746_REG_VT_DATA_M (0x05)
36
#define AD7746_REG_VT_DATA_L (0x06)
37
#define AD7746_REG_CAP_SETUP (0x07)
38
#define AD7746_REG_VT_SETUP (0x08)
39
#define AD7746_REG_EXC_SETUP (0x09)
40
#define AD7746_REG_CONFIGURATION (0x0A)
41
#define AD7746_REG_CAP_DAC_A (0x0B)
42
#define AD7746_REG_CAP_DAC_B (0x0C)
43
#define AD7746_REG_CAP_OFF_H (0x0D)
44
#define AD7746_REG_CAP_OFF_L (0x0E)
45
#define AD7746_REG_CAP_GAIN_H (0x0F)
46
#define AD7746_REG_CAP_GAIN_L (0x10)
47
#define AD7746_REG_VOLT_GAIN_H (0x11)
48
#define AD7746_REG_VOLT_GAIN_L (0x12)
54
#define AD7746_RESET_CMD (0xBF)
55
60
#define AD7746_STATUS_EXCERR_BIT (3)
61
#define AD7746_STATUS_RDY_BIT (2)
62
#define AD7746_STATUS_RDYVT_BIT (1)
63
#define AD7746_STATUS_RDYCAP_BIT (0)
70
#define AD7746_CAP_SETUP_CAPEN_BIT (7)
71
#define AD7746_CAP_SETUP_CIN2_BIT (6)
72
#define AD7746_CAP_SETUP_CAPDIFF_BIT (5)
73
#define AD7746_CAP_SETUP_CACHOP_BIT (0)
80
#define AD7746_VT_SETUP_VTEN_BIT (7)
81
#define AD7746_VT_SETUP_VTMD1_BIT (6)
82
#define AD7746_VT_SETUP_VTMD0_BIT (5)
83
#define AD7746_VT_SETUP_EXTREF_BIT (4)
84
#define AD7746_VT_SETUP_VTSHORT_BIT (1)
85
#define AD7746_VT_SETUP_VTCHOP_BIT (0)
86
92
#define AD7746_EXC_SETUP_CLKCTRL_BIT (7)
93
#define AD7746_EXC_SETUP_EXCON_BIT (6)
94
#define AD7746_EXC_SETUP_EXCB_BIT (5)
95
#define AD7746_EXC_SETUP_INV_EXCB_BIT (4)
96
#define AD7746_EXC_SETUP_EXCA_BIT (3)
97
#define AD7746_EXC_SETUP_INV_EXCA_BIT (2)
98
#define AD7746_EXC_SETUP_EXCLVL1_BIT (1)
99
#define AD7746_EXC_SETUP_EXCLVL0_BIT (0)
106
#define AD7746_CONFIGURATION_VTF1_BIT (7)
107
#define AD7746_CONFIGURATION_VTF0_BIT (6)
108
#define AD7746_CONFIGURATION_CAPF2_BIT (5)
109
#define AD7746_CONFIGURATION_CAPF1_BIT (4)
110
#define AD7746_CONFIGURATION_CAPF0_BIT (3)
111
#define AD7746_CONFIGURATION_MD2_BIT (2)
112
#define AD7746_CONFIGURATION_MD1_BIT (1)
113
#define AD7746_CONFIGURATION_MD0_BIT (0)
114
120
#define AD7746_DACAEN_BIT 7
121
127
#define AD7746_DACBEN_BIT 7
128
130
#ifdef __cplusplus
131
}
132
#endif
133
134
#endif
/* AD7746_INTERNAL_H */
135
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17