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
9
#pragma once
10
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#define AD7746_REG_STATUS (0x00)
30
#define AD7746_REG_CAP_DATA_H (0x01)
31
#define AD7746_REG_CAP_DATA_M (0x02)
32
#define AD7746_REG_CAP_DATA_L (0x03)
33
#define AD7746_REG_VT_DATA_H (0x04)
34
#define AD7746_REG_VT_DATA_M (0x05)
35
#define AD7746_REG_VT_DATA_L (0x06)
36
#define AD7746_REG_CAP_SETUP (0x07)
37
#define AD7746_REG_VT_SETUP (0x08)
38
#define AD7746_REG_EXC_SETUP (0x09)
39
#define AD7746_REG_CONFIGURATION (0x0A)
40
#define AD7746_REG_CAP_DAC_A (0x0B)
41
#define AD7746_REG_CAP_DAC_B (0x0C)
42
#define AD7746_REG_CAP_OFF_H (0x0D)
43
#define AD7746_REG_CAP_OFF_L (0x0E)
44
#define AD7746_REG_CAP_GAIN_H (0x0F)
45
#define AD7746_REG_CAP_GAIN_L (0x10)
46
#define AD7746_REG_VOLT_GAIN_H (0x11)
47
#define AD7746_REG_VOLT_GAIN_L (0x12)
53
#define AD7746_RESET_CMD (0xBF)
54
59
#define AD7746_STATUS_EXCERR_BIT (3)
60
#define AD7746_STATUS_RDY_BIT (2)
61
#define AD7746_STATUS_RDYVT_BIT (1)
62
#define AD7746_STATUS_RDYCAP_BIT (0)
69
#define AD7746_CAP_SETUP_CAPEN_BIT (7)
70
#define AD7746_CAP_SETUP_CIN2_BIT (6)
71
#define AD7746_CAP_SETUP_CAPDIFF_BIT (5)
72
#define AD7746_CAP_SETUP_CACHOP_BIT (0)
79
#define AD7746_VT_SETUP_VTEN_BIT (7)
80
#define AD7746_VT_SETUP_VTMD1_BIT (6)
81
#define AD7746_VT_SETUP_VTMD0_BIT (5)
82
#define AD7746_VT_SETUP_EXTREF_BIT (4)
83
#define AD7746_VT_SETUP_VTSHORT_BIT (1)
84
#define AD7746_VT_SETUP_VTCHOP_BIT (0)
91
#define AD7746_EXC_SETUP_CLKCTRL_BIT (7)
92
#define AD7746_EXC_SETUP_EXCON_BIT (6)
93
#define AD7746_EXC_SETUP_EXCB_BIT (5)
94
#define AD7746_EXC_SETUP_INV_EXCB_BIT (4)
95
#define AD7746_EXC_SETUP_EXCA_BIT (3)
96
#define AD7746_EXC_SETUP_INV_EXCA_BIT (2)
97
#define AD7746_EXC_SETUP_EXCLVL1_BIT (1)
98
#define AD7746_EXC_SETUP_EXCLVL0_BIT (0)
105
#define AD7746_CONFIGURATION_VTF1_BIT (7)
106
#define AD7746_CONFIGURATION_VTF0_BIT (6)
107
#define AD7746_CONFIGURATION_CAPF2_BIT (5)
108
#define AD7746_CONFIGURATION_CAPF1_BIT (4)
109
#define AD7746_CONFIGURATION_CAPF0_BIT (3)
110
#define AD7746_CONFIGURATION_MD2_BIT (2)
111
#define AD7746_CONFIGURATION_MD1_BIT (1)
112
#define AD7746_CONFIGURATION_MD0_BIT (0)
119
#define AD7746_DACAEN_BIT 7
126
#define AD7746_DACBEN_BIT 7
129
#ifdef __cplusplus
130
}
131
#endif
132
Generated on Mon Jun 30 2025 18:46:45 by
1.9.1