esp32s3/efuse/
rd_repeat_err3.rs

1#[doc = "Register `RD_REPEAT_ERR3` reader"]
2pub type R = crate::R<RD_REPEAT_ERR3_SPEC>;
3#[doc = "Field `DIS_DOWNLOAD_MODE_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
4pub type DIS_DOWNLOAD_MODE_ERR_R = crate::BitReader;
5#[doc = "Field `DIS_LEGACY_SPI_BOOT_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
6pub type DIS_LEGACY_SPI_BOOT_ERR_R = crate::BitReader;
7#[doc = "Field `UART_PRINT_CHANNEL_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
8pub type UART_PRINT_CHANNEL_ERR_R = crate::BitReader;
9#[doc = "Field `FLASH_ECC_MODE_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
10pub type FLASH_ECC_MODE_ERR_R = crate::BitReader;
11#[doc = "Field `DIS_USB_DOWNLOAD_MODE_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
12pub type DIS_USB_DOWNLOAD_MODE_ERR_R = crate::BitReader;
13#[doc = "Field `ENABLE_SECURITY_DOWNLOAD_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
14pub type ENABLE_SECURITY_DOWNLOAD_ERR_R = crate::BitReader;
15#[doc = "Field `UART_PRINT_CONTROL_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
16pub type UART_PRINT_CONTROL_ERR_R = crate::FieldReader;
17#[doc = "Field `PIN_POWER_SELECTION_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
18pub type PIN_POWER_SELECTION_ERR_R = crate::BitReader;
19#[doc = "Field `FLASH_TYPE_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
20pub type FLASH_TYPE_ERR_R = crate::BitReader;
21#[doc = "Field `FLASH_PAGE_SIZE_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
22pub type FLASH_PAGE_SIZE_ERR_R = crate::FieldReader;
23#[doc = "Field `FLASH_ECC_EN_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
24pub type FLASH_ECC_EN_ERR_R = crate::BitReader;
25#[doc = "Field `FORCE_SEND_RESUME_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
26pub type FORCE_SEND_RESUME_ERR_R = crate::BitReader;
27#[doc = "Field `SECURE_VERSION_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
28pub type SECURE_VERSION_ERR_R = crate::FieldReader<u16>;
29#[doc = "Field `POWERGLITCH_EN_ERR` reader - If any bits in this filed are 1, then it indicates a programming error."]
30pub type POWERGLITCH_EN_ERR_R = crate::BitReader;
31#[doc = "Field `RPT4_RESERVED1_ERR` reader - Reserved."]
32pub type RPT4_RESERVED1_ERR_R = crate::BitReader;
33impl R {
34    #[doc = "Bit 0 - If any bits in this filed are 1, then it indicates a programming error."]
35    #[inline(always)]
36    pub fn dis_download_mode_err(&self) -> DIS_DOWNLOAD_MODE_ERR_R {
37        DIS_DOWNLOAD_MODE_ERR_R::new((self.bits & 1) != 0)
38    }
39    #[doc = "Bit 1 - If any bits in this filed are 1, then it indicates a programming error."]
40    #[inline(always)]
41    pub fn dis_legacy_spi_boot_err(&self) -> DIS_LEGACY_SPI_BOOT_ERR_R {
42        DIS_LEGACY_SPI_BOOT_ERR_R::new(((self.bits >> 1) & 1) != 0)
43    }
44    #[doc = "Bit 2 - If any bits in this filed are 1, then it indicates a programming error."]
45    #[inline(always)]
46    pub fn uart_print_channel_err(&self) -> UART_PRINT_CHANNEL_ERR_R {
47        UART_PRINT_CHANNEL_ERR_R::new(((self.bits >> 2) & 1) != 0)
48    }
49    #[doc = "Bit 3 - If any bits in this filed are 1, then it indicates a programming error."]
50    #[inline(always)]
51    pub fn flash_ecc_mode_err(&self) -> FLASH_ECC_MODE_ERR_R {
52        FLASH_ECC_MODE_ERR_R::new(((self.bits >> 3) & 1) != 0)
53    }
54    #[doc = "Bit 4 - If any bits in this filed are 1, then it indicates a programming error."]
55    #[inline(always)]
56    pub fn dis_usb_download_mode_err(&self) -> DIS_USB_DOWNLOAD_MODE_ERR_R {
57        DIS_USB_DOWNLOAD_MODE_ERR_R::new(((self.bits >> 4) & 1) != 0)
58    }
59    #[doc = "Bit 5 - If any bits in this filed are 1, then it indicates a programming error."]
60    #[inline(always)]
61    pub fn enable_security_download_err(&self) -> ENABLE_SECURITY_DOWNLOAD_ERR_R {
62        ENABLE_SECURITY_DOWNLOAD_ERR_R::new(((self.bits >> 5) & 1) != 0)
63    }
64    #[doc = "Bits 6:7 - If any bits in this filed are 1, then it indicates a programming error."]
65    #[inline(always)]
66    pub fn uart_print_control_err(&self) -> UART_PRINT_CONTROL_ERR_R {
67        UART_PRINT_CONTROL_ERR_R::new(((self.bits >> 6) & 3) as u8)
68    }
69    #[doc = "Bit 8 - If any bits in this filed are 1, then it indicates a programming error."]
70    #[inline(always)]
71    pub fn pin_power_selection_err(&self) -> PIN_POWER_SELECTION_ERR_R {
72        PIN_POWER_SELECTION_ERR_R::new(((self.bits >> 8) & 1) != 0)
73    }
74    #[doc = "Bit 9 - If any bits in this filed are 1, then it indicates a programming error."]
75    #[inline(always)]
76    pub fn flash_type_err(&self) -> FLASH_TYPE_ERR_R {
77        FLASH_TYPE_ERR_R::new(((self.bits >> 9) & 1) != 0)
78    }
79    #[doc = "Bits 10:11 - If any bits in this filed are 1, then it indicates a programming error."]
80    #[inline(always)]
81    pub fn flash_page_size_err(&self) -> FLASH_PAGE_SIZE_ERR_R {
82        FLASH_PAGE_SIZE_ERR_R::new(((self.bits >> 10) & 3) as u8)
83    }
84    #[doc = "Bit 12 - If any bits in this filed are 1, then it indicates a programming error."]
85    #[inline(always)]
86    pub fn flash_ecc_en_err(&self) -> FLASH_ECC_EN_ERR_R {
87        FLASH_ECC_EN_ERR_R::new(((self.bits >> 12) & 1) != 0)
88    }
89    #[doc = "Bit 13 - If any bits in this filed are 1, then it indicates a programming error."]
90    #[inline(always)]
91    pub fn force_send_resume_err(&self) -> FORCE_SEND_RESUME_ERR_R {
92        FORCE_SEND_RESUME_ERR_R::new(((self.bits >> 13) & 1) != 0)
93    }
94    #[doc = "Bits 14:29 - If any bits in this filed are 1, then it indicates a programming error."]
95    #[inline(always)]
96    pub fn secure_version_err(&self) -> SECURE_VERSION_ERR_R {
97        SECURE_VERSION_ERR_R::new(((self.bits >> 14) & 0xffff) as u16)
98    }
99    #[doc = "Bit 30 - If any bits in this filed are 1, then it indicates a programming error."]
100    #[inline(always)]
101    pub fn powerglitch_en_err(&self) -> POWERGLITCH_EN_ERR_R {
102        POWERGLITCH_EN_ERR_R::new(((self.bits >> 30) & 1) != 0)
103    }
104    #[doc = "Bit 31 - Reserved."]
105    #[inline(always)]
106    pub fn rpt4_reserved1_err(&self) -> RPT4_RESERVED1_ERR_R {
107        RPT4_RESERVED1_ERR_R::new(((self.bits >> 31) & 1) != 0)
108    }
109}
110#[cfg(feature = "impl-register-debug")]
111impl core::fmt::Debug for R {
112    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
113        f.debug_struct("RD_REPEAT_ERR3")
114            .field("dis_download_mode_err", &self.dis_download_mode_err())
115            .field("dis_legacy_spi_boot_err", &self.dis_legacy_spi_boot_err())
116            .field("uart_print_channel_err", &self.uart_print_channel_err())
117            .field("flash_ecc_mode_err", &self.flash_ecc_mode_err())
118            .field(
119                "dis_usb_download_mode_err",
120                &self.dis_usb_download_mode_err(),
121            )
122            .field(
123                "enable_security_download_err",
124                &self.enable_security_download_err(),
125            )
126            .field("uart_print_control_err", &self.uart_print_control_err())
127            .field("pin_power_selection_err", &self.pin_power_selection_err())
128            .field("flash_type_err", &self.flash_type_err())
129            .field("flash_page_size_err", &self.flash_page_size_err())
130            .field("flash_ecc_en_err", &self.flash_ecc_en_err())
131            .field("force_send_resume_err", &self.force_send_resume_err())
132            .field("secure_version_err", &self.secure_version_err())
133            .field("powerglitch_en_err", &self.powerglitch_en_err())
134            .field("rpt4_reserved1_err", &self.rpt4_reserved1_err())
135            .finish()
136    }
137}
138#[doc = "Programming error record register 3 of BLOCK0.\n\nYou can [`read`](crate::Reg::read) this register and get [`rd_repeat_err3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
139pub struct RD_REPEAT_ERR3_SPEC;
140impl crate::RegisterSpec for RD_REPEAT_ERR3_SPEC {
141    type Ux = u32;
142}
143#[doc = "`read()` method returns [`rd_repeat_err3::R`](R) reader structure"]
144impl crate::Readable for RD_REPEAT_ERR3_SPEC {}
145#[doc = "`reset()` method sets RD_REPEAT_ERR3 to value 0"]
146impl crate::Resettable for RD_REPEAT_ERR3_SPEC {
147    const RESET_VALUE: u32 = 0;
148}