Skip to main content

esp_hal/efuse/esp32c61/
fields.rs

1//! This file was automatically generated, please do not edit it manually!
2//!
3//! Generated: 2026-03-05 13:04
4//! Version:   d435ade68d90ef96b0522478b2d8ba75
5
6#![allow(clippy::empty_docs)]
7
8use crate::efuse::EfuseField;
9
10/// Disable programming of individual eFuses
11pub const WR_DIS: EfuseField = EfuseField::new(0, 0, 0, 32);
12/// Disable reading from BlOCK4-10
13pub const RD_DIS: EfuseField = EfuseField::new(0, 1, 32, 7);
14/// Represents whether cache is disabled. 1: Disabled 0: Enabled.
15pub const DIS_ICACHE: EfuseField = EfuseField::new(0, 1, 39, 1);
16/// Represents whether the function of usb switch to jtag is disabled or
17/// enabled. 1: disabled 0: enabled
18pub const DIS_USB_JTAG: EfuseField = EfuseField::new(0, 1, 40, 1);
19/// Represents whether USB-Serial-JTAG is disabled or enabled. 1: disabled 0:
20/// enabled
21pub const DIS_USB_SERIAL_JTAG: EfuseField = EfuseField::new(0, 1, 41, 1);
22/// Represents whether the function that forces chip into download mode is
23/// disabled or enabled. 1: disabled 0: enabled
24pub const DIS_FORCE_DOWNLOAD: EfuseField = EfuseField::new(0, 1, 42, 1);
25/// Represents whether SPI0 controller during boot_mode_download is disabled or
26/// enabled. 1: disabled 0: enabled
27pub const SPI_DOWNLOAD_MSPI_DIS: EfuseField = EfuseField::new(0, 1, 43, 1);
28/// Represents whether the selection between usb_to_jtag and pad_to_jtag through
29/// strapping gpio15 when both EFUSE_DIS_PAD_JTAG and EFUSE_DIS_USB_JTAG are
30/// equal to 0 is enabled or disabled. 1: enabled 0: disabled
31pub const JTAG_SEL_ENABLE: EfuseField = EfuseField::new(0, 1, 44, 1);
32/// Represents whether JTAG is disabled in the hard way(permanently). 1:
33/// disabled 0: enabled
34pub const DIS_PAD_JTAG: EfuseField = EfuseField::new(0, 1, 45, 1);
35/// Represents whether flash encrypt function is disabled or enabled(except in
36/// SPI boot mode). 1: disabled 0: enabled
37pub const DIS_DOWNLOAD_MANUAL_ENCRYPT: EfuseField = EfuseField::new(0, 1, 46, 1);
38/// Represents the single-end input threshold vrefh of USB_SERIAL_JTAG PHY; 1.76
39/// V to 2 V with step of 80 mV
40pub const USB_DREFH: EfuseField = EfuseField::new(0, 1, 47, 2);
41/// Represents the single-end input threshold vrefl of USB_SERIAL_JTAG PHY; 1.76
42/// V to 2 V with step of 80 mV
43pub const USB_DREFL: EfuseField = EfuseField::new(0, 1, 49, 2);
44/// Represents whether the D+ and D- pins of USB_SERIAL_JTAG PHY is exchanged.
45/// 1: exchanged 0: not exchanged
46pub const USB_EXCHG_PINS: EfuseField = EfuseField::new(0, 1, 51, 1);
47/// Represents whether vdd spi pin is functioned as gpio. 1: functioned 0: not
48/// functioned
49pub const VDD_SPI_AS_GPIO: EfuseField = EfuseField::new(0, 1, 52, 1);
50/// lp wdt timeout threshold at startup = initial timeout value * (2 ^
51/// (EFUSE_WDT_DELAY_SEL + 1))
52pub const WDT_DELAY_SEL: EfuseField = EfuseField::new(0, 1, 53, 2);
53/// Enables flash encryption when 1 or 3 bits are set and disables otherwise
54pub const SPI_BOOT_CRYPT_CNT: EfuseField = EfuseField::new(0, 1, 55, 3);
55/// Revoke 1st secure boot key
56pub const SECURE_BOOT_KEY_REVOKE0: EfuseField = EfuseField::new(0, 1, 58, 1);
57/// Revoke 2nd secure boot key
58pub const SECURE_BOOT_KEY_REVOKE1: EfuseField = EfuseField::new(0, 1, 59, 1);
59/// Revoke 3rd secure boot key
60pub const SECURE_BOOT_KEY_REVOKE2: EfuseField = EfuseField::new(0, 1, 60, 1);
61/// Reserved; it was created by set_missed_fields_in_regs func
62pub const RESERVE_0_61: EfuseField = EfuseField::new(0, 1, 61, 3);
63/// Represents the purpose of Key0
64pub const KEY_PURPOSE_0: EfuseField = EfuseField::new(0, 2, 64, 4);
65/// Represents the purpose of Key1
66pub const KEY_PURPOSE_1: EfuseField = EfuseField::new(0, 2, 68, 4);
67/// Represents the purpose of Key2
68pub const KEY_PURPOSE_2: EfuseField = EfuseField::new(0, 2, 72, 4);
69/// Represents the purpose of Key3
70pub const KEY_PURPOSE_3: EfuseField = EfuseField::new(0, 2, 76, 4);
71/// Represents the purpose of Key4
72pub const KEY_PURPOSE_4: EfuseField = EfuseField::new(0, 2, 80, 4);
73/// Represents the purpose of Key5
74pub const KEY_PURPOSE_5: EfuseField = EfuseField::new(0, 2, 84, 4);
75/// Represents the spa secure level by configuring the clock random divide mode
76pub const SEC_DPA_LEVEL: EfuseField = EfuseField::new(0, 2, 88, 2);
77/// Represents whether secure boot is enabled or disabled. 1. Enable 0: Disable
78pub const SECURE_BOOT_EN: EfuseField = EfuseField::new(0, 2, 90, 1);
79/// Represents whether revoking aggressive secure boot is enabled or disabled.
80/// 1. Enable 0: Disable
81pub const SECURE_BOOT_AGGRESSIVE_REVOKE: EfuseField = EfuseField::new(0, 2, 91, 1);
82/// Represents the flash waiting time after power-up; in unit of ms. When the
83/// value less than 15; the waiting time is programmed value. Otherwise; the
84/// waiting time is 2 times the programmed value
85pub const FLASH_TPUW: EfuseField = EfuseField::new(0, 2, 92, 4);
86/// Represents whether Download mode is disable or enable. 1. Disable 0: Enable
87pub const DIS_DOWNLOAD_MODE: EfuseField = EfuseField::new(0, 3, 96, 1);
88/// Represents whether direct boot mode is disabled or enabled. 1. Disable 0:
89/// Enable
90pub const DIS_DIRECT_BOOT: EfuseField = EfuseField::new(0, 3, 97, 1);
91/// Represents whether print from USB-Serial-JTAG is disabled or enabled. 1.
92/// Disable 0: Enable
93pub const DIS_USB_SERIAL_JTAG_ROM_PRINT: EfuseField = EfuseField::new(0, 3, 98, 1);
94/// Represents whether the USB-Serial-JTAG download function is disabled or
95/// enabled. 1: Disable 0: Enable
96pub const DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE: EfuseField = EfuseField::new(0, 3, 99, 1);
97/// Represents whether security download is enabled or disabled. 1: Enable 0:
98/// Disable
99pub const ENABLE_SECURITY_DOWNLOAD: EfuseField = EfuseField::new(0, 3, 100, 1);
100/// Represents the types of UART printing
101pub const UART_PRINT_CONTROL: EfuseField = EfuseField::new(0, 3, 101, 2);
102/// Represents whether ROM code is forced to send a resume command during SPI
103/// boot
104pub const FORCE_SEND_RESUME: EfuseField = EfuseField::new(0, 3, 103, 1);
105/// Represents the version used by ESP-IDF anti-rollback feature
106pub const SECURE_VERSION: EfuseField = EfuseField::new(0, 3, 104, 16);
107/// Represents whether FAST_VERIFY_ON_WAKE is disable or enable when Secure Boot
108/// is enable
109pub const SECURE_BOOT_DISABLE_FAST_WAKE: EfuseField = EfuseField::new(0, 3, 120, 1);
110/// Set bits to enable hysteresis function of PAD0~27
111pub const HYS_EN_PAD: EfuseField = EfuseField::new(0, 3, 121, 1);
112/// Represents whether xts-aes anti-dpa attack clock is enabled. 1. Enable. 0:
113/// Disable.
114pub const XTS_DPA_CLK_ENABLE: EfuseField = EfuseField::new(0, 3, 122, 1);
115/// Represents the pseudo round level of xts-aes anti-dpa attack. 3: High. 2:
116/// Moderate 1. Low 0: Disabled
117pub const XTS_DPA_PSEUDO_LEVEL: EfuseField = EfuseField::new(0, 3, 123, 2);
118/// Represents whether the WIFI6 feature is enable or disabled. 1: WIFI6 is
119/// disable; 0: WIFI6 is enabled
120pub const DIS_WIFI6: EfuseField = EfuseField::new(0, 3, 125, 1);
121/// Represents whether to disable P192 curve in ECDSA. 1: Disabled. 0: Not
122/// disabled
123pub const ECDSA_DISABLE_P192: EfuseField = EfuseField::new(0, 3, 126, 1);
124/// Represents whether to force ecc to use const-time calculation mode. 1:
125/// Enable. 0: Disable
126pub const ECC_FORCE_CONST_TIME: EfuseField = EfuseField::new(0, 3, 127, 1);
127/// Represents the anti-rollback secure version of the 2nd stage bootloader used
128/// by the ROM bootloader
129pub const BOOTLOADER_ANTI_ROLLBACK_SECURE_VERSION: EfuseField = EfuseField::new(0, 4, 128, 4);
130/// Represents whether the ani-rollback check for the 2nd stage bootloader is
131/// enabled.1: Enabled0: Disabled
132pub const BOOTLOADER_ANTI_ROLLBACK_EN: EfuseField = EfuseField::new(0, 4, 132, 1);
133/// Represents whether the ani-rollback SECURE_VERSION will be updated from the
134/// ROM bootloader.1: Enable0: Disable
135pub const BOOTLOADER_ANTI_ROLLBACK_UPDATE_IN_ROM: EfuseField = EfuseField::new(0, 4, 133, 1);
136/// Represents the starting flash sector (flash sector size is 0x1000) of the
137/// recovery bootloader used by the ROM bootloader If the primary bootloader
138/// fails. 0 and 0xFFF - this feature is disabled
139pub const RECOVERY_BOOTLOADER_FLASH_SECTOR: EfuseField = EfuseField::new(0, 4, 134, 12);
140/// Reserved; it was created by set_missed_fields_in_regs func
141pub const RESERVE_0_146: EfuseField = EfuseField::new(0, 4, 146, 14);
142/// Reserved
143pub const REPEAT_DATA4: EfuseField = EfuseField::new(0, 5, 160, 24);
144/// Reserved; it was created by set_missed_fields_in_regs func
145pub const RESERVE_0_184: EfuseField = EfuseField::new(0, 5, 184, 8);
146/// MAC address
147pub const MAC0: EfuseField = EfuseField::new(1, 0, 0, 32);
148/// MAC address
149pub const MAC1: EfuseField = EfuseField::new(1, 1, 32, 16);
150/// Reserved; it was created by set_missed_fields_in_regs func
151pub const RESERVE_1_48: EfuseField = EfuseField::new(1, 1, 48, 16);
152/// Minor chip version
153pub const WAFER_VERSION_MINOR: EfuseField = EfuseField::new(1, 2, 64, 4);
154/// Major chip version
155pub const WAFER_VERSION_MAJOR: EfuseField = EfuseField::new(1, 2, 68, 2);
156/// Disables check of wafer version major
157pub const DISABLE_WAFER_VERSION_MAJOR: EfuseField = EfuseField::new(1, 2, 70, 1);
158/// Disables check of blk version major
159pub const DISABLE_BLK_VERSION_MAJOR: EfuseField = EfuseField::new(1, 2, 71, 1);
160/// BLK_VERSION_MINOR of BLOCK2
161pub const BLK_VERSION_MINOR: EfuseField = EfuseField::new(1, 2, 72, 3);
162/// BLK_VERSION_MAJOR of BLOCK2
163pub const BLK_VERSION_MAJOR: EfuseField = EfuseField::new(1, 2, 75, 2);
164/// Flash capacity
165pub const FLASH_CAP: EfuseField = EfuseField::new(1, 2, 77, 3);
166/// Flash vendor
167pub const FLASH_VENDOR: EfuseField = EfuseField::new(1, 2, 80, 3);
168/// PSRAM capacity
169pub const PSRAM_CAP: EfuseField = EfuseField::new(1, 2, 83, 3);
170/// PSRAM vendor
171pub const PSRAM_VENDOR: EfuseField = EfuseField::new(1, 2, 86, 2);
172/// Temperature
173pub const TEMP: EfuseField = EfuseField::new(1, 2, 88, 2);
174/// Package version
175pub const PKG_VERSION: EfuseField = EfuseField::new(1, 2, 90, 3);
176/// Active HP DBIAS of fixed voltage
177pub const ACTIVE_HP_DBIAS: EfuseField = EfuseField::new(1, 2, 93, 4);
178/// Active LP DBIAS of fixed voltage
179pub const ACTIVE_LP_DBIAS: EfuseField = EfuseField::new(1, 3, 97, 4);
180/// LSLP HP DBG of fixed voltage
181pub const LSLP_HP_DBG: EfuseField = EfuseField::new(1, 3, 101, 2);
182/// LSLP HP DBIAS of fixed voltage
183pub const LSLP_HP_DBIAS: EfuseField = EfuseField::new(1, 3, 103, 4);
184/// DSLP LP DBG of fixed voltage
185pub const DSLP_LP_DBG: EfuseField = EfuseField::new(1, 3, 107, 4);
186/// DSLP LP DBIAS of fixed voltage
187pub const DSLP_LP_DBIAS: EfuseField = EfuseField::new(1, 3, 111, 5);
188/// DBIAS gap between LP and HP
189pub const LP_HP_DBIAS_VOL_GAP: EfuseField = EfuseField::new(1, 3, 116, 5);
190/// reserved
191pub const RESERVED_1_121: EfuseField = EfuseField::new(1, 3, 121, 7);
192/// Represents the first 14-bit of zeroth part of system data
193pub const SYS_DATA_PART0_1: EfuseField = EfuseField::new(1, 4, 128, 32);
194/// Represents the second 32-bit of zeroth part of system data
195pub const SYS_DATA_PART0_2: EfuseField = EfuseField::new(1, 5, 160, 32);
196/// Optional unique 128-bit ID
197pub const OPTIONAL_UNIQUE_ID: EfuseField = EfuseField::new(2, 0, 0, 128);
198/// Temperature calibration data
199pub const TEMPERATURE_SENSOR: EfuseField = EfuseField::new(2, 4, 128, 9);
200/// ADC OCode calibration
201pub const OCODE: EfuseField = EfuseField::new(2, 4, 137, 8);
202/// Average initcode of ADC1 atten0
203pub const ADC1_AVE_INIT_CODE_ATTEN0: EfuseField = EfuseField::new(2, 4, 145, 10);
204/// Average initcode of ADC1 atten1
205pub const ADC1_AVE_INIT_CODE_ATTEN1: EfuseField = EfuseField::new(2, 4, 155, 10);
206/// Average initcode of ADC1 atten2
207pub const ADC1_AVE_INIT_CODE_ATTEN2: EfuseField = EfuseField::new(2, 5, 165, 10);
208/// Average initcode of ADC1 atten3
209pub const ADC1_AVE_INIT_CODE_ATTEN3: EfuseField = EfuseField::new(2, 5, 175, 10);
210/// HI_DOUT of ADC1 atten0
211pub const ADC1_HI_DOUT_ATTEN0: EfuseField = EfuseField::new(2, 5, 185, 10);
212/// HI_DOUT of ADC1 atten1
213pub const ADC1_HI_DOUT_ATTEN1: EfuseField = EfuseField::new(2, 6, 195, 10);
214/// HI_DOUT of ADC1 atten2
215pub const ADC1_HI_DOUT_ATTEN2: EfuseField = EfuseField::new(2, 6, 205, 10);
216/// HI_DOUT of ADC1 atten3
217pub const ADC1_HI_DOUT_ATTEN3: EfuseField = EfuseField::new(2, 6, 215, 10);
218/// Gap between ADC1 CH0 and average initcode
219pub const ADC1_CH0_ATTEN0_INITCODE_DIFF: EfuseField = EfuseField::new(2, 7, 225, 4);
220/// Gap between ADC1 CH1 and average initcode
221pub const ADC1_CH1_ATTEN0_INITCODE_DIFF: EfuseField = EfuseField::new(2, 7, 229, 4);
222/// Gap between ADC1 CH2 and average initcode
223pub const ADC1_CH2_ATTEN0_INITCODE_DIFF: EfuseField = EfuseField::new(2, 7, 233, 4);
224/// Gap between ADC1 CH3 and average initcode
225pub const ADC1_CH3_ATTEN0_INITCODE_DIFF: EfuseField = EfuseField::new(2, 7, 237, 4);
226/// reserved
227pub const RESERVED_2_241: EfuseField = EfuseField::new(2, 7, 241, 15);
228/// User data
229pub const BLOCK_USR_DATA: EfuseField = EfuseField::new(3, 0, 0, 192);
230/// reserved
231pub const RESERVED_3_192: EfuseField = EfuseField::new(3, 6, 192, 8);
232/// Custom MAC
233pub const CUSTOM_MAC: EfuseField = EfuseField::new(3, 6, 200, 48);
234/// reserved
235pub const RESERVED_3_248: EfuseField = EfuseField::new(3, 7, 248, 8);
236/// Key0 or user data
237pub const BLOCK_KEY0: EfuseField = EfuseField::new(4, 0, 0, 256);
238/// Key1 or user data
239pub const BLOCK_KEY1: EfuseField = EfuseField::new(5, 0, 0, 256);
240/// Key2 or user data
241pub const BLOCK_KEY2: EfuseField = EfuseField::new(6, 0, 0, 256);
242/// Key3 or user data
243pub const BLOCK_KEY3: EfuseField = EfuseField::new(7, 0, 0, 256);
244/// Key4 or user data
245pub const BLOCK_KEY4: EfuseField = EfuseField::new(8, 0, 0, 256);
246/// Key5 or user data
247pub const BLOCK_KEY5: EfuseField = EfuseField::new(9, 0, 0, 256);
248/// System data part 2 (reserved)
249pub const BLOCK_SYS_DATA2: EfuseField = EfuseField::new(10, 0, 0, 256);