esp_hal/soc/esp32c3/efuse/
fields.rs

1//! eFuse fields for the ESP32-C3.
2//!
3//! This file was automatically generated, please do not edit it manually!
4//!
5//! For information on how to regenerate these files, please refer to the
6//! `xtask` package's `README.md` file.
7//!
8//! Generated on:   2024-03-11
9//! ESP-IDF Commit: 0de2912f
10
11use super::EfuseBlock;
12use crate::soc::efuse_field::EfuseField;
13
14/// `[]` Disable programming of individual eFuses
15pub const WR_DIS: EfuseField = EfuseField::new(EfuseBlock::Block0, 0, 32);
16/// `[]` wr_dis of RD_DIS
17pub const WR_DIS_RD_DIS: EfuseField = EfuseField::new(EfuseBlock::Block0, 0, 1);
18/// `[]` wr_dis of DIS_ICACHE
19pub const WR_DIS_DIS_ICACHE: EfuseField = EfuseField::new(EfuseBlock::Block0, 2, 1);
20/// `[]` wr_dis of DIS_USB_JTAG
21pub const WR_DIS_DIS_USB_JTAG: EfuseField = EfuseField::new(EfuseBlock::Block0, 2, 1);
22/// `[]` wr_dis of DIS_DOWNLOAD_ICACHE
23pub const WR_DIS_DIS_DOWNLOAD_ICACHE: EfuseField = EfuseField::new(EfuseBlock::Block0, 2, 1);
24/// `[WR_DIS.DIS_USB_DEVICE]` wr_dis of DIS_USB_SERIAL_JTAG
25pub const WR_DIS_DIS_USB_SERIAL_JTAG: EfuseField = EfuseField::new(EfuseBlock::Block0, 2, 1);
26/// `[]` wr_dis of DIS_FORCE_DOWNLOAD
27pub const WR_DIS_DIS_FORCE_DOWNLOAD: EfuseField = EfuseField::new(EfuseBlock::Block0, 2, 1);
28/// `[WR_DIS.DIS_CAN]` wr_dis of DIS_TWAI
29pub const WR_DIS_DIS_TWAI: EfuseField = EfuseField::new(EfuseBlock::Block0, 2, 1);
30/// `[]` wr_dis of JTAG_SEL_ENABLE
31pub const WR_DIS_JTAG_SEL_ENABLE: EfuseField = EfuseField::new(EfuseBlock::Block0, 2, 1);
32/// `[]` wr_dis of DIS_PAD_JTAG
33pub const WR_DIS_DIS_PAD_JTAG: EfuseField = EfuseField::new(EfuseBlock::Block0, 2, 1);
34/// `[]` wr_dis of DIS_DOWNLOAD_MANUAL_ENCRYPT
35pub const WR_DIS_DIS_DOWNLOAD_MANUAL_ENCRYPT: EfuseField =
36    EfuseField::new(EfuseBlock::Block0, 2, 1);
37/// `[]` wr_dis of WDT_DELAY_SEL
38pub const WR_DIS_WDT_DELAY_SEL: EfuseField = EfuseField::new(EfuseBlock::Block0, 3, 1);
39/// `[]` wr_dis of SPI_BOOT_CRYPT_CNT
40pub const WR_DIS_SPI_BOOT_CRYPT_CNT: EfuseField = EfuseField::new(EfuseBlock::Block0, 4, 1);
41/// `[]` wr_dis of SECURE_BOOT_KEY_REVOKE0
42pub const WR_DIS_SECURE_BOOT_KEY_REVOKE0: EfuseField = EfuseField::new(EfuseBlock::Block0, 5, 1);
43/// `[]` wr_dis of SECURE_BOOT_KEY_REVOKE1
44pub const WR_DIS_SECURE_BOOT_KEY_REVOKE1: EfuseField = EfuseField::new(EfuseBlock::Block0, 6, 1);
45/// `[]` wr_dis of SECURE_BOOT_KEY_REVOKE2
46pub const WR_DIS_SECURE_BOOT_KEY_REVOKE2: EfuseField = EfuseField::new(EfuseBlock::Block0, 7, 1);
47/// `[WR_DIS.KEY0_PURPOSE]` wr_dis of KEY_PURPOSE_0
48pub const WR_DIS_KEY_PURPOSE_0: EfuseField = EfuseField::new(EfuseBlock::Block0, 8, 1);
49/// `[WR_DIS.KEY1_PURPOSE]` wr_dis of KEY_PURPOSE_1
50pub const WR_DIS_KEY_PURPOSE_1: EfuseField = EfuseField::new(EfuseBlock::Block0, 9, 1);
51/// `[WR_DIS.KEY2_PURPOSE]` wr_dis of KEY_PURPOSE_2
52pub const WR_DIS_KEY_PURPOSE_2: EfuseField = EfuseField::new(EfuseBlock::Block0, 10, 1);
53/// `[WR_DIS.KEY3_PURPOSE]` wr_dis of KEY_PURPOSE_3
54pub const WR_DIS_KEY_PURPOSE_3: EfuseField = EfuseField::new(EfuseBlock::Block0, 11, 1);
55/// `[WR_DIS.KEY4_PURPOSE]` wr_dis of KEY_PURPOSE_4
56pub const WR_DIS_KEY_PURPOSE_4: EfuseField = EfuseField::new(EfuseBlock::Block0, 12, 1);
57/// `[WR_DIS.KEY5_PURPOSE]` wr_dis of KEY_PURPOSE_5
58pub const WR_DIS_KEY_PURPOSE_5: EfuseField = EfuseField::new(EfuseBlock::Block0, 13, 1);
59/// `[]` wr_dis of SECURE_BOOT_EN
60pub const WR_DIS_SECURE_BOOT_EN: EfuseField = EfuseField::new(EfuseBlock::Block0, 15, 1);
61/// `[]` wr_dis of SECURE_BOOT_AGGRESSIVE_REVOKE
62pub const WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE: EfuseField =
63    EfuseField::new(EfuseBlock::Block0, 16, 1);
64/// `[]` wr_dis of FLASH_TPUW
65pub const WR_DIS_FLASH_TPUW: EfuseField = EfuseField::new(EfuseBlock::Block0, 18, 1);
66/// `[]` wr_dis of DIS_DOWNLOAD_MODE
67pub const WR_DIS_DIS_DOWNLOAD_MODE: EfuseField = EfuseField::new(EfuseBlock::Block0, 18, 1);
68/// `[WR_DIS.DIS_LEGACY_SPI_BOOT]` wr_dis of DIS_DIRECT_BOOT
69pub const WR_DIS_DIS_DIRECT_BOOT: EfuseField = EfuseField::new(EfuseBlock::Block0, 18, 1);
70/// `[WR_DIS.UART_PRINT_CHANNEL]` wr_dis of DIS_USB_SERIAL_JTAG_ROM_PRINT
71pub const WR_DIS_DIS_USB_SERIAL_JTAG_ROM_PRINT: EfuseField =
72    EfuseField::new(EfuseBlock::Block0, 18, 1);
73/// `[WR_DIS.DIS_USB_DOWNLOAD_MODE]` wr_dis of DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE
74pub const WR_DIS_DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE: EfuseField =
75    EfuseField::new(EfuseBlock::Block0, 18, 1);
76/// `[]` wr_dis of ENABLE_SECURITY_DOWNLOAD
77pub const WR_DIS_ENABLE_SECURITY_DOWNLOAD: EfuseField = EfuseField::new(EfuseBlock::Block0, 18, 1);
78/// `[]` wr_dis of UART_PRINT_CONTROL
79pub const WR_DIS_UART_PRINT_CONTROL: EfuseField = EfuseField::new(EfuseBlock::Block0, 18, 1);
80/// `[]` wr_dis of FORCE_SEND_RESUME
81pub const WR_DIS_FORCE_SEND_RESUME: EfuseField = EfuseField::new(EfuseBlock::Block0, 18, 1);
82/// `[]` wr_dis of SECURE_VERSION
83pub const WR_DIS_SECURE_VERSION: EfuseField = EfuseField::new(EfuseBlock::Block0, 18, 1);
84/// `[]` wr_dis of ERR_RST_ENABLE
85pub const WR_DIS_ERR_RST_ENABLE: EfuseField = EfuseField::new(EfuseBlock::Block0, 19, 1);
86/// `[]` wr_dis of DISABLE_WAFER_VERSION_MAJOR
87pub const WR_DIS_DISABLE_WAFER_VERSION_MAJOR: EfuseField =
88    EfuseField::new(EfuseBlock::Block0, 19, 1);
89/// `[]` wr_dis of DISABLE_BLK_VERSION_MAJOR
90pub const WR_DIS_DISABLE_BLK_VERSION_MAJOR: EfuseField = EfuseField::new(EfuseBlock::Block0, 19, 1);
91/// `[]` wr_dis of BLOCK1
92pub const WR_DIS_BLK1: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
93/// `[WR_DIS.MAC_FACTORY]` wr_dis of MAC
94pub const WR_DIS_MAC: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
95/// `[]` wr_dis of SPI_PAD_CONFIG_CLK
96pub const WR_DIS_SPI_PAD_CONFIG_CLK: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
97/// `[]` wr_dis of SPI_PAD_CONFIG_Q
98pub const WR_DIS_SPI_PAD_CONFIG_Q: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
99/// `[]` wr_dis of SPI_PAD_CONFIG_D
100pub const WR_DIS_SPI_PAD_CONFIG_D: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
101/// `[]` wr_dis of SPI_PAD_CONFIG_CS
102pub const WR_DIS_SPI_PAD_CONFIG_CS: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
103/// `[]` wr_dis of SPI_PAD_CONFIG_HD
104pub const WR_DIS_SPI_PAD_CONFIG_HD: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
105/// `[]` wr_dis of SPI_PAD_CONFIG_WP
106pub const WR_DIS_SPI_PAD_CONFIG_WP: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
107/// `[]` wr_dis of SPI_PAD_CONFIG_DQS
108pub const WR_DIS_SPI_PAD_CONFIG_DQS: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
109/// `[]` wr_dis of SPI_PAD_CONFIG_D4
110pub const WR_DIS_SPI_PAD_CONFIG_D4: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
111/// `[]` wr_dis of SPI_PAD_CONFIG_D5
112pub const WR_DIS_SPI_PAD_CONFIG_D5: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
113/// `[]` wr_dis of SPI_PAD_CONFIG_D6
114pub const WR_DIS_SPI_PAD_CONFIG_D6: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
115/// `[]` wr_dis of SPI_PAD_CONFIG_D7
116pub const WR_DIS_SPI_PAD_CONFIG_D7: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
117/// `[]` wr_dis of WAFER_VERSION_MINOR_LO
118pub const WR_DIS_WAFER_VERSION_MINOR_LO: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
119/// `[]` wr_dis of PKG_VERSION
120pub const WR_DIS_PKG_VERSION: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
121/// `[]` wr_dis of BLK_VERSION_MINOR
122pub const WR_DIS_BLK_VERSION_MINOR: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
123/// `[]` wr_dis of FLASH_CAP
124pub const WR_DIS_FLASH_CAP: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
125/// `[]` wr_dis of FLASH_TEMP
126pub const WR_DIS_FLASH_TEMP: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
127/// `[]` wr_dis of FLASH_VENDOR
128pub const WR_DIS_FLASH_VENDOR: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
129/// `[]` wr_dis of K_RTC_LDO
130pub const WR_DIS_K_RTC_LDO: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
131/// `[]` wr_dis of K_DIG_LDO
132pub const WR_DIS_K_DIG_LDO: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
133/// `[]` wr_dis of V_RTC_DBIAS20
134pub const WR_DIS_V_RTC_DBIAS20: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
135/// `[]` wr_dis of V_DIG_DBIAS20
136pub const WR_DIS_V_DIG_DBIAS20: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
137/// `[]` wr_dis of DIG_DBIAS_HVT
138pub const WR_DIS_DIG_DBIAS_HVT: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
139/// `[]` wr_dis of THRES_HVT
140pub const WR_DIS_THRES_HVT: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
141/// `[]` wr_dis of WAFER_VERSION_MINOR_HI
142pub const WR_DIS_WAFER_VERSION_MINOR_HI: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
143/// `[]` wr_dis of WAFER_VERSION_MAJOR
144pub const WR_DIS_WAFER_VERSION_MAJOR: EfuseField = EfuseField::new(EfuseBlock::Block0, 20, 1);
145/// `[]` wr_dis of BLOCK2
146pub const WR_DIS_SYS_DATA_PART1: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
147/// `[]` wr_dis of OPTIONAL_UNIQUE_ID
148pub const WR_DIS_OPTIONAL_UNIQUE_ID: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
149/// `[]` wr_dis of BLK_VERSION_MAJOR
150pub const WR_DIS_BLK_VERSION_MAJOR: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
151/// `[]` wr_dis of TEMP_CALIB
152pub const WR_DIS_TEMP_CALIB: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
153/// `[]` wr_dis of OCODE
154pub const WR_DIS_OCODE: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
155/// `[]` wr_dis of ADC1_INIT_CODE_ATTEN0
156pub const WR_DIS_ADC1_INIT_CODE_ATTEN0: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
157/// `[]` wr_dis of ADC1_INIT_CODE_ATTEN1
158pub const WR_DIS_ADC1_INIT_CODE_ATTEN1: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
159/// `[]` wr_dis of ADC1_INIT_CODE_ATTEN2
160pub const WR_DIS_ADC1_INIT_CODE_ATTEN2: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
161/// `[]` wr_dis of ADC1_INIT_CODE_ATTEN3
162pub const WR_DIS_ADC1_INIT_CODE_ATTEN3: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
163/// `[]` wr_dis of ADC1_CAL_VOL_ATTEN0
164pub const WR_DIS_ADC1_CAL_VOL_ATTEN0: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
165/// `[]` wr_dis of ADC1_CAL_VOL_ATTEN1
166pub const WR_DIS_ADC1_CAL_VOL_ATTEN1: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
167/// `[]` wr_dis of ADC1_CAL_VOL_ATTEN2
168pub const WR_DIS_ADC1_CAL_VOL_ATTEN2: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
169/// `[]` wr_dis of ADC1_CAL_VOL_ATTEN3
170pub const WR_DIS_ADC1_CAL_VOL_ATTEN3: EfuseField = EfuseField::new(EfuseBlock::Block0, 21, 1);
171/// `[WR_DIS.USER_DATA]` wr_dis of BLOCK_USR_DATA
172pub const WR_DIS_BLOCK_USR_DATA: EfuseField = EfuseField::new(EfuseBlock::Block0, 22, 1);
173/// `[WR_DIS.MAC_CUSTOM WR_DIS.USER_DATA_MAC_CUSTOM]` wr_dis of CUSTOM_MAC
174pub const WR_DIS_CUSTOM_MAC: EfuseField = EfuseField::new(EfuseBlock::Block0, 22, 1);
175/// `[WR_DIS.KEY0]` wr_dis of BLOCK_KEY0
176pub const WR_DIS_BLOCK_KEY0: EfuseField = EfuseField::new(EfuseBlock::Block0, 23, 1);
177/// `[WR_DIS.KEY1]` wr_dis of BLOCK_KEY1
178pub const WR_DIS_BLOCK_KEY1: EfuseField = EfuseField::new(EfuseBlock::Block0, 24, 1);
179/// `[WR_DIS.KEY2]` wr_dis of BLOCK_KEY2
180pub const WR_DIS_BLOCK_KEY2: EfuseField = EfuseField::new(EfuseBlock::Block0, 25, 1);
181/// `[WR_DIS.KEY3]` wr_dis of BLOCK_KEY3
182pub const WR_DIS_BLOCK_KEY3: EfuseField = EfuseField::new(EfuseBlock::Block0, 26, 1);
183/// `[WR_DIS.KEY4]` wr_dis of BLOCK_KEY4
184pub const WR_DIS_BLOCK_KEY4: EfuseField = EfuseField::new(EfuseBlock::Block0, 27, 1);
185/// `[WR_DIS.KEY5]` wr_dis of BLOCK_KEY5
186pub const WR_DIS_BLOCK_KEY5: EfuseField = EfuseField::new(EfuseBlock::Block0, 28, 1);
187/// `[WR_DIS.SYS_DATA_PART2]` wr_dis of BLOCK_SYS_DATA2
188pub const WR_DIS_BLOCK_SYS_DATA2: EfuseField = EfuseField::new(EfuseBlock::Block0, 29, 1);
189/// `[]` wr_dis of USB_EXCHG_PINS
190pub const WR_DIS_USB_EXCHG_PINS: EfuseField = EfuseField::new(EfuseBlock::Block0, 30, 1);
191/// `[]` wr_dis of VDD_SPI_AS_GPIO
192pub const WR_DIS_VDD_SPI_AS_GPIO: EfuseField = EfuseField::new(EfuseBlock::Block0, 30, 1);
193/// `[]` wr_dis of SOFT_DIS_JTAG
194pub const WR_DIS_SOFT_DIS_JTAG: EfuseField = EfuseField::new(EfuseBlock::Block0, 31, 1);
195/// `[]` Disable reading from BlOCK4-10
196pub const RD_DIS: EfuseField = EfuseField::new(EfuseBlock::Block0, 32, 7);
197/// `[RD_DIS.KEY0]` rd_dis of BLOCK_KEY0
198pub const RD_DIS_BLOCK_KEY0: EfuseField = EfuseField::new(EfuseBlock::Block0, 32, 1);
199/// `[RD_DIS.KEY1]` rd_dis of BLOCK_KEY1
200pub const RD_DIS_BLOCK_KEY1: EfuseField = EfuseField::new(EfuseBlock::Block0, 33, 1);
201/// `[RD_DIS.KEY2]` rd_dis of BLOCK_KEY2
202pub const RD_DIS_BLOCK_KEY2: EfuseField = EfuseField::new(EfuseBlock::Block0, 34, 1);
203/// `[RD_DIS.KEY3]` rd_dis of BLOCK_KEY3
204pub const RD_DIS_BLOCK_KEY3: EfuseField = EfuseField::new(EfuseBlock::Block0, 35, 1);
205/// `[RD_DIS.KEY4]` rd_dis of BLOCK_KEY4
206pub const RD_DIS_BLOCK_KEY4: EfuseField = EfuseField::new(EfuseBlock::Block0, 36, 1);
207/// `[RD_DIS.KEY5]` rd_dis of BLOCK_KEY5
208pub const RD_DIS_BLOCK_KEY5: EfuseField = EfuseField::new(EfuseBlock::Block0, 37, 1);
209/// `[RD_DIS.SYS_DATA_PART2]` rd_dis of BLOCK_SYS_DATA2
210pub const RD_DIS_BLOCK_SYS_DATA2: EfuseField = EfuseField::new(EfuseBlock::Block0, 38, 1);
211/// `[]` Set this bit to disable Icache
212pub const DIS_ICACHE: EfuseField = EfuseField::new(EfuseBlock::Block0, 40, 1);
213/// `[]` Set this bit to disable function of usb switch to jtag in module of usb
214/// device
215pub const DIS_USB_JTAG: EfuseField = EfuseField::new(EfuseBlock::Block0, 41, 1);
216/// `[]` Set this bit to disable Icache in download mode (boot_mode`[3:0]` is 0;
217/// 1; 2; 3; 6; 7)
218pub const DIS_DOWNLOAD_ICACHE: EfuseField = EfuseField::new(EfuseBlock::Block0, 42, 1);
219/// `[DIS_USB_DEVICE]` USB-Serial-JTAG {0: "Enable"; 1: "Disable"}
220pub const DIS_USB_SERIAL_JTAG: EfuseField = EfuseField::new(EfuseBlock::Block0, 43, 1);
221/// `[]` Set this bit to disable the function that forces chip into download
222/// mode
223pub const DIS_FORCE_DOWNLOAD: EfuseField = EfuseField::new(EfuseBlock::Block0, 44, 1);
224/// `[DIS_CAN]` Set this bit to disable TWAI function
225pub const DIS_TWAI: EfuseField = EfuseField::new(EfuseBlock::Block0, 46, 1);
226/// `[]` Set this bit to enable selection between usb_to_jtag and pad_to_jtag
227/// through strapping gpio10 when both reg_dis_usb_jtag and reg_dis_pad_jtag are
228/// equal to 0
229pub const JTAG_SEL_ENABLE: EfuseField = EfuseField::new(EfuseBlock::Block0, 47, 1);
230/// `[]` Set these bits to disable JTAG in the soft way (odd number 1 means
231/// disable ). JTAG can be enabled in HMAC module
232pub const SOFT_DIS_JTAG: EfuseField = EfuseField::new(EfuseBlock::Block0, 48, 3);
233/// `[]` Set this bit to disable JTAG in the hard way. JTAG is disabled
234/// permanently
235pub const DIS_PAD_JTAG: EfuseField = EfuseField::new(EfuseBlock::Block0, 51, 1);
236/// `[]` Set this bit to disable flash encryption when in download boot modes
237pub const DIS_DOWNLOAD_MANUAL_ENCRYPT: EfuseField = EfuseField::new(EfuseBlock::Block0, 52, 1);
238/// `[]` Set this bit to exchange USB D+ and D- pins
239pub const USB_EXCHG_PINS: EfuseField = EfuseField::new(EfuseBlock::Block0, 57, 1);
240/// `[]` Set this bit to vdd spi pin function as gpio
241pub const VDD_SPI_AS_GPIO: EfuseField = EfuseField::new(EfuseBlock::Block0, 58, 1);
242/// `[]` RTC watchdog timeout threshold; in unit of slow clock cycle {0:
243/// "40000"; 1: "80000"; 2: "160000"; 3: "320000"}
244pub const WDT_DELAY_SEL: EfuseField = EfuseField::new(EfuseBlock::Block0, 80, 2);
245/// `[]` Enables flash encryption when 1 or 3 bits are set and disables
246/// otherwise {0: "Disable"; 1: "Enable"; 3: "Disable"; 7: "Enable"}
247pub const SPI_BOOT_CRYPT_CNT: EfuseField = EfuseField::new(EfuseBlock::Block0, 82, 3);
248/// `[]` Revoke 1st secure boot key
249pub const SECURE_BOOT_KEY_REVOKE0: EfuseField = EfuseField::new(EfuseBlock::Block0, 85, 1);
250/// `[]` Revoke 2nd secure boot key
251pub const SECURE_BOOT_KEY_REVOKE1: EfuseField = EfuseField::new(EfuseBlock::Block0, 86, 1);
252/// `[]` Revoke 3rd secure boot key
253pub const SECURE_BOOT_KEY_REVOKE2: EfuseField = EfuseField::new(EfuseBlock::Block0, 87, 1);
254/// `[KEY0_PURPOSE]` Purpose of Key0
255pub const KEY_PURPOSE_0: EfuseField = EfuseField::new(EfuseBlock::Block0, 88, 4);
256/// `[KEY1_PURPOSE]` Purpose of Key1
257pub const KEY_PURPOSE_1: EfuseField = EfuseField::new(EfuseBlock::Block0, 92, 4);
258/// `[KEY2_PURPOSE]` Purpose of Key2
259pub const KEY_PURPOSE_2: EfuseField = EfuseField::new(EfuseBlock::Block0, 96, 4);
260/// `[KEY3_PURPOSE]` Purpose of Key3
261pub const KEY_PURPOSE_3: EfuseField = EfuseField::new(EfuseBlock::Block0, 100, 4);
262/// `[KEY4_PURPOSE]` Purpose of Key4
263pub const KEY_PURPOSE_4: EfuseField = EfuseField::new(EfuseBlock::Block0, 104, 4);
264/// `[KEY5_PURPOSE]` Purpose of Key5
265pub const KEY_PURPOSE_5: EfuseField = EfuseField::new(EfuseBlock::Block0, 108, 4);
266/// `[]` Set this bit to enable secure boot
267pub const SECURE_BOOT_EN: EfuseField = EfuseField::new(EfuseBlock::Block0, 116, 1);
268/// `[]` Set this bit to enable revoking aggressive secure boot
269pub const SECURE_BOOT_AGGRESSIVE_REVOKE: EfuseField = EfuseField::new(EfuseBlock::Block0, 117, 1);
270/// `[]` Configures flash waiting time after power-up; in unit of ms. If the
271/// value is less than 15; the waiting time is the configurable value;
272/// Otherwise; the waiting time is twice the configurable value
273pub const FLASH_TPUW: EfuseField = EfuseField::new(EfuseBlock::Block0, 124, 4);
274/// `[]` Set this bit to disable download mode (boot_mode`[3:0]` = 0; 1; 2; 3;
275/// 6; 7)
276pub const DIS_DOWNLOAD_MODE: EfuseField = EfuseField::new(EfuseBlock::Block0, 128, 1);
277/// `[DIS_LEGACY_SPI_BOOT]` Disable direct boot mode
278pub const DIS_DIRECT_BOOT: EfuseField = EfuseField::new(EfuseBlock::Block0, 129, 1);
279/// `[UART_PRINT_CHANNEL]` USB printing {0: "Enable"; 1: "Disable"}
280pub const DIS_USB_SERIAL_JTAG_ROM_PRINT: EfuseField = EfuseField::new(EfuseBlock::Block0, 130, 1);
281/// `[DIS_USB_DOWNLOAD_MODE]` Disable UART download mode through USB-Serial-JTAG
282pub const DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE: EfuseField =
283    EfuseField::new(EfuseBlock::Block0, 132, 1);
284/// `[]` Set this bit to enable secure UART download mode
285pub const ENABLE_SECURITY_DOWNLOAD: EfuseField = EfuseField::new(EfuseBlock::Block0, 133, 1);
286/// `[]` Set the default UARTboot message output mode {0: "Enable"; 1: "Enable
287/// when GPIO8 is low at reset"; 2: "Enable when GPIO8 is high at reset"; 3:
288/// "Disable"}
289pub const UART_PRINT_CONTROL: EfuseField = EfuseField::new(EfuseBlock::Block0, 134, 2);
290/// `[]` Set this bit to force ROM code to send a resume command during SPI boot
291pub const FORCE_SEND_RESUME: EfuseField = EfuseField::new(EfuseBlock::Block0, 141, 1);
292/// `[]` Secure version (used by ESP-IDF anti-rollback feature)
293pub const SECURE_VERSION: EfuseField = EfuseField::new(EfuseBlock::Block0, 142, 16);
294/// `[]` Use BLOCK0 to check error record registers {0: "without check"; 1:
295/// "with check"}
296pub const ERR_RST_ENABLE: EfuseField = EfuseField::new(EfuseBlock::Block0, 159, 1);
297/// `[]` Disables check of wafer version major
298pub const DISABLE_WAFER_VERSION_MAJOR: EfuseField = EfuseField::new(EfuseBlock::Block0, 160, 1);
299/// `[]` Disables check of blk version major
300pub const DISABLE_BLK_VERSION_MAJOR: EfuseField = EfuseField::new(EfuseBlock::Block0, 161, 1);
301/// `[MAC_FACTORY]` MAC address
302pub const MAC: EfuseField = EfuseField::new(EfuseBlock::Block1, 0, 48);
303/// `[]` SPI PAD CLK
304pub const SPI_PAD_CONFIG_CLK: EfuseField = EfuseField::new(EfuseBlock::Block1, 48, 6);
305/// `[]` SPI PAD Q(D1)
306pub const SPI_PAD_CONFIG_Q: EfuseField = EfuseField::new(EfuseBlock::Block1, 54, 6);
307/// `[]` SPI PAD D(D0)
308pub const SPI_PAD_CONFIG_D: EfuseField = EfuseField::new(EfuseBlock::Block1, 60, 6);
309/// `[]` SPI PAD CS
310pub const SPI_PAD_CONFIG_CS: EfuseField = EfuseField::new(EfuseBlock::Block1, 66, 6);
311/// `[]` SPI PAD HD(D3)
312pub const SPI_PAD_CONFIG_HD: EfuseField = EfuseField::new(EfuseBlock::Block1, 72, 6);
313/// `[]` SPI PAD WP(D2)
314pub const SPI_PAD_CONFIG_WP: EfuseField = EfuseField::new(EfuseBlock::Block1, 78, 6);
315/// `[]` SPI PAD DQS
316pub const SPI_PAD_CONFIG_DQS: EfuseField = EfuseField::new(EfuseBlock::Block1, 84, 6);
317/// `[]` SPI PAD D4
318pub const SPI_PAD_CONFIG_D4: EfuseField = EfuseField::new(EfuseBlock::Block1, 90, 6);
319/// `[]` SPI PAD D5
320pub const SPI_PAD_CONFIG_D5: EfuseField = EfuseField::new(EfuseBlock::Block1, 96, 6);
321/// `[]` SPI PAD D6
322pub const SPI_PAD_CONFIG_D6: EfuseField = EfuseField::new(EfuseBlock::Block1, 102, 6);
323/// `[]` SPI PAD D7
324pub const SPI_PAD_CONFIG_D7: EfuseField = EfuseField::new(EfuseBlock::Block1, 108, 6);
325/// `[]` WAFER_VERSION_MINOR least significant bits
326pub const WAFER_VERSION_MINOR_LO: EfuseField = EfuseField::new(EfuseBlock::Block1, 114, 3);
327/// `[]` Package version
328pub const PKG_VERSION: EfuseField = EfuseField::new(EfuseBlock::Block1, 117, 3);
329/// `[]` BLK_VERSION_MINOR
330pub const BLK_VERSION_MINOR: EfuseField = EfuseField::new(EfuseBlock::Block1, 120, 3);
331/// `[]` Flash capacity {0: "None"; 1: "4M"; 2: "2M"; 3: "1M"; 4: "8M"}
332pub const FLASH_CAP: EfuseField = EfuseField::new(EfuseBlock::Block1, 123, 3);
333/// `[]` Flash temperature {0: "None"; 1: "105C"; 2: "85C"}
334pub const FLASH_TEMP: EfuseField = EfuseField::new(EfuseBlock::Block1, 126, 2);
335/// `[]` Flash vendor {0: "None"; 1: "XMC"; 2: "GD"; 3: "FM"; 4: "TT"; 5:
336/// "ZBIT"}
337pub const FLASH_VENDOR: EfuseField = EfuseField::new(EfuseBlock::Block1, 128, 3);
338/// `[]` BLOCK1 K_RTC_LDO
339pub const K_RTC_LDO: EfuseField = EfuseField::new(EfuseBlock::Block1, 135, 7);
340/// `[]` BLOCK1 K_DIG_LDO
341pub const K_DIG_LDO: EfuseField = EfuseField::new(EfuseBlock::Block1, 142, 7);
342/// `[]` BLOCK1 voltage of rtc dbias20
343pub const V_RTC_DBIAS20: EfuseField = EfuseField::new(EfuseBlock::Block1, 149, 8);
344/// `[]` BLOCK1 voltage of digital dbias20
345pub const V_DIG_DBIAS20: EfuseField = EfuseField::new(EfuseBlock::Block1, 157, 8);
346/// `[]` BLOCK1 digital dbias when hvt
347pub const DIG_DBIAS_HVT: EfuseField = EfuseField::new(EfuseBlock::Block1, 165, 5);
348/// `[]` BLOCK1 pvt threshold when hvt
349pub const THRES_HVT: EfuseField = EfuseField::new(EfuseBlock::Block1, 170, 10);
350/// `[]` WAFER_VERSION_MINOR most significant bit
351pub const WAFER_VERSION_MINOR_HI: EfuseField = EfuseField::new(EfuseBlock::Block1, 183, 1);
352/// `[]` WAFER_VERSION_MAJOR
353pub const WAFER_VERSION_MAJOR: EfuseField = EfuseField::new(EfuseBlock::Block1, 184, 2);
354/// `[]` Optional unique 128-bit ID
355pub const OPTIONAL_UNIQUE_ID: EfuseField = EfuseField::new(EfuseBlock::Block2, 0, 128);
356/// `[]` BLK_VERSION_MAJOR of BLOCK2 {0: "No calibration"; 1: "With
357/// calibration"}
358pub const BLK_VERSION_MAJOR: EfuseField = EfuseField::new(EfuseBlock::Block2, 128, 2);
359/// `[]` Temperature calibration data
360pub const TEMP_CALIB: EfuseField = EfuseField::new(EfuseBlock::Block2, 131, 9);
361/// `[]` ADC OCode
362pub const OCODE: EfuseField = EfuseField::new(EfuseBlock::Block2, 140, 8);
363/// `[]` ADC1 init code at atten0
364pub const ADC1_INIT_CODE_ATTEN0: EfuseField = EfuseField::new(EfuseBlock::Block2, 148, 10);
365/// `[]` ADC1 init code at atten1
366pub const ADC1_INIT_CODE_ATTEN1: EfuseField = EfuseField::new(EfuseBlock::Block2, 158, 10);
367/// `[]` ADC1 init code at atten2
368pub const ADC1_INIT_CODE_ATTEN2: EfuseField = EfuseField::new(EfuseBlock::Block2, 168, 10);
369/// `[]` ADC1 init code at atten3
370pub const ADC1_INIT_CODE_ATTEN3: EfuseField = EfuseField::new(EfuseBlock::Block2, 178, 10);
371/// `[]` ADC1 calibration voltage at atten0
372pub const ADC1_CAL_VOL_ATTEN0: EfuseField = EfuseField::new(EfuseBlock::Block2, 188, 10);
373/// `[]` ADC1 calibration voltage at atten1
374pub const ADC1_CAL_VOL_ATTEN1: EfuseField = EfuseField::new(EfuseBlock::Block2, 198, 10);
375/// `[]` ADC1 calibration voltage at atten2
376pub const ADC1_CAL_VOL_ATTEN2: EfuseField = EfuseField::new(EfuseBlock::Block2, 208, 10);
377/// `[]` ADC1 calibration voltage at atten3
378pub const ADC1_CAL_VOL_ATTEN3: EfuseField = EfuseField::new(EfuseBlock::Block2, 218, 10);
379/// `[BLOCK_USR_DATA]` User data
380pub const USER_DATA: EfuseField = EfuseField::new(EfuseBlock::Block3, 0, 256);
381/// `[MAC_CUSTOM CUSTOM_MAC]` Custom MAC address
382pub const USER_DATA_MAC_CUSTOM: EfuseField = EfuseField::new(EfuseBlock::Block3, 200, 48);
383/// `[BLOCK_KEY0]` Key0 or user data
384pub const KEY0: EfuseField = EfuseField::new(EfuseBlock::Block4, 0, 256);
385/// `[BLOCK_KEY1]` Key1 or user data
386pub const KEY1: EfuseField = EfuseField::new(EfuseBlock::Block5, 0, 256);
387/// `[BLOCK_KEY2]` Key2 or user data
388pub const KEY2: EfuseField = EfuseField::new(EfuseBlock::Block6, 0, 256);
389/// `[BLOCK_KEY3]` Key3 or user data
390pub const KEY3: EfuseField = EfuseField::new(EfuseBlock::Block7, 0, 256);
391/// `[BLOCK_KEY4]` Key4 or user data
392pub const KEY4: EfuseField = EfuseField::new(EfuseBlock::Block8, 0, 256);
393/// `[BLOCK_KEY5]` Key5 or user data
394pub const KEY5: EfuseField = EfuseField::new(EfuseBlock::Block9, 0, 256);
395/// `[BLOCK_SYS_DATA2]` System data part 2 (reserved)
396pub const SYS_DATA_PART2: EfuseField = EfuseField::new(EfuseBlock::Block10, 0, 256);