esp32c3/efuse/
rd_repeat_err0.rs1#[doc = "Register `RD_REPEAT_ERR0` reader"]
2pub type R = crate::R<RD_REPEAT_ERR0_SPEC>;
3#[doc = "Field `RD_DIS_ERR` reader - If any bit in RD_DIS is 1, then it indicates a programming error."]
4pub type RD_DIS_ERR_R = crate::FieldReader;
5#[doc = "Field `DIS_RTC_RAM_BOOT_ERR` reader - If DIS_RTC_RAM_BOOT is 1, then it indicates a programming error."]
6pub type DIS_RTC_RAM_BOOT_ERR_R = crate::BitReader;
7#[doc = "Field `DIS_ICACHE_ERR` reader - If DIS_ICACHE is 1, then it indicates a programming error."]
8pub type DIS_ICACHE_ERR_R = crate::BitReader;
9#[doc = "Field `DIS_USB_JTAG_ERR` reader - If DIS_USB_JTAG is 1, then it indicates a programming error."]
10pub type DIS_USB_JTAG_ERR_R = crate::BitReader;
11#[doc = "Field `DIS_DOWNLOAD_ICACHE_ERR` reader - If DIS_DOWNLOAD_ICACHE is 1, then it indicates a programming error."]
12pub type DIS_DOWNLOAD_ICACHE_ERR_R = crate::BitReader;
13#[doc = "Field `DIS_USB_DEVICE_ERR` reader - If DIS_USB_DEVICE is 1, then it indicates a programming error."]
14pub type DIS_USB_DEVICE_ERR_R = crate::BitReader;
15#[doc = "Field `DIS_FORCE_DOWNLOAD_ERR` reader - If DIS_FORCE_DOWNLOAD is 1, then it indicates a programming error."]
16pub type DIS_FORCE_DOWNLOAD_ERR_R = crate::BitReader;
17#[doc = "Field `RPT4_RESERVED6_ERR` reader - Reserved."]
18pub type RPT4_RESERVED6_ERR_R = crate::BitReader;
19#[doc = "Field `DIS_CAN_ERR` reader - If DIS_CAN is 1, then it indicates a programming error."]
20pub type DIS_CAN_ERR_R = crate::BitReader;
21#[doc = "Field `JTAG_SEL_ENABLE_ERR` reader - If JTAG_SEL_ENABLE is 1, then it indicates a programming error."]
22pub type JTAG_SEL_ENABLE_ERR_R = crate::BitReader;
23#[doc = "Field `SOFT_DIS_JTAG_ERR` reader - If SOFT_DIS_JTAG is 1, then it indicates a programming error."]
24pub type SOFT_DIS_JTAG_ERR_R = crate::FieldReader;
25#[doc = "Field `DIS_PAD_JTAG_ERR` reader - If DIS_PAD_JTAG is 1, then it indicates a programming error."]
26pub type DIS_PAD_JTAG_ERR_R = crate::BitReader;
27#[doc = "Field `DIS_DOWNLOAD_MANUAL_ENCRYPT_ERR` reader - If DIS_DOWNLOAD_MANUAL_ENCRYPT is 1, then it indicates a programming error."]
28pub type DIS_DOWNLOAD_MANUAL_ENCRYPT_ERR_R = crate::BitReader;
29#[doc = "Field `USB_DREFH_ERR` reader - If any bit in USB_DREFH is 1, then it indicates a programming error."]
30pub type USB_DREFH_ERR_R = crate::FieldReader;
31#[doc = "Field `USB_DREFL_ERR` reader - If any bit in USB_DREFL is 1, then it indicates a programming error."]
32pub type USB_DREFL_ERR_R = crate::FieldReader;
33#[doc = "Field `USB_EXCHG_PINS_ERR` reader - If USB_EXCHG_PINS is 1, then it indicates a programming error."]
34pub type USB_EXCHG_PINS_ERR_R = crate::BitReader;
35#[doc = "Field `VDD_SPI_AS_GPIO_ERR` reader - If VDD_SPI_AS_GPIO is 1, then it indicates a programming error."]
36pub type VDD_SPI_AS_GPIO_ERR_R = crate::BitReader;
37#[doc = "Field `BTLC_GPIO_ENABLE_ERR` reader - If any bit in BTLC_GPIO_ENABLE is 1, then it indicates a programming error."]
38pub type BTLC_GPIO_ENABLE_ERR_R = crate::FieldReader;
39#[doc = "Field `POWERGLITCH_EN_ERR` reader - If POWERGLITCH_EN is 1, then it indicates a programming error."]
40pub type POWERGLITCH_EN_ERR_R = crate::BitReader;
41#[doc = "Field `POWER_GLITCH_DSENSE_ERR` reader - If any bit in POWER_GLITCH_DSENSE is 1, then it indicates a programming error."]
42pub type POWER_GLITCH_DSENSE_ERR_R = crate::FieldReader;
43impl R {
44    #[doc = "Bits 0:6 - If any bit in RD_DIS is 1, then it indicates a programming error."]
45    #[inline(always)]
46    pub fn rd_dis_err(&self) -> RD_DIS_ERR_R {
47        RD_DIS_ERR_R::new((self.bits & 0x7f) as u8)
48    }
49    #[doc = "Bit 7 - If DIS_RTC_RAM_BOOT is 1, then it indicates a programming error."]
50    #[inline(always)]
51    pub fn dis_rtc_ram_boot_err(&self) -> DIS_RTC_RAM_BOOT_ERR_R {
52        DIS_RTC_RAM_BOOT_ERR_R::new(((self.bits >> 7) & 1) != 0)
53    }
54    #[doc = "Bit 8 - If DIS_ICACHE is 1, then it indicates a programming error."]
55    #[inline(always)]
56    pub fn dis_icache_err(&self) -> DIS_ICACHE_ERR_R {
57        DIS_ICACHE_ERR_R::new(((self.bits >> 8) & 1) != 0)
58    }
59    #[doc = "Bit 9 - If DIS_USB_JTAG is 1, then it indicates a programming error."]
60    #[inline(always)]
61    pub fn dis_usb_jtag_err(&self) -> DIS_USB_JTAG_ERR_R {
62        DIS_USB_JTAG_ERR_R::new(((self.bits >> 9) & 1) != 0)
63    }
64    #[doc = "Bit 10 - If DIS_DOWNLOAD_ICACHE is 1, then it indicates a programming error."]
65    #[inline(always)]
66    pub fn dis_download_icache_err(&self) -> DIS_DOWNLOAD_ICACHE_ERR_R {
67        DIS_DOWNLOAD_ICACHE_ERR_R::new(((self.bits >> 10) & 1) != 0)
68    }
69    #[doc = "Bit 11 - If DIS_USB_DEVICE is 1, then it indicates a programming error."]
70    #[inline(always)]
71    pub fn dis_usb_device_err(&self) -> DIS_USB_DEVICE_ERR_R {
72        DIS_USB_DEVICE_ERR_R::new(((self.bits >> 11) & 1) != 0)
73    }
74    #[doc = "Bit 12 - If DIS_FORCE_DOWNLOAD is 1, then it indicates a programming error."]
75    #[inline(always)]
76    pub fn dis_force_download_err(&self) -> DIS_FORCE_DOWNLOAD_ERR_R {
77        DIS_FORCE_DOWNLOAD_ERR_R::new(((self.bits >> 12) & 1) != 0)
78    }
79    #[doc = "Bit 13 - Reserved."]
80    #[inline(always)]
81    pub fn rpt4_reserved6_err(&self) -> RPT4_RESERVED6_ERR_R {
82        RPT4_RESERVED6_ERR_R::new(((self.bits >> 13) & 1) != 0)
83    }
84    #[doc = "Bit 14 - If DIS_CAN is 1, then it indicates a programming error."]
85    #[inline(always)]
86    pub fn dis_can_err(&self) -> DIS_CAN_ERR_R {
87        DIS_CAN_ERR_R::new(((self.bits >> 14) & 1) != 0)
88    }
89    #[doc = "Bit 15 - If JTAG_SEL_ENABLE is 1, then it indicates a programming error."]
90    #[inline(always)]
91    pub fn jtag_sel_enable_err(&self) -> JTAG_SEL_ENABLE_ERR_R {
92        JTAG_SEL_ENABLE_ERR_R::new(((self.bits >> 15) & 1) != 0)
93    }
94    #[doc = "Bits 16:18 - If SOFT_DIS_JTAG is 1, then it indicates a programming error."]
95    #[inline(always)]
96    pub fn soft_dis_jtag_err(&self) -> SOFT_DIS_JTAG_ERR_R {
97        SOFT_DIS_JTAG_ERR_R::new(((self.bits >> 16) & 7) as u8)
98    }
99    #[doc = "Bit 19 - If DIS_PAD_JTAG is 1, then it indicates a programming error."]
100    #[inline(always)]
101    pub fn dis_pad_jtag_err(&self) -> DIS_PAD_JTAG_ERR_R {
102        DIS_PAD_JTAG_ERR_R::new(((self.bits >> 19) & 1) != 0)
103    }
104    #[doc = "Bit 20 - If DIS_DOWNLOAD_MANUAL_ENCRYPT is 1, then it indicates a programming error."]
105    #[inline(always)]
106    pub fn dis_download_manual_encrypt_err(&self) -> DIS_DOWNLOAD_MANUAL_ENCRYPT_ERR_R {
107        DIS_DOWNLOAD_MANUAL_ENCRYPT_ERR_R::new(((self.bits >> 20) & 1) != 0)
108    }
109    #[doc = "Bits 21:22 - If any bit in USB_DREFH is 1, then it indicates a programming error."]
110    #[inline(always)]
111    pub fn usb_drefh_err(&self) -> USB_DREFH_ERR_R {
112        USB_DREFH_ERR_R::new(((self.bits >> 21) & 3) as u8)
113    }
114    #[doc = "Bits 23:24 - If any bit in USB_DREFL is 1, then it indicates a programming error."]
115    #[inline(always)]
116    pub fn usb_drefl_err(&self) -> USB_DREFL_ERR_R {
117        USB_DREFL_ERR_R::new(((self.bits >> 23) & 3) as u8)
118    }
119    #[doc = "Bit 25 - If USB_EXCHG_PINS is 1, then it indicates a programming error."]
120    #[inline(always)]
121    pub fn usb_exchg_pins_err(&self) -> USB_EXCHG_PINS_ERR_R {
122        USB_EXCHG_PINS_ERR_R::new(((self.bits >> 25) & 1) != 0)
123    }
124    #[doc = "Bit 26 - If VDD_SPI_AS_GPIO is 1, then it indicates a programming error."]
125    #[inline(always)]
126    pub fn vdd_spi_as_gpio_err(&self) -> VDD_SPI_AS_GPIO_ERR_R {
127        VDD_SPI_AS_GPIO_ERR_R::new(((self.bits >> 26) & 1) != 0)
128    }
129    #[doc = "Bits 27:28 - If any bit in BTLC_GPIO_ENABLE is 1, then it indicates a programming error."]
130    #[inline(always)]
131    pub fn btlc_gpio_enable_err(&self) -> BTLC_GPIO_ENABLE_ERR_R {
132        BTLC_GPIO_ENABLE_ERR_R::new(((self.bits >> 27) & 3) as u8)
133    }
134    #[doc = "Bit 29 - If POWERGLITCH_EN is 1, then it indicates a programming error."]
135    #[inline(always)]
136    pub fn powerglitch_en_err(&self) -> POWERGLITCH_EN_ERR_R {
137        POWERGLITCH_EN_ERR_R::new(((self.bits >> 29) & 1) != 0)
138    }
139    #[doc = "Bits 30:31 - If any bit in POWER_GLITCH_DSENSE is 1, then it indicates a programming error."]
140    #[inline(always)]
141    pub fn power_glitch_dsense_err(&self) -> POWER_GLITCH_DSENSE_ERR_R {
142        POWER_GLITCH_DSENSE_ERR_R::new(((self.bits >> 30) & 3) as u8)
143    }
144}
145#[cfg(feature = "impl-register-debug")]
146impl core::fmt::Debug for R {
147    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
148        f.debug_struct("RD_REPEAT_ERR0")
149            .field("rd_dis_err", &self.rd_dis_err())
150            .field("dis_rtc_ram_boot_err", &self.dis_rtc_ram_boot_err())
151            .field("dis_icache_err", &self.dis_icache_err())
152            .field("dis_usb_jtag_err", &self.dis_usb_jtag_err())
153            .field("dis_download_icache_err", &self.dis_download_icache_err())
154            .field("dis_usb_device_err", &self.dis_usb_device_err())
155            .field("dis_force_download_err", &self.dis_force_download_err())
156            .field("rpt4_reserved6_err", &self.rpt4_reserved6_err())
157            .field("dis_can_err", &self.dis_can_err())
158            .field("jtag_sel_enable_err", &self.jtag_sel_enable_err())
159            .field("soft_dis_jtag_err", &self.soft_dis_jtag_err())
160            .field("dis_pad_jtag_err", &self.dis_pad_jtag_err())
161            .field(
162                "dis_download_manual_encrypt_err",
163                &self.dis_download_manual_encrypt_err(),
164            )
165            .field("usb_drefh_err", &self.usb_drefh_err())
166            .field("usb_drefl_err", &self.usb_drefl_err())
167            .field("usb_exchg_pins_err", &self.usb_exchg_pins_err())
168            .field("vdd_spi_as_gpio_err", &self.vdd_spi_as_gpio_err())
169            .field("btlc_gpio_enable_err", &self.btlc_gpio_enable_err())
170            .field("powerglitch_en_err", &self.powerglitch_en_err())
171            .field("power_glitch_dsense_err", &self.power_glitch_dsense_err())
172            .finish()
173    }
174}
175#[doc = "Programming error record register 0 of BLOCK0.\n\nYou can [`read`](crate::Reg::read) this register and get [`rd_repeat_err0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
176pub struct RD_REPEAT_ERR0_SPEC;
177impl crate::RegisterSpec for RD_REPEAT_ERR0_SPEC {
178    type Ux = u32;
179}
180#[doc = "`read()` method returns [`rd_repeat_err0::R`](R) reader structure"]
181impl crate::Readable for RD_REPEAT_ERR0_SPEC {}
182#[doc = "`reset()` method sets RD_REPEAT_ERR0 to value 0"]
183impl crate::Resettable for RD_REPEAT_ERR0_SPEC {}