esp32/slchost/
host_slchost_conf_w10.rs1#[doc = "Register `HOST_SLCHOST_CONF_W10` reader"]
2pub type R = crate::R<HOST_SLCHOST_CONF_W10_SPEC>;
3#[doc = "Register `HOST_SLCHOST_CONF_W10` writer"]
4pub type W = crate::W<HOST_SLCHOST_CONF_W10_SPEC>;
5#[doc = "Field `HOST_SLCHOST_CONF40` reader - "]
6pub type HOST_SLCHOST_CONF40_R = crate::FieldReader;
7#[doc = "Field `HOST_SLCHOST_CONF40` writer - "]
8pub type HOST_SLCHOST_CONF40_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9#[doc = "Field `HOST_SLCHOST_CONF41` reader - "]
10pub type HOST_SLCHOST_CONF41_R = crate::FieldReader;
11#[doc = "Field `HOST_SLCHOST_CONF41` writer - "]
12pub type HOST_SLCHOST_CONF41_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13#[doc = "Field `HOST_SLCHOST_CONF42` reader - "]
14pub type HOST_SLCHOST_CONF42_R = crate::FieldReader;
15#[doc = "Field `HOST_SLCHOST_CONF42` writer - "]
16pub type HOST_SLCHOST_CONF42_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
17#[doc = "Field `HOST_SLCHOST_CONF43` reader - "]
18pub type HOST_SLCHOST_CONF43_R = crate::FieldReader;
19#[doc = "Field `HOST_SLCHOST_CONF43` writer - "]
20pub type HOST_SLCHOST_CONF43_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
21impl R {
22 #[doc = "Bits 0:7"]
23 #[inline(always)]
24 pub fn host_slchost_conf40(&self) -> HOST_SLCHOST_CONF40_R {
25 HOST_SLCHOST_CONF40_R::new((self.bits & 0xff) as u8)
26 }
27 #[doc = "Bits 8:15"]
28 #[inline(always)]
29 pub fn host_slchost_conf41(&self) -> HOST_SLCHOST_CONF41_R {
30 HOST_SLCHOST_CONF41_R::new(((self.bits >> 8) & 0xff) as u8)
31 }
32 #[doc = "Bits 16:23"]
33 #[inline(always)]
34 pub fn host_slchost_conf42(&self) -> HOST_SLCHOST_CONF42_R {
35 HOST_SLCHOST_CONF42_R::new(((self.bits >> 16) & 0xff) as u8)
36 }
37 #[doc = "Bits 24:31"]
38 #[inline(always)]
39 pub fn host_slchost_conf43(&self) -> HOST_SLCHOST_CONF43_R {
40 HOST_SLCHOST_CONF43_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("HOST_SLCHOST_CONF_W10")
47 .field("host_slchost_conf40", &self.host_slchost_conf40())
48 .field("host_slchost_conf41", &self.host_slchost_conf41())
49 .field("host_slchost_conf42", &self.host_slchost_conf42())
50 .field("host_slchost_conf43", &self.host_slchost_conf43())
51 .finish()
52 }
53}
54impl W {
55 #[doc = "Bits 0:7"]
56 #[inline(always)]
57 pub fn host_slchost_conf40(&mut self) -> HOST_SLCHOST_CONF40_W<HOST_SLCHOST_CONF_W10_SPEC> {
58 HOST_SLCHOST_CONF40_W::new(self, 0)
59 }
60 #[doc = "Bits 8:15"]
61 #[inline(always)]
62 pub fn host_slchost_conf41(&mut self) -> HOST_SLCHOST_CONF41_W<HOST_SLCHOST_CONF_W10_SPEC> {
63 HOST_SLCHOST_CONF41_W::new(self, 8)
64 }
65 #[doc = "Bits 16:23"]
66 #[inline(always)]
67 pub fn host_slchost_conf42(&mut self) -> HOST_SLCHOST_CONF42_W<HOST_SLCHOST_CONF_W10_SPEC> {
68 HOST_SLCHOST_CONF42_W::new(self, 16)
69 }
70 #[doc = "Bits 24:31"]
71 #[inline(always)]
72 pub fn host_slchost_conf43(&mut self) -> HOST_SLCHOST_CONF43_W<HOST_SLCHOST_CONF_W10_SPEC> {
73 HOST_SLCHOST_CONF43_W::new(self, 24)
74 }
75}
76#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`host_slchost_conf_w10::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`host_slchost_conf_w10::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
77pub struct HOST_SLCHOST_CONF_W10_SPEC;
78impl crate::RegisterSpec for HOST_SLCHOST_CONF_W10_SPEC {
79 type Ux = u32;
80}
81#[doc = "`read()` method returns [`host_slchost_conf_w10::R`](R) reader structure"]
82impl crate::Readable for HOST_SLCHOST_CONF_W10_SPEC {}
83#[doc = "`write(|w| ..)` method takes [`host_slchost_conf_w10::W`](W) writer structure"]
84impl crate::Writable for HOST_SLCHOST_CONF_W10_SPEC {
85 type Safety = crate::Unsafe;
86}
87#[doc = "`reset()` method sets HOST_SLCHOST_CONF_W10 to value 0"]
88impl crate::Resettable for HOST_SLCHOST_CONF_W10_SPEC {}