esp32c6/slchost/
conf_w12.rs1#[doc = "Register `CONF_W12` reader"]
2pub type R = crate::R<CONF_W12_SPEC>;
3#[doc = "Register `CONF_W12` writer"]
4pub type W = crate::W<CONF_W12_SPEC>;
5#[doc = "Field `SLCHOST_CONF48` reader - *******Description***********"]
6pub type SLCHOST_CONF48_R = crate::FieldReader;
7#[doc = "Field `SLCHOST_CONF48` writer - *******Description***********"]
8pub type SLCHOST_CONF48_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9#[doc = "Field `SLCHOST_CONF49` reader - *******Description***********"]
10pub type SLCHOST_CONF49_R = crate::FieldReader;
11#[doc = "Field `SLCHOST_CONF49` writer - *******Description***********"]
12pub type SLCHOST_CONF49_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13#[doc = "Field `SLCHOST_CONF50` reader - *******Description***********"]
14pub type SLCHOST_CONF50_R = crate::FieldReader;
15#[doc = "Field `SLCHOST_CONF50` writer - *******Description***********"]
16pub type SLCHOST_CONF50_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
17#[doc = "Field `SLCHOST_CONF51` reader - *******Description***********"]
18pub type SLCHOST_CONF51_R = crate::FieldReader;
19#[doc = "Field `SLCHOST_CONF51` writer - *******Description***********"]
20pub type SLCHOST_CONF51_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
21impl R {
22 #[doc = "Bits 0:7 - *******Description***********"]
23 #[inline(always)]
24 pub fn slchost_conf48(&self) -> SLCHOST_CONF48_R {
25 SLCHOST_CONF48_R::new((self.bits & 0xff) as u8)
26 }
27 #[doc = "Bits 8:15 - *******Description***********"]
28 #[inline(always)]
29 pub fn slchost_conf49(&self) -> SLCHOST_CONF49_R {
30 SLCHOST_CONF49_R::new(((self.bits >> 8) & 0xff) as u8)
31 }
32 #[doc = "Bits 16:23 - *******Description***********"]
33 #[inline(always)]
34 pub fn slchost_conf50(&self) -> SLCHOST_CONF50_R {
35 SLCHOST_CONF50_R::new(((self.bits >> 16) & 0xff) as u8)
36 }
37 #[doc = "Bits 24:31 - *******Description***********"]
38 #[inline(always)]
39 pub fn slchost_conf51(&self) -> SLCHOST_CONF51_R {
40 SLCHOST_CONF51_R::new(((self.bits >> 24) & 0xff) as u8)
41 }
42}
43#[cfg(feature = "impl-register-debug")]
44impl core::fmt::Debug for R {
45 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
46 f.debug_struct("CONF_W12")
47 .field("slchost_conf48", &self.slchost_conf48())
48 .field("slchost_conf49", &self.slchost_conf49())
49 .field("slchost_conf50", &self.slchost_conf50())
50 .field("slchost_conf51", &self.slchost_conf51())
51 .finish()
52 }
53}
54impl W {
55 #[doc = "Bits 0:7 - *******Description***********"]
56 #[inline(always)]
57 pub fn slchost_conf48(&mut self) -> SLCHOST_CONF48_W<CONF_W12_SPEC> {
58 SLCHOST_CONF48_W::new(self, 0)
59 }
60 #[doc = "Bits 8:15 - *******Description***********"]
61 #[inline(always)]
62 pub fn slchost_conf49(&mut self) -> SLCHOST_CONF49_W<CONF_W12_SPEC> {
63 SLCHOST_CONF49_W::new(self, 8)
64 }
65 #[doc = "Bits 16:23 - *******Description***********"]
66 #[inline(always)]
67 pub fn slchost_conf50(&mut self) -> SLCHOST_CONF50_W<CONF_W12_SPEC> {
68 SLCHOST_CONF50_W::new(self, 16)
69 }
70 #[doc = "Bits 24:31 - *******Description***********"]
71 #[inline(always)]
72 pub fn slchost_conf51(&mut self) -> SLCHOST_CONF51_W<CONF_W12_SPEC> {
73 SLCHOST_CONF51_W::new(self, 24)
74 }
75}
76#[doc = "*******Description***********\n\nYou can [`read`](crate::Reg::read) this register and get [`conf_w12::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`conf_w12::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
77pub struct CONF_W12_SPEC;
78impl crate::RegisterSpec for CONF_W12_SPEC {
79 type Ux = u32;
80}
81#[doc = "`read()` method returns [`conf_w12::R`](R) reader structure"]
82impl crate::Readable for CONF_W12_SPEC {}
83#[doc = "`write(|w| ..)` method takes [`conf_w12::W`](W) writer structure"]
84impl crate::Writable for CONF_W12_SPEC {
85 type Safety = crate::Unsafe;
86}
87#[doc = "`reset()` method sets CONF_W12 to value 0"]
88impl crate::Resettable for CONF_W12_SPEC {}