esp32h2/efuse/
rd_repeat_err4.rs1#[doc = "Register `RD_REPEAT_ERR4` reader"]
2pub type R = crate::R<RD_REPEAT_ERR4_SPEC>;
3#[doc = "Field `HYS_EN_PAD1_ERR` reader - Indicates a programming error of HYS_EN_PAD1."]
4pub type HYS_EN_PAD1_ERR_R = crate::FieldReader<u32>;
5#[doc = "Field `RPT4_RESERVED4_ERR_1` reader - Reserved."]
6pub type RPT4_RESERVED4_ERR_1_R = crate::FieldReader;
7#[doc = "Field `RPT4_RESERVED4_ERR_0` reader - Reserved."]
8pub type RPT4_RESERVED4_ERR_0_R = crate::FieldReader;
9impl R {
10 #[doc = "Bits 0:21 - Indicates a programming error of HYS_EN_PAD1."]
11 #[inline(always)]
12 pub fn hys_en_pad1_err(&self) -> HYS_EN_PAD1_ERR_R {
13 HYS_EN_PAD1_ERR_R::new(self.bits & 0x003f_ffff)
14 }
15 #[doc = "Bits 22:23 - Reserved."]
16 #[inline(always)]
17 pub fn rpt4_reserved4_err_1(&self) -> RPT4_RESERVED4_ERR_1_R {
18 RPT4_RESERVED4_ERR_1_R::new(((self.bits >> 22) & 3) as u8)
19 }
20 #[doc = "Bits 24:31 - Reserved."]
21 #[inline(always)]
22 pub fn rpt4_reserved4_err_0(&self) -> RPT4_RESERVED4_ERR_0_R {
23 RPT4_RESERVED4_ERR_0_R::new(((self.bits >> 24) & 0xff) as u8)
24 }
25}
26#[cfg(feature = "impl-register-debug")]
27impl core::fmt::Debug for R {
28 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
29 f.debug_struct("RD_REPEAT_ERR4")
30 .field("hys_en_pad1_err", &self.hys_en_pad1_err())
31 .field("rpt4_reserved4_err_1", &self.rpt4_reserved4_err_1())
32 .field("rpt4_reserved4_err_0", &self.rpt4_reserved4_err_0())
33 .finish()
34 }
35}
36#[doc = "Programming error record register 4 of BLOCK0.\n\nYou can [`read`](crate::Reg::read) this register and get [`rd_repeat_err4::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
37pub struct RD_REPEAT_ERR4_SPEC;
38impl crate::RegisterSpec for RD_REPEAT_ERR4_SPEC {
39 type Ux = u32;
40}
41#[doc = "`read()` method returns [`rd_repeat_err4::R`](R) reader structure"]
42impl crate::Readable for RD_REPEAT_ERR4_SPEC {}
43#[doc = "`reset()` method sets RD_REPEAT_ERR4 to value 0"]
44impl crate::Resettable for RD_REPEAT_ERR4_SPEC {
45 const RESET_VALUE: u32 = 0;
46}