1
+ //! eFuse field definitions for the esp32
2
+ //!
1
3
//! This file was automatically generated, please do not edit it manually!
2
4
//!
3
- //! Generated: 2025-05-30 12:24
5
+ //! Generated: 2025-06-25 11:06
4
6
//! Version: 369d2d860d34e777c0f7d545a7dfc3c4
5
7
6
8
#![ allow( unused) ]
@@ -11,135 +13,135 @@ use super::EfuseField;
11
13
pub ( crate ) const BLOCK_SIZES : & [ u32 ] = & [ 28 , 32 , 32 , 32 ] ;
12
14
13
15
/// Efuse write disable mask
14
- pub ( crate ) const WR_DIS : EfuseField = EfuseField :: new ( 0 , 0 , 0 , 16 ) ;
16
+ pub const WR_DIS : EfuseField = EfuseField :: new ( 0 , 0 , 0 , 16 ) ;
15
17
/// Disable reading from BlOCK1-3
16
- pub ( crate ) const RD_DIS : EfuseField = EfuseField :: new ( 0 , 0 , 16 , 4 ) ;
18
+ pub const RD_DIS : EfuseField = EfuseField :: new ( 0 , 0 , 16 , 4 ) ;
17
19
/// Flash encryption is enabled if this field has an odd number of bits set
18
- pub ( crate ) const FLASH_CRYPT_CNT : EfuseField = EfuseField :: new ( 0 , 0 , 20 , 7 ) ;
20
+ pub const FLASH_CRYPT_CNT : EfuseField = EfuseField :: new ( 0 , 0 , 20 , 7 ) ;
19
21
/// Disable UART download mode. Valid for ESP32 V3 and newer; only
20
- pub ( crate ) const UART_DOWNLOAD_DIS : EfuseField = EfuseField :: new ( 0 , 0 , 27 , 1 ) ;
22
+ pub const UART_DOWNLOAD_DIS : EfuseField = EfuseField :: new ( 0 , 0 , 27 , 1 ) ;
21
23
/// reserved
22
- pub ( crate ) const RESERVED_0_28 : EfuseField = EfuseField :: new ( 0 , 0 , 28 , 4 ) ;
24
+ pub const RESERVED_0_28 : EfuseField = EfuseField :: new ( 0 , 0 , 28 , 4 ) ;
23
25
/// MAC address
24
- pub ( crate ) const MAC0 : EfuseField = EfuseField :: new ( 0 , 1 , 32 , 32 ) ;
26
+ pub const MAC0 : EfuseField = EfuseField :: new ( 0 , 1 , 32 , 32 ) ;
25
27
/// MAC address
26
- pub ( crate ) const MAC1 : EfuseField = EfuseField :: new ( 0 , 2 , 64 , 16 ) ;
28
+ pub const MAC1 : EfuseField = EfuseField :: new ( 0 , 2 , 64 , 16 ) ;
27
29
/// CRC8 for MAC address
28
- pub ( crate ) const MAC_CRC : EfuseField = EfuseField :: new ( 0 , 2 , 80 , 8 ) ;
30
+ pub const MAC_CRC : EfuseField = EfuseField :: new ( 0 , 2 , 80 , 8 ) ;
29
31
/// Reserved; it was created by set_missed_fields_in_regs func
30
- pub ( crate ) const RESERVE_0_88 : EfuseField = EfuseField :: new ( 0 , 2 , 88 , 8 ) ;
32
+ pub const RESERVE_0_88 : EfuseField = EfuseField :: new ( 0 , 2 , 88 , 8 ) ;
31
33
/// Disables APP CPU
32
- pub ( crate ) const DISABLE_APP_CPU : EfuseField = EfuseField :: new ( 0 , 3 , 96 , 1 ) ;
34
+ pub const DISABLE_APP_CPU : EfuseField = EfuseField :: new ( 0 , 3 , 96 , 1 ) ;
33
35
/// Disables Bluetooth
34
- pub ( crate ) const DISABLE_BT : EfuseField = EfuseField :: new ( 0 , 3 , 97 , 1 ) ;
36
+ pub const DISABLE_BT : EfuseField = EfuseField :: new ( 0 , 3 , 97 , 1 ) ;
35
37
/// Chip package identifier #4bit
36
- pub ( crate ) const CHIP_PACKAGE_4BIT : EfuseField = EfuseField :: new ( 0 , 3 , 98 , 1 ) ;
38
+ pub const CHIP_PACKAGE_4BIT : EfuseField = EfuseField :: new ( 0 , 3 , 98 , 1 ) ;
37
39
/// Disables cache
38
- pub ( crate ) const DIS_CACHE : EfuseField = EfuseField :: new ( 0 , 3 , 99 , 1 ) ;
40
+ pub const DIS_CACHE : EfuseField = EfuseField :: new ( 0 , 3 , 99 , 1 ) ;
39
41
/// read for SPI_pad_config_hd
40
- pub ( crate ) const SPI_PAD_CONFIG_HD : EfuseField = EfuseField :: new ( 0 , 3 , 100 , 5 ) ;
42
+ pub const SPI_PAD_CONFIG_HD : EfuseField = EfuseField :: new ( 0 , 3 , 100 , 5 ) ;
41
43
/// Chip package identifier
42
- pub ( crate ) const CHIP_PACKAGE : EfuseField = EfuseField :: new ( 0 , 3 , 105 , 3 ) ;
44
+ pub const CHIP_PACKAGE : EfuseField = EfuseField :: new ( 0 , 3 , 105 , 3 ) ;
43
45
/// If set alongside EFUSE_RD_CHIP_CPU_FREQ_RATED; the ESP32's max CPU frequency
44
46
/// is rated for 160MHz. 240MHz otherwise
45
- pub ( crate ) const CHIP_CPU_FREQ_LOW : EfuseField = EfuseField :: new ( 0 , 3 , 108 , 1 ) ;
47
+ pub const CHIP_CPU_FREQ_LOW : EfuseField = EfuseField :: new ( 0 , 3 , 108 , 1 ) ;
46
48
/// If set; the ESP32's maximum CPU frequency has been rated
47
- pub ( crate ) const CHIP_CPU_FREQ_RATED : EfuseField = EfuseField :: new ( 0 , 3 , 109 , 1 ) ;
49
+ pub const CHIP_CPU_FREQ_RATED : EfuseField = EfuseField :: new ( 0 , 3 , 109 , 1 ) ;
48
50
/// BLOCK3 partially served for ADC calibration data
49
- pub ( crate ) const BLK3_PART_RESERVE : EfuseField = EfuseField :: new ( 0 , 3 , 110 , 1 ) ;
51
+ pub const BLK3_PART_RESERVE : EfuseField = EfuseField :: new ( 0 , 3 , 110 , 1 ) ;
50
52
/// bit is set to 1 for rev1 silicon
51
- pub ( crate ) const CHIP_VER_REV1 : EfuseField = EfuseField :: new ( 0 , 3 , 111 , 1 ) ;
53
+ pub const CHIP_VER_REV1 : EfuseField = EfuseField :: new ( 0 , 3 , 111 , 1 ) ;
52
54
/// Reserved; it was created by set_missed_fields_in_regs func
53
- pub ( crate ) const RESERVE_0_112 : EfuseField = EfuseField :: new ( 0 , 3 , 112 , 16 ) ;
55
+ pub const RESERVE_0_112 : EfuseField = EfuseField :: new ( 0 , 3 , 112 , 16 ) ;
54
56
/// 8MHz clock freq override
55
- pub ( crate ) const CLK8M_FREQ : EfuseField = EfuseField :: new ( 0 , 4 , 128 , 8 ) ;
57
+ pub const CLK8M_FREQ : EfuseField = EfuseField :: new ( 0 , 4 , 128 , 8 ) ;
56
58
/// True ADC reference voltage
57
- pub ( crate ) const ADC_VREF : EfuseField = EfuseField :: new ( 0 , 4 , 136 , 5 ) ;
59
+ pub const ADC_VREF : EfuseField = EfuseField :: new ( 0 , 4 , 136 , 5 ) ;
58
60
/// Reserved; it was created by set_missed_fields_in_regs func
59
- pub ( crate ) const RESERVE_0_141 : EfuseField = EfuseField :: new ( 0 , 4 , 141 , 1 ) ;
61
+ pub const RESERVE_0_141 : EfuseField = EfuseField :: new ( 0 , 4 , 141 , 1 ) ;
60
62
/// read for XPD_SDIO_REG
61
- pub ( crate ) const XPD_SDIO_REG : EfuseField = EfuseField :: new ( 0 , 4 , 142 , 1 ) ;
63
+ pub const XPD_SDIO_REG : EfuseField = EfuseField :: new ( 0 , 4 , 142 , 1 ) ;
62
64
/// If XPD_SDIO_FORCE & XPD_SDIO_REG
63
- pub ( crate ) const XPD_SDIO_TIEH : EfuseField = EfuseField :: new ( 0 , 4 , 143 , 1 ) ;
65
+ pub const XPD_SDIO_TIEH : EfuseField = EfuseField :: new ( 0 , 4 , 143 , 1 ) ;
64
66
/// Ignore MTDI pin (GPIO12) for VDD_SDIO on reset
65
- pub ( crate ) const XPD_SDIO_FORCE : EfuseField = EfuseField :: new ( 0 , 4 , 144 , 1 ) ;
67
+ pub const XPD_SDIO_FORCE : EfuseField = EfuseField :: new ( 0 , 4 , 144 , 1 ) ;
66
68
/// Reserved; it was created by set_missed_fields_in_regs func
67
- pub ( crate ) const RESERVE_0_145 : EfuseField = EfuseField :: new ( 0 , 4 , 145 , 15 ) ;
69
+ pub const RESERVE_0_145 : EfuseField = EfuseField :: new ( 0 , 4 , 145 , 15 ) ;
68
70
/// Override SD_CLK pad (GPIO6/SPICLK)
69
- pub ( crate ) const SPI_PAD_CONFIG_CLK : EfuseField = EfuseField :: new ( 0 , 5 , 160 , 5 ) ;
71
+ pub const SPI_PAD_CONFIG_CLK : EfuseField = EfuseField :: new ( 0 , 5 , 160 , 5 ) ;
70
72
/// Override SD_DATA_0 pad (GPIO7/SPIQ)
71
- pub ( crate ) const SPI_PAD_CONFIG_Q : EfuseField = EfuseField :: new ( 0 , 5 , 165 , 5 ) ;
73
+ pub const SPI_PAD_CONFIG_Q : EfuseField = EfuseField :: new ( 0 , 5 , 165 , 5 ) ;
72
74
/// Override SD_DATA_1 pad (GPIO8/SPID)
73
- pub ( crate ) const SPI_PAD_CONFIG_D : EfuseField = EfuseField :: new ( 0 , 5 , 170 , 5 ) ;
75
+ pub const SPI_PAD_CONFIG_D : EfuseField = EfuseField :: new ( 0 , 5 , 170 , 5 ) ;
74
76
/// Override SD_CMD pad (GPIO11/SPICS0)
75
- pub ( crate ) const SPI_PAD_CONFIG_CS0 : EfuseField = EfuseField :: new ( 0 , 5 , 175 , 5 ) ;
77
+ pub const SPI_PAD_CONFIG_CS0 : EfuseField = EfuseField :: new ( 0 , 5 , 175 , 5 ) ;
76
78
///
77
- pub ( crate ) const CHIP_VER_REV2 : EfuseField = EfuseField :: new ( 0 , 5 , 180 , 1 ) ;
79
+ pub const CHIP_VER_REV2 : EfuseField = EfuseField :: new ( 0 , 5 , 180 , 1 ) ;
78
80
/// Reserved; it was created by set_missed_fields_in_regs func
79
- pub ( crate ) const RESERVE_0_181 : EfuseField = EfuseField :: new ( 0 , 5 , 181 , 1 ) ;
81
+ pub const RESERVE_0_181 : EfuseField = EfuseField :: new ( 0 , 5 , 181 , 1 ) ;
80
82
/// This field stores the voltage level for CPU to run at 240 MHz; or for
81
83
/// flash/PSRAM to run at 80 MHz.0x0: level 7; 0x1: level 6; 0x2: level 5; 0x3:
82
84
/// level 4. (RO)
83
- pub ( crate ) const VOL_LEVEL_HP_INV : EfuseField = EfuseField :: new ( 0 , 5 , 182 , 2 ) ;
85
+ pub const VOL_LEVEL_HP_INV : EfuseField = EfuseField :: new ( 0 , 5 , 182 , 2 ) ;
84
86
///
85
- pub ( crate ) const WAFER_VERSION_MINOR : EfuseField = EfuseField :: new ( 0 , 5 , 184 , 2 ) ;
87
+ pub const WAFER_VERSION_MINOR : EfuseField = EfuseField :: new ( 0 , 5 , 184 , 2 ) ;
86
88
/// Reserved; it was created by set_missed_fields_in_regs func
87
- pub ( crate ) const RESERVE_0_186 : EfuseField = EfuseField :: new ( 0 , 5 , 186 , 2 ) ;
89
+ pub const RESERVE_0_186 : EfuseField = EfuseField :: new ( 0 , 5 , 186 , 2 ) ;
88
90
/// Flash encryption config (key tweak bits)
89
- pub ( crate ) const FLASH_CRYPT_CONFIG : EfuseField = EfuseField :: new ( 0 , 5 , 188 , 4 ) ;
91
+ pub const FLASH_CRYPT_CONFIG : EfuseField = EfuseField :: new ( 0 , 5 , 188 , 4 ) ;
90
92
/// Efuse variable block length scheme
91
- pub ( crate ) const CODING_SCHEME : EfuseField = EfuseField :: new ( 0 , 6 , 192 , 2 ) ;
93
+ pub const CODING_SCHEME : EfuseField = EfuseField :: new ( 0 , 6 , 192 , 2 ) ;
92
94
/// Disable ROM BASIC interpreter fallback
93
- pub ( crate ) const CONSOLE_DEBUG_DISABLE : EfuseField = EfuseField :: new ( 0 , 6 , 194 , 1 ) ;
95
+ pub const CONSOLE_DEBUG_DISABLE : EfuseField = EfuseField :: new ( 0 , 6 , 194 , 1 ) ;
94
96
///
95
- pub ( crate ) const DISABLE_SDIO_HOST : EfuseField = EfuseField :: new ( 0 , 6 , 195 , 1 ) ;
97
+ pub const DISABLE_SDIO_HOST : EfuseField = EfuseField :: new ( 0 , 6 , 195 , 1 ) ;
96
98
/// Secure boot V1 is enabled for bootloader image
97
- pub ( crate ) const ABS_DONE_0 : EfuseField = EfuseField :: new ( 0 , 6 , 196 , 1 ) ;
99
+ pub const ABS_DONE_0 : EfuseField = EfuseField :: new ( 0 , 6 , 196 , 1 ) ;
98
100
/// Secure boot V2 is enabled for bootloader image
99
- pub ( crate ) const ABS_DONE_1 : EfuseField = EfuseField :: new ( 0 , 6 , 197 , 1 ) ;
101
+ pub const ABS_DONE_1 : EfuseField = EfuseField :: new ( 0 , 6 , 197 , 1 ) ;
100
102
/// Disable JTAG
101
- pub ( crate ) const JTAG_DISABLE : EfuseField = EfuseField :: new ( 0 , 6 , 198 , 1 ) ;
103
+ pub const JTAG_DISABLE : EfuseField = EfuseField :: new ( 0 , 6 , 198 , 1 ) ;
102
104
/// Disable flash encryption in UART bootloader
103
- pub ( crate ) const DISABLE_DL_ENCRYPT : EfuseField = EfuseField :: new ( 0 , 6 , 199 , 1 ) ;
105
+ pub const DISABLE_DL_ENCRYPT : EfuseField = EfuseField :: new ( 0 , 6 , 199 , 1 ) ;
104
106
/// Disable flash decryption in UART bootloader
105
- pub ( crate ) const DISABLE_DL_DECRYPT : EfuseField = EfuseField :: new ( 0 , 6 , 200 , 1 ) ;
107
+ pub const DISABLE_DL_DECRYPT : EfuseField = EfuseField :: new ( 0 , 6 , 200 , 1 ) ;
106
108
/// Disable flash cache in UART bootloader
107
- pub ( crate ) const DISABLE_DL_CACHE : EfuseField = EfuseField :: new ( 0 , 6 , 201 , 1 ) ;
109
+ pub const DISABLE_DL_CACHE : EfuseField = EfuseField :: new ( 0 , 6 , 201 , 1 ) ;
108
110
/// Usage of efuse block 3 (reserved)
109
- pub ( crate ) const KEY_STATUS : EfuseField = EfuseField :: new ( 0 , 6 , 202 , 1 ) ;
111
+ pub const KEY_STATUS : EfuseField = EfuseField :: new ( 0 , 6 , 202 , 1 ) ;
110
112
/// Reserved; it was created by set_missed_fields_in_regs func
111
- pub ( crate ) const RESERVE_0_203 : EfuseField = EfuseField :: new ( 0 , 6 , 203 , 21 ) ;
113
+ pub const RESERVE_0_203 : EfuseField = EfuseField :: new ( 0 , 6 , 203 , 21 ) ;
112
114
/// Flash encryption key
113
- pub ( crate ) const BLOCK1 : EfuseField = EfuseField :: new ( 1 , 0 , 0 , 256 ) ;
115
+ pub const BLOCK1 : EfuseField = EfuseField :: new ( 1 , 0 , 0 , 256 ) ;
114
116
/// Security boot key
115
- pub ( crate ) const BLOCK2 : EfuseField = EfuseField :: new ( 2 , 0 , 0 , 256 ) ;
117
+ pub const BLOCK2 : EfuseField = EfuseField :: new ( 2 , 0 , 0 , 256 ) ;
116
118
/// CRC8 for custom MAC address
117
- pub ( crate ) const CUSTOM_MAC_CRC : EfuseField = EfuseField :: new ( 3 , 0 , 0 , 8 ) ;
119
+ pub const CUSTOM_MAC_CRC : EfuseField = EfuseField :: new ( 3 , 0 , 0 , 8 ) ;
118
120
/// Custom MAC address
119
- pub ( crate ) const CUSTOM_MAC : EfuseField = EfuseField :: new ( 3 , 0 , 8 , 48 ) ;
121
+ pub const CUSTOM_MAC : EfuseField = EfuseField :: new ( 3 , 0 , 8 , 48 ) ;
120
122
/// reserved
121
- pub ( crate ) const RESERVED_3_56 : EfuseField = EfuseField :: new ( 3 , 1 , 56 , 8 ) ;
123
+ pub const RESERVED_3_56 : EfuseField = EfuseField :: new ( 3 , 1 , 56 , 8 ) ;
122
124
/// read for BLOCK3
123
- pub ( crate ) const BLK3_RESERVED_2 : EfuseField = EfuseField :: new ( 3 , 2 , 64 , 32 ) ;
125
+ pub const BLK3_RESERVED_2 : EfuseField = EfuseField :: new ( 3 , 2 , 64 , 32 ) ;
124
126
/// ADC1 Two Point calibration low point. Only valid if
125
127
/// EFUSE_RD_BLK3_PART_RESERVE
126
- pub ( crate ) const ADC1_TP_LOW : EfuseField = EfuseField :: new ( 3 , 3 , 96 , 7 ) ;
128
+ pub const ADC1_TP_LOW : EfuseField = EfuseField :: new ( 3 , 3 , 96 , 7 ) ;
127
129
/// ADC1 Two Point calibration high point. Only valid if
128
130
/// EFUSE_RD_BLK3_PART_RESERVE
129
- pub ( crate ) const ADC1_TP_HIGH : EfuseField = EfuseField :: new ( 3 , 3 , 103 , 9 ) ;
131
+ pub const ADC1_TP_HIGH : EfuseField = EfuseField :: new ( 3 , 3 , 103 , 9 ) ;
130
132
/// ADC2 Two Point calibration low point. Only valid if
131
133
/// EFUSE_RD_BLK3_PART_RESERVE
132
- pub ( crate ) const ADC2_TP_LOW : EfuseField = EfuseField :: new ( 3 , 3 , 112 , 7 ) ;
134
+ pub const ADC2_TP_LOW : EfuseField = EfuseField :: new ( 3 , 3 , 112 , 7 ) ;
133
135
/// ADC2 Two Point calibration high point. Only valid if
134
136
/// EFUSE_RD_BLK3_PART_RESERVE
135
- pub ( crate ) const ADC2_TP_HIGH : EfuseField = EfuseField :: new ( 3 , 3 , 119 , 9 ) ;
137
+ pub const ADC2_TP_HIGH : EfuseField = EfuseField :: new ( 3 , 3 , 119 , 9 ) ;
136
138
/// Secure version for anti-rollback
137
- pub ( crate ) const SECURE_VERSION : EfuseField = EfuseField :: new ( 3 , 4 , 128 , 32 ) ;
139
+ pub const SECURE_VERSION : EfuseField = EfuseField :: new ( 3 , 4 , 128 , 32 ) ;
138
140
/// reserved
139
- pub ( crate ) const RESERVED_3_160 : EfuseField = EfuseField :: new ( 3 , 5 , 160 , 24 ) ;
141
+ pub const RESERVED_3_160 : EfuseField = EfuseField :: new ( 3 , 5 , 160 , 24 ) ;
140
142
/// Version of the MAC field
141
- pub ( crate ) const MAC_VERSION : EfuseField = EfuseField :: new ( 3 , 5 , 184 , 8 ) ;
143
+ pub const MAC_VERSION : EfuseField = EfuseField :: new ( 3 , 5 , 184 , 8 ) ;
142
144
/// read for BLOCK3
143
- pub ( crate ) const BLK3_RESERVED_6 : EfuseField = EfuseField :: new ( 3 , 6 , 192 , 32 ) ;
145
+ pub const BLK3_RESERVED_6 : EfuseField = EfuseField :: new ( 3 , 6 , 192 , 32 ) ;
144
146
/// read for BLOCK3
145
- pub ( crate ) const BLK3_RESERVED_7 : EfuseField = EfuseField :: new ( 3 , 7 , 224 , 32 ) ;
147
+ pub const BLK3_RESERVED_7 : EfuseField = EfuseField :: new ( 3 , 7 , 224 , 32 ) ;
0 commit comments