esp32c3/efuse/
rd_tim_conf.rs1#[doc = "Register `RD_TIM_CONF` reader"]
2pub type R = crate::R<RD_TIM_CONF_SPEC>;
3#[doc = "Register `RD_TIM_CONF` writer"]
4pub type W = crate::W<RD_TIM_CONF_SPEC>;
5#[doc = "Field `READ_INIT_NUM` reader - Configures the initial read time of eFuse."]
6pub type READ_INIT_NUM_R = crate::FieldReader;
7#[doc = "Field `READ_INIT_NUM` writer - Configures the initial read time of eFuse."]
8pub type READ_INIT_NUM_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9impl R {
10 #[doc = "Bits 24:31 - Configures the initial read time of eFuse."]
11 #[inline(always)]
12 pub fn read_init_num(&self) -> READ_INIT_NUM_R {
13 READ_INIT_NUM_R::new(((self.bits >> 24) & 0xff) as u8)
14 }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("RD_TIM_CONF")
20 .field("read_init_num", &self.read_init_num())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bits 24:31 - Configures the initial read time of eFuse."]
26 #[inline(always)]
27 pub fn read_init_num(&mut self) -> READ_INIT_NUM_W<RD_TIM_CONF_SPEC> {
28 READ_INIT_NUM_W::new(self, 24)
29 }
30}
31#[doc = "Configures read timing parameters.\n\nYou can [`read`](crate::Reg::read) this register and get [`rd_tim_conf::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rd_tim_conf::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct RD_TIM_CONF_SPEC;
33impl crate::RegisterSpec for RD_TIM_CONF_SPEC {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`rd_tim_conf::R`](R) reader structure"]
37impl crate::Readable for RD_TIM_CONF_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`rd_tim_conf::W`](W) writer structure"]
39impl crate::Writable for RD_TIM_CONF_SPEC {
40 type Safety = crate::Unsafe;
41 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
42 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
43}
44#[doc = "`reset()` method sets RD_TIM_CONF to value 0x1200_0000"]
45impl crate::Resettable for RD_TIM_CONF_SPEC {
46 const RESET_VALUE: u32 = 0x1200_0000;
47}