esp_hal/efuse/esp32c6/
fields.rs

1//! This file was automatically generated, please do not edit it manually!
2//!
3//! Generated: 2025-04-22 11:33
4//! Version:   df46b69f0ed3913114ba53d3a0b2b843
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 pad of uart and sdio is swapped or not. 1: swapped. 0:
15/// not swapped
16pub const SWAP_UART_SDIO_EN: EfuseField = EfuseField::new(0, 1, 39, 1);
17/// Represents whether icache is disabled or enabled. 1: disabled. 0: enabled
18pub const DIS_ICACHE: EfuseField = EfuseField::new(0, 1, 40, 1);
19/// Represents whether the function of usb switch to jtag is disabled or
20/// enabled. 1: disabled. 0: enabled
21pub const DIS_USB_JTAG: EfuseField = EfuseField::new(0, 1, 41, 1);
22/// Represents whether icache is disabled or enabled in Download mode. 1:
23/// disabled. 0: enabled
24pub const DIS_DOWNLOAD_ICACHE: EfuseField = EfuseField::new(0, 1, 42, 1);
25/// Represents whether USB-Serial-JTAG is disabled or enabled. 1: disabled. 0:
26/// enabled
27pub const DIS_USB_SERIAL_JTAG: EfuseField = EfuseField::new(0, 1, 43, 1);
28/// Represents whether the function that forces chip into download mode is
29/// disabled or enabled. 1: disabled. 0: enabled
30pub const DIS_FORCE_DOWNLOAD: EfuseField = EfuseField::new(0, 1, 44, 1);
31/// Represents whether SPI0 controller during boot_mode_download is disabled or
32/// enabled. 1: disabled. 0: enabled
33pub const SPI_DOWNLOAD_MSPI_DIS: EfuseField = EfuseField::new(0, 1, 45, 1);
34/// Represents whether TWAI function is disabled or enabled. 1: disabled. 0:
35/// enabled
36pub const DIS_TWAI: EfuseField = EfuseField::new(0, 1, 46, 1);
37/// Represents whether the selection between usb_to_jtag and pad_to_jtag through
38/// strapping gpio15 when both EFUSE_DIS_PAD_JTAG and EFUSE_DIS_USB_JTAG are
39/// equal to 0 is enabled or disabled. 1: enabled. 0: disabled
40pub const JTAG_SEL_ENABLE: EfuseField = EfuseField::new(0, 1, 47, 1);
41/// Represents whether JTAG is disabled in soft way. Odd number: disabled. Even
42/// number: enabled
43pub const SOFT_DIS_JTAG: EfuseField = EfuseField::new(0, 1, 48, 3);
44/// Represents whether JTAG is disabled in the hard way(permanently). 1:
45/// disabled. 0: enabled
46pub const DIS_PAD_JTAG: EfuseField = EfuseField::new(0, 1, 51, 1);
47/// Represents whether flash encrypt function is disabled or enabled(except in
48/// SPI boot mode). 1: disabled. 0: enabled
49pub const DIS_DOWNLOAD_MANUAL_ENCRYPT: EfuseField = EfuseField::new(0, 1, 52, 1);
50/// Represents the single-end input threshold vrefh; 1.76 V to 2 V with step of
51/// 80 mV
52pub const USB_DREFH: EfuseField = EfuseField::new(0, 1, 53, 2);
53/// Represents the single-end input threshold vrefl; 1.76 V to 2 V with step of
54/// 80 mV
55pub const USB_DREFL: EfuseField = EfuseField::new(0, 1, 55, 2);
56/// Represents whether the D+ and D- pins is exchanged. 1: exchanged. 0: not
57/// exchanged
58pub const USB_EXCHG_PINS: EfuseField = EfuseField::new(0, 1, 57, 1);
59/// Represents whether vdd spi pin is functioned as gpio. 1: functioned. 0: not
60/// functioned
61pub const VDD_SPI_AS_GPIO: EfuseField = EfuseField::new(0, 1, 58, 1);
62/// Reserved
63pub const RPT4_RESERVED0_2: EfuseField = EfuseField::new(0, 1, 59, 2);
64/// Reserved
65pub const RPT4_RESERVED0_1: EfuseField = EfuseField::new(0, 1, 61, 1);
66/// Reserved
67pub const RPT4_RESERVED0_0: EfuseField = EfuseField::new(0, 1, 62, 2);
68/// Reserved
69pub const RPT4_RESERVED1_0: EfuseField = EfuseField::new(0, 2, 64, 16);
70/// Represents whether RTC watchdog timeout threshold is selected at startup. 1:
71/// selected. 0: not selected
72pub const WDT_DELAY_SEL: EfuseField = EfuseField::new(0, 2, 80, 2);
73/// Enables flash encryption when 1 or 3 bits are set and disables otherwise
74pub const SPI_BOOT_CRYPT_CNT: EfuseField = EfuseField::new(0, 2, 82, 3);
75/// Revoke 1st secure boot key
76pub const SECURE_BOOT_KEY_REVOKE0: EfuseField = EfuseField::new(0, 2, 85, 1);
77/// Revoke 2nd secure boot key
78pub const SECURE_BOOT_KEY_REVOKE1: EfuseField = EfuseField::new(0, 2, 86, 1);
79/// Revoke 3rd secure boot key
80pub const SECURE_BOOT_KEY_REVOKE2: EfuseField = EfuseField::new(0, 2, 87, 1);
81/// Represents the purpose of Key0
82pub const KEY_PURPOSE_0: EfuseField = EfuseField::new(0, 2, 88, 4);
83/// Represents the purpose of Key1
84pub const KEY_PURPOSE_1: EfuseField = EfuseField::new(0, 2, 92, 4);
85/// Represents the purpose of Key2
86pub const KEY_PURPOSE_2: EfuseField = EfuseField::new(0, 3, 96, 4);
87/// Represents the purpose of Key3
88pub const KEY_PURPOSE_3: EfuseField = EfuseField::new(0, 3, 100, 4);
89/// Represents the purpose of Key4
90pub const KEY_PURPOSE_4: EfuseField = EfuseField::new(0, 3, 104, 4);
91/// Represents the purpose of Key5
92pub const KEY_PURPOSE_5: EfuseField = EfuseField::new(0, 3, 108, 4);
93/// Represents the spa secure level by configuring the clock random divide mode
94pub const SEC_DPA_LEVEL: EfuseField = EfuseField::new(0, 3, 112, 2);
95/// Represents whether anti-dpa attack is enabled. 1:enabled. 0: disabled
96pub const CRYPT_DPA_ENABLE: EfuseField = EfuseField::new(0, 3, 114, 1);
97/// Reserved
98pub const RPT4_RESERVED2_1: EfuseField = EfuseField::new(0, 3, 115, 1);
99/// Represents whether secure boot is enabled or disabled. 1: enabled. 0:
100/// disabled
101pub const SECURE_BOOT_EN: EfuseField = EfuseField::new(0, 3, 116, 1);
102/// Represents whether revoking aggressive secure boot is enabled or disabled.
103/// 1: enabled. 0: disabled
104pub const SECURE_BOOT_AGGRESSIVE_REVOKE: EfuseField = EfuseField::new(0, 3, 117, 1);
105/// Reserved
106pub const RPT4_RESERVED2_0: EfuseField = EfuseField::new(0, 3, 118, 6);
107/// Represents the flash waiting time after power-up; in unit of ms. When the
108/// value less than 15; the waiting time is the programmed value. Otherwise; the
109/// waiting time is 2 times the programmed value
110pub const FLASH_TPUW: EfuseField = EfuseField::new(0, 3, 124, 4);
111/// Represents whether Download mode is disabled or enabled. 1: disabled. 0:
112/// enabled
113pub const DIS_DOWNLOAD_MODE: EfuseField = EfuseField::new(0, 4, 128, 1);
114/// Represents whether direct boot mode is disabled or enabled. 1: disabled. 0:
115/// enabled
116pub const DIS_DIRECT_BOOT: EfuseField = EfuseField::new(0, 4, 129, 1);
117/// Represents whether print from USB-Serial-JTAG is disabled or enabled. 1:
118/// disabled. 0: enabled
119pub const DIS_USB_SERIAL_JTAG_ROM_PRINT: EfuseField = EfuseField::new(0, 4, 130, 1);
120/// Reserved
121pub const RPT4_RESERVED3_5: EfuseField = EfuseField::new(0, 4, 131, 1);
122/// Represents whether the USB-Serial-JTAG download function is disabled or
123/// enabled. 1: disabled. 0: enabled
124pub const DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE: EfuseField = EfuseField::new(0, 4, 132, 1);
125/// Represents whether security download is enabled or disabled. 1: enabled. 0:
126/// disabled
127pub const ENABLE_SECURITY_DOWNLOAD: EfuseField = EfuseField::new(0, 4, 133, 1);
128/// Set the default UARTboot message output mode
129pub const UART_PRINT_CONTROL: EfuseField = EfuseField::new(0, 4, 134, 2);
130/// Reserved
131pub const RPT4_RESERVED3_4: EfuseField = EfuseField::new(0, 4, 136, 1);
132/// Reserved
133pub const RPT4_RESERVED3_3: EfuseField = EfuseField::new(0, 4, 137, 1);
134/// Reserved
135pub const RPT4_RESERVED3_2: EfuseField = EfuseField::new(0, 4, 138, 2);
136/// Reserved
137pub const RPT4_RESERVED3_1: EfuseField = EfuseField::new(0, 4, 140, 1);
138/// Represents whether ROM code is forced to send a resume command during SPI
139/// boot. 1: forced. 0:not forced
140pub const FORCE_SEND_RESUME: EfuseField = EfuseField::new(0, 4, 141, 1);
141/// Represents the version used by ESP-IDF anti-rollback feature
142pub const SECURE_VERSION: EfuseField = EfuseField::new(0, 4, 142, 16);
143/// Represents whether FAST VERIFY ON WAKE is disabled or enabled when Secure
144/// Boot is enabled. 1: disabled. 0: enabled
145pub const SECURE_BOOT_DISABLE_FAST_WAKE: EfuseField = EfuseField::new(0, 4, 158, 1);
146/// Reserved
147pub const RPT4_RESERVED3_0: EfuseField = EfuseField::new(0, 4, 159, 1);
148/// Disables check of wafer version major
149pub const DISABLE_WAFER_VERSION_MAJOR: EfuseField = EfuseField::new(0, 5, 160, 1);
150/// Disables check of blk version major
151pub const DISABLE_BLK_VERSION_MAJOR: EfuseField = EfuseField::new(0, 5, 161, 1);
152/// reserved
153pub const RESERVED_0_162: EfuseField = EfuseField::new(0, 5, 162, 22);
154/// Reserved
155pub const RPT4_RESERVED4_0: EfuseField = EfuseField::new(0, 5, 184, 8);
156/// MAC address
157pub const MAC0: EfuseField = EfuseField::new(1, 0, 0, 32);
158/// MAC address
159pub const MAC1: EfuseField = EfuseField::new(1, 1, 32, 16);
160/// Stores the extended bits of MAC address
161pub const MAC_EXT: EfuseField = EfuseField::new(1, 1, 48, 16);
162/// Stores the active hp dbias
163pub const ACTIVE_HP_DBIAS: EfuseField = EfuseField::new(1, 2, 64, 5);
164/// Stores the active lp dbias
165pub const ACTIVE_LP_DBIAS: EfuseField = EfuseField::new(1, 2, 69, 5);
166/// Stores the lslp hp dbg
167pub const LSLP_HP_DBG: EfuseField = EfuseField::new(1, 2, 74, 2);
168/// Stores the lslp hp dbias
169pub const LSLP_HP_DBIAS: EfuseField = EfuseField::new(1, 2, 76, 4);
170/// Stores the dslp lp dbg
171pub const DSLP_LP_DBG: EfuseField = EfuseField::new(1, 2, 80, 3);
172/// Stores the dslp lp dbias
173pub const DSLP_LP_DBIAS: EfuseField = EfuseField::new(1, 2, 83, 4);
174/// Stores the hp and lp dbias vol gap
175pub const DBIAS_VOL_GAP: EfuseField = EfuseField::new(1, 2, 87, 5);
176/// Stores the first part of SPI_PAD_CONF
177pub const SPI_PAD_CONF_1: EfuseField = EfuseField::new(1, 2, 92, 4);
178/// Stores the second part of SPI_PAD_CONF
179pub const SPI_PAD_CONF_2: EfuseField = EfuseField::new(1, 3, 96, 18);
180///
181pub const WAFER_VERSION_MINOR: EfuseField = EfuseField::new(1, 3, 114, 4);
182///
183pub const WAFER_VERSION_MAJOR: EfuseField = EfuseField::new(1, 3, 118, 2);
184/// Package version
185pub const PKG_VERSION: EfuseField = EfuseField::new(1, 3, 120, 3);
186/// BLK_VERSION_MINOR of BLOCK2
187pub const BLK_VERSION_MINOR: EfuseField = EfuseField::new(1, 3, 123, 3);
188/// BLK_VERSION_MAJOR of BLOCK2
189pub const BLK_VERSION_MAJOR: EfuseField = EfuseField::new(1, 3, 126, 2);
190///
191pub const FLASH_CAP: EfuseField = EfuseField::new(1, 4, 128, 3);
192///
193pub const FLASH_TEMP: EfuseField = EfuseField::new(1, 4, 131, 2);
194///
195pub const FLASH_VENDOR: EfuseField = EfuseField::new(1, 4, 133, 3);
196/// reserved
197pub const RESERVED_1_136: EfuseField = EfuseField::new(1, 4, 136, 24);
198/// Stores the second 32 bits of the zeroth part of system data
199pub const SYS_DATA_PART0_2: EfuseField = EfuseField::new(1, 5, 160, 32);
200/// Optional unique 128-bit ID
201pub const OPTIONAL_UNIQUE_ID: EfuseField = EfuseField::new(2, 0, 0, 128);
202/// Temperature calibration data
203pub const TEMP_CALIB: EfuseField = EfuseField::new(2, 4, 128, 9);
204/// ADC OCode
205pub const OCODE: EfuseField = EfuseField::new(2, 4, 137, 8);
206/// ADC1 init code at atten0
207pub const ADC1_INIT_CODE_ATTEN0: EfuseField = EfuseField::new(2, 4, 145, 10);
208/// ADC1 init code at atten1
209pub const ADC1_INIT_CODE_ATTEN1: EfuseField = EfuseField::new(2, 4, 155, 10);
210/// ADC1 init code at atten2
211pub const ADC1_INIT_CODE_ATTEN2: EfuseField = EfuseField::new(2, 5, 165, 10);
212/// ADC1 init code at atten3
213pub const ADC1_INIT_CODE_ATTEN3: EfuseField = EfuseField::new(2, 5, 175, 10);
214/// ADC1 calibration voltage at atten0
215pub const ADC1_CAL_VOL_ATTEN0: EfuseField = EfuseField::new(2, 5, 185, 10);
216/// ADC1 calibration voltage at atten1
217pub const ADC1_CAL_VOL_ATTEN1: EfuseField = EfuseField::new(2, 6, 195, 10);
218/// ADC1 calibration voltage at atten2
219pub const ADC1_CAL_VOL_ATTEN2: EfuseField = EfuseField::new(2, 6, 205, 10);
220/// ADC1 calibration voltage at atten3
221pub const ADC1_CAL_VOL_ATTEN3: EfuseField = EfuseField::new(2, 6, 215, 10);
222/// ADC1 init code at atten0 ch0
223pub const ADC1_INIT_CODE_ATTEN0_CH0: EfuseField = EfuseField::new(2, 7, 225, 4);
224/// ADC1 init code at atten0 ch1
225pub const ADC1_INIT_CODE_ATTEN0_CH1: EfuseField = EfuseField::new(2, 7, 229, 4);
226/// ADC1 init code at atten0 ch2
227pub const ADC1_INIT_CODE_ATTEN0_CH2: EfuseField = EfuseField::new(2, 7, 233, 4);
228/// ADC1 init code at atten0 ch3
229pub const ADC1_INIT_CODE_ATTEN0_CH3: EfuseField = EfuseField::new(2, 7, 237, 4);
230/// ADC1 init code at atten0 ch4
231pub const ADC1_INIT_CODE_ATTEN0_CH4: EfuseField = EfuseField::new(2, 7, 241, 4);
232/// ADC1 init code at atten0 ch5
233pub const ADC1_INIT_CODE_ATTEN0_CH5: EfuseField = EfuseField::new(2, 7, 245, 4);
234/// ADC1 init code at atten0 ch6
235pub const ADC1_INIT_CODE_ATTEN0_CH6: EfuseField = EfuseField::new(2, 7, 249, 4);
236/// reserved
237pub const RESERVED_2_253: EfuseField = EfuseField::new(2, 7, 253, 3);
238/// User data
239pub const BLOCK_USR_DATA: EfuseField = EfuseField::new(3, 0, 0, 192);
240/// reserved
241pub const RESERVED_3_192: EfuseField = EfuseField::new(3, 6, 192, 8);
242/// Custom MAC
243pub const CUSTOM_MAC: EfuseField = EfuseField::new(3, 6, 200, 48);
244/// reserved
245pub const RESERVED_3_248: EfuseField = EfuseField::new(3, 7, 248, 8);
246/// Key0 or user data
247pub const BLOCK_KEY0: EfuseField = EfuseField::new(4, 0, 0, 256);
248/// Key1 or user data
249pub const BLOCK_KEY1: EfuseField = EfuseField::new(5, 0, 0, 256);
250/// Key2 or user data
251pub const BLOCK_KEY2: EfuseField = EfuseField::new(6, 0, 0, 256);
252/// Key3 or user data
253pub const BLOCK_KEY3: EfuseField = EfuseField::new(7, 0, 0, 256);
254/// Key4 or user data
255pub const BLOCK_KEY4: EfuseField = EfuseField::new(8, 0, 0, 256);
256/// Key5 or user data
257pub const BLOCK_KEY5: EfuseField = EfuseField::new(9, 0, 0, 256);
258/// System data part 2 (reserved)
259pub const BLOCK_SYS_DATA2: EfuseField = EfuseField::new(10, 0, 0, 256);