1 /*
2  * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #pragma once
8 
9 /**
10  * @file regi2c_dig_reg.h
11  * @brief Register definitions for digital to get rtc voltage & digital voltage
12  *        by setting rtc_dbias_Wak & dig_dbias_wak or by analog self-calibration.
13  */
14 
15 #define I2C_DIG_REG 0x6D
16 #define I2C_DIG_REG_HOSTID 0
17 
18 #define I2C_DIG_REG_EXT_RTC_DREG    4
19 #define I2C_DIG_REG_EXT_RTC_DREG_MSB    4
20 #define I2C_DIG_REG_EXT_RTC_DREG_LSB    0
21 
22 #define I2C_DIG_REG_ENX_RTC_DREG    4
23 #define I2C_DIG_REG_ENX_RTC_DREG_MSB    7
24 #define I2C_DIG_REG_ENX_RTC_DREG_LSB    7
25 
26 #define I2C_DIG_REG_EXT_RTC_DREG_SLEEP    5
27 #define I2C_DIG_REG_EXT_RTC_DREG_SLEEP_MSB    4
28 #define I2C_DIG_REG_EXT_RTC_DREG_SLEEP_LSB    0
29 
30 #define I2C_DIG_REG_ENIF_RTC_DREG    5
31 #define I2C_DIG_REG_ENIF_RTC_DREG_MSB    7
32 #define I2C_DIG_REG_ENIF_RTC_DREG_LSB    7
33 
34 #define I2C_DIG_REG_EXT_DIG_DREG    6
35 #define I2C_DIG_REG_EXT_DIG_DREG_MSB    4
36 #define I2C_DIG_REG_EXT_DIG_DREG_LSB    0
37 
38 #define I2C_DIG_REG_ENX_DIG_DREG    6
39 #define I2C_DIG_REG_ENX_DIG_DREG_MSB    7
40 #define I2C_DIG_REG_ENX_DIG_DREG_LSB    7
41 
42 #define I2C_DIG_REG_EXT_DIG_DREG_SLEEP    7
43 #define I2C_DIG_REG_EXT_DIG_DREG_SLEEP_MSB    4
44 #define I2C_DIG_REG_EXT_DIG_DREG_SLEEP_LSB    0
45 
46 #define I2C_DIG_REG_ENIF_DIG_DREG    7
47 #define I2C_DIG_REG_ENIF_DIG_DREG_MSB    7
48 #define I2C_DIG_REG_ENIF_DIG_DREG_LSB    7
49 
50 #define I2C_DIG_REG_OR_EN_CONT_CAL 9
51 #define I2C_DIG_REG_OR_EN_CONT_CAL_MSB 7
52 #define I2C_DIG_REG_OR_EN_CONT_CAL_LSB 7
53 
54 #define I2C_DIG_REG_XPD_RTC_REG 13
55 #define I2C_DIG_REG_XPD_RTC_REG_MSB 2
56 #define I2C_DIG_REG_XPD_RTC_REG_LSB 2
57 
58 #define I2C_DIG_REG_XPD_DIG_REG 13
59 #define I2C_DIG_REG_XPD_DIG_REG_MSB 3
60 #define I2C_DIG_REG_XPD_DIG_REG_LSB 3
61 
62 #define I2C_DIG_REG_SCK_DCAP	14
63 #define I2C_DIG_REG_SCK_DCAP_MSB	7
64 #define I2C_DIG_REG_SCK_DCAP_LSB	0
65