esp32c3/efuse/
rd_repeat_err3.rs1#[doc = "Register `RD_REPEAT_ERR3` reader"]
2pub type R = crate::R<RD_REPEAT_ERR3_SPEC>;
3#[doc = "Field `DIS_DOWNLOAD_MODE_ERR` reader - If DIS_DOWNLOAD_MODE is 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 DIS_LEGACY_SPI_BOOT is 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 UART_PRINT_CHANNEL is 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 FLASH_ECC_MODE is 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 DIS_USB_DOWNLOAD_MODE is 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 ENABLE_SECURITY_DOWNLOAD is 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 bit in UART_PRINT_CONTROL is 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 PIN_POWER_SELECTION is 1, then it indicates a programming error."]
18pub type PIN_POWER_SELECTION_ERR_R = crate::BitReader;
19#[doc = "Field `FLASH_TYPE_ERR` reader - If FLASH_TYPE is 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 FLASH_PAGE_SIZE is 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 FLASH_ECC_EN_ERR is 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 FORCE_SEND_RESUME is 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 bit in SECURE_VERSION is 1, then it indicates a programming error."]
28pub type SECURE_VERSION_ERR_R = crate::FieldReader<u16>;
29#[doc = "Field `RPT4_RESERVED1_ERR` reader - Reserved."]
30pub type RPT4_RESERVED1_ERR_R = crate::FieldReader;
31impl R {
32 #[doc = "Bit 0 - If DIS_DOWNLOAD_MODE is 1, then it indicates a programming error."]
33 #[inline(always)]
34 pub fn dis_download_mode_err(&self) -> DIS_DOWNLOAD_MODE_ERR_R {
35 DIS_DOWNLOAD_MODE_ERR_R::new((self.bits & 1) != 0)
36 }
37 #[doc = "Bit 1 - If DIS_LEGACY_SPI_BOOT is 1, then it indicates a programming error."]
38 #[inline(always)]
39 pub fn dis_legacy_spi_boot_err(&self) -> DIS_LEGACY_SPI_BOOT_ERR_R {
40 DIS_LEGACY_SPI_BOOT_ERR_R::new(((self.bits >> 1) & 1) != 0)
41 }
42 #[doc = "Bit 2 - If UART_PRINT_CHANNEL is 1, then it indicates a programming error."]
43 #[inline(always)]
44 pub fn uart_print_channel_err(&self) -> UART_PRINT_CHANNEL_ERR_R {
45 UART_PRINT_CHANNEL_ERR_R::new(((self.bits >> 2) & 1) != 0)
46 }
47 #[doc = "Bit 3 - If FLASH_ECC_MODE is 1, then it indicates a programming error."]
48 #[inline(always)]
49 pub fn flash_ecc_mode_err(&self) -> FLASH_ECC_MODE_ERR_R {
50 FLASH_ECC_MODE_ERR_R::new(((self.bits >> 3) & 1) != 0)
51 }
52 #[doc = "Bit 4 - If DIS_USB_DOWNLOAD_MODE is 1, then it indicates a programming error."]
53 #[inline(always)]
54 pub fn dis_usb_download_mode_err(&self) -> DIS_USB_DOWNLOAD_MODE_ERR_R {
55 DIS_USB_DOWNLOAD_MODE_ERR_R::new(((self.bits >> 4) & 1) != 0)
56 }
57 #[doc = "Bit 5 - If ENABLE_SECURITY_DOWNLOAD is 1, then it indicates a programming error."]
58 #[inline(always)]
59 pub fn enable_security_download_err(&self) -> ENABLE_SECURITY_DOWNLOAD_ERR_R {
60 ENABLE_SECURITY_DOWNLOAD_ERR_R::new(((self.bits >> 5) & 1) != 0)
61 }
62 #[doc = "Bits 6:7 - If any bit in UART_PRINT_CONTROL is 1, then it indicates a programming error."]
63 #[inline(always)]
64 pub fn uart_print_control_err(&self) -> UART_PRINT_CONTROL_ERR_R {
65 UART_PRINT_CONTROL_ERR_R::new(((self.bits >> 6) & 3) as u8)
66 }
67 #[doc = "Bit 8 - If PIN_POWER_SELECTION is 1, then it indicates a programming error."]
68 #[inline(always)]
69 pub fn pin_power_selection_err(&self) -> PIN_POWER_SELECTION_ERR_R {
70 PIN_POWER_SELECTION_ERR_R::new(((self.bits >> 8) & 1) != 0)
71 }
72 #[doc = "Bit 9 - If FLASH_TYPE is 1, then it indicates a programming error."]
73 #[inline(always)]
74 pub fn flash_type_err(&self) -> FLASH_TYPE_ERR_R {
75 FLASH_TYPE_ERR_R::new(((self.bits >> 9) & 1) != 0)
76 }
77 #[doc = "Bits 10:11 - If any bits in FLASH_PAGE_SIZE is 1, then it indicates a programming error."]
78 #[inline(always)]
79 pub fn flash_page_size_err(&self) -> FLASH_PAGE_SIZE_ERR_R {
80 FLASH_PAGE_SIZE_ERR_R::new(((self.bits >> 10) & 3) as u8)
81 }
82 #[doc = "Bit 12 - If FLASH_ECC_EN_ERR is 1, then it indicates a programming error."]
83 #[inline(always)]
84 pub fn flash_ecc_en_err(&self) -> FLASH_ECC_EN_ERR_R {
85 FLASH_ECC_EN_ERR_R::new(((self.bits >> 12) & 1) != 0)
86 }
87 #[doc = "Bit 13 - If FORCE_SEND_RESUME is 1, then it indicates a programming error."]
88 #[inline(always)]
89 pub fn force_send_resume_err(&self) -> FORCE_SEND_RESUME_ERR_R {
90 FORCE_SEND_RESUME_ERR_R::new(((self.bits >> 13) & 1) != 0)
91 }
92 #[doc = "Bits 14:29 - If any bit in SECURE_VERSION is 1, then it indicates a programming error."]
93 #[inline(always)]
94 pub fn secure_version_err(&self) -> SECURE_VERSION_ERR_R {
95 SECURE_VERSION_ERR_R::new(((self.bits >> 14) & 0xffff) as u16)
96 }
97 #[doc = "Bits 30:31 - Reserved."]
98 #[inline(always)]
99 pub fn rpt4_reserved1_err(&self) -> RPT4_RESERVED1_ERR_R {
100 RPT4_RESERVED1_ERR_R::new(((self.bits >> 30) & 3) as u8)
101 }
102}
103#[cfg(feature = "impl-register-debug")]
104impl core::fmt::Debug for R {
105 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
106 f.debug_struct("RD_REPEAT_ERR3")
107 .field("dis_download_mode_err", &self.dis_download_mode_err())
108 .field("dis_legacy_spi_boot_err", &self.dis_legacy_spi_boot_err())
109 .field("uart_print_channel_err", &self.uart_print_channel_err())
110 .field("flash_ecc_mode_err", &self.flash_ecc_mode_err())
111 .field(
112 "dis_usb_download_mode_err",
113 &self.dis_usb_download_mode_err(),
114 )
115 .field(
116 "enable_security_download_err",
117 &self.enable_security_download_err(),
118 )
119 .field("uart_print_control_err", &self.uart_print_control_err())
120 .field("pin_power_selection_err", &self.pin_power_selection_err())
121 .field("flash_type_err", &self.flash_type_err())
122 .field("flash_page_size_err", &self.flash_page_size_err())
123 .field("flash_ecc_en_err", &self.flash_ecc_en_err())
124 .field("force_send_resume_err", &self.force_send_resume_err())
125 .field("secure_version_err", &self.secure_version_err())
126 .field("rpt4_reserved1_err", &self.rpt4_reserved1_err())
127 .finish()
128 }
129}
130#[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)."]
131pub struct RD_REPEAT_ERR3_SPEC;
132impl crate::RegisterSpec for RD_REPEAT_ERR3_SPEC {
133 type Ux = u32;
134}
135#[doc = "`read()` method returns [`rd_repeat_err3::R`](R) reader structure"]
136impl crate::Readable for RD_REPEAT_ERR3_SPEC {}
137#[doc = "`reset()` method sets RD_REPEAT_ERR3 to value 0"]
138impl crate::Resettable for RD_REPEAT_ERR3_SPEC {
139 const RESET_VALUE: u32 = 0;
140}