esp32c3/efuse/
rd_repeat_err1.rs1#[doc = "Register `RD_REPEAT_ERR1` reader"]
2pub type R = crate::R<RD_REPEAT_ERR1_SPEC>;
3#[doc = "Field `RPT4_RESERVED2_ERR` reader - Reserved."]
4pub type RPT4_RESERVED2_ERR_R = crate::FieldReader<u16>;
5#[doc = "Field `WDT_DELAY_SEL_ERR` reader - If any bit in WDT_DELAY_SEL is 1, then it indicates a programming error."]
6pub type WDT_DELAY_SEL_ERR_R = crate::FieldReader;
7#[doc = "Field `SPI_BOOT_CRYPT_CNT_ERR` reader - If any bit in SPI_BOOT_CRYPT_CNT is 1, then it indicates a programming error."]
8pub type SPI_BOOT_CRYPT_CNT_ERR_R = crate::FieldReader;
9#[doc = "Field `SECURE_BOOT_KEY_REVOKE0_ERR` reader - If SECURE_BOOT_KEY_REVOKE0 is 1, then it indicates a programming error."]
10pub type SECURE_BOOT_KEY_REVOKE0_ERR_R = crate::BitReader;
11#[doc = "Field `SECURE_BOOT_KEY_REVOKE1_ERR` reader - If SECURE_BOOT_KEY_REVOKE1 is 1, then it indicates a programming error."]
12pub type SECURE_BOOT_KEY_REVOKE1_ERR_R = crate::BitReader;
13#[doc = "Field `SECURE_BOOT_KEY_REVOKE2_ERR` reader - If SECURE_BOOT_KEY_REVOKE2 is 1, then it indicates a programming error."]
14pub type SECURE_BOOT_KEY_REVOKE2_ERR_R = crate::BitReader;
15#[doc = "Field `KEY_PURPOSE_0_ERR` reader - If any bit in KEY_PURPOSE_0 is 1, then it indicates a programming error."]
16pub type KEY_PURPOSE_0_ERR_R = crate::FieldReader;
17#[doc = "Field `KEY_PURPOSE_1_ERR` reader - If any bit in KEY_PURPOSE_1 is 1, then it indicates a programming error."]
18pub type KEY_PURPOSE_1_ERR_R = crate::FieldReader;
19impl R {
20 #[doc = "Bits 0:15 - Reserved."]
21 #[inline(always)]
22 pub fn rpt4_reserved2_err(&self) -> RPT4_RESERVED2_ERR_R {
23 RPT4_RESERVED2_ERR_R::new((self.bits & 0xffff) as u16)
24 }
25 #[doc = "Bits 16:17 - If any bit in WDT_DELAY_SEL is 1, then it indicates a programming error."]
26 #[inline(always)]
27 pub fn wdt_delay_sel_err(&self) -> WDT_DELAY_SEL_ERR_R {
28 WDT_DELAY_SEL_ERR_R::new(((self.bits >> 16) & 3) as u8)
29 }
30 #[doc = "Bits 18:20 - If any bit in SPI_BOOT_CRYPT_CNT is 1, then it indicates a programming error."]
31 #[inline(always)]
32 pub fn spi_boot_crypt_cnt_err(&self) -> SPI_BOOT_CRYPT_CNT_ERR_R {
33 SPI_BOOT_CRYPT_CNT_ERR_R::new(((self.bits >> 18) & 7) as u8)
34 }
35 #[doc = "Bit 21 - If SECURE_BOOT_KEY_REVOKE0 is 1, then it indicates a programming error."]
36 #[inline(always)]
37 pub fn secure_boot_key_revoke0_err(&self) -> SECURE_BOOT_KEY_REVOKE0_ERR_R {
38 SECURE_BOOT_KEY_REVOKE0_ERR_R::new(((self.bits >> 21) & 1) != 0)
39 }
40 #[doc = "Bit 22 - If SECURE_BOOT_KEY_REVOKE1 is 1, then it indicates a programming error."]
41 #[inline(always)]
42 pub fn secure_boot_key_revoke1_err(&self) -> SECURE_BOOT_KEY_REVOKE1_ERR_R {
43 SECURE_BOOT_KEY_REVOKE1_ERR_R::new(((self.bits >> 22) & 1) != 0)
44 }
45 #[doc = "Bit 23 - If SECURE_BOOT_KEY_REVOKE2 is 1, then it indicates a programming error."]
46 #[inline(always)]
47 pub fn secure_boot_key_revoke2_err(&self) -> SECURE_BOOT_KEY_REVOKE2_ERR_R {
48 SECURE_BOOT_KEY_REVOKE2_ERR_R::new(((self.bits >> 23) & 1) != 0)
49 }
50 #[doc = "Bits 24:27 - If any bit in KEY_PURPOSE_0 is 1, then it indicates a programming error."]
51 #[inline(always)]
52 pub fn key_purpose_0_err(&self) -> KEY_PURPOSE_0_ERR_R {
53 KEY_PURPOSE_0_ERR_R::new(((self.bits >> 24) & 0x0f) as u8)
54 }
55 #[doc = "Bits 28:31 - If any bit in KEY_PURPOSE_1 is 1, then it indicates a programming error."]
56 #[inline(always)]
57 pub fn key_purpose_1_err(&self) -> KEY_PURPOSE_1_ERR_R {
58 KEY_PURPOSE_1_ERR_R::new(((self.bits >> 28) & 0x0f) as u8)
59 }
60}
61#[cfg(feature = "impl-register-debug")]
62impl core::fmt::Debug for R {
63 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
64 f.debug_struct("RD_REPEAT_ERR1")
65 .field("rpt4_reserved2_err", &self.rpt4_reserved2_err())
66 .field("wdt_delay_sel_err", &self.wdt_delay_sel_err())
67 .field("spi_boot_crypt_cnt_err", &self.spi_boot_crypt_cnt_err())
68 .field(
69 "secure_boot_key_revoke0_err",
70 &self.secure_boot_key_revoke0_err(),
71 )
72 .field(
73 "secure_boot_key_revoke1_err",
74 &self.secure_boot_key_revoke1_err(),
75 )
76 .field(
77 "secure_boot_key_revoke2_err",
78 &self.secure_boot_key_revoke2_err(),
79 )
80 .field("key_purpose_0_err", &self.key_purpose_0_err())
81 .field("key_purpose_1_err", &self.key_purpose_1_err())
82 .finish()
83 }
84}
85#[doc = "Programming error record register 1 of BLOCK0.\n\nYou can [`read`](crate::Reg::read) this register and get [`rd_repeat_err1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
86pub struct RD_REPEAT_ERR1_SPEC;
87impl crate::RegisterSpec for RD_REPEAT_ERR1_SPEC {
88 type Ux = u32;
89}
90#[doc = "`read()` method returns [`rd_repeat_err1::R`](R) reader structure"]
91impl crate::Readable for RD_REPEAT_ERR1_SPEC {}
92#[doc = "`reset()` method sets RD_REPEAT_ERR1 to value 0"]
93impl crate::Resettable for RD_REPEAT_ERR1_SPEC {
94 const RESET_VALUE: u32 = 0;
95}