esp32/slchost/
host_slchost_conf_w14.rs

1#[doc = "Register `HOST_SLCHOST_CONF_W14` reader"]
2pub type R = crate::R<HOST_SLCHOST_CONF_W14_SPEC>;
3#[doc = "Register `HOST_SLCHOST_CONF_W14` writer"]
4pub type W = crate::W<HOST_SLCHOST_CONF_W14_SPEC>;
5#[doc = "Field `HOST_SLCHOST_CONF56` reader - "]
6pub type HOST_SLCHOST_CONF56_R = crate::FieldReader;
7#[doc = "Field `HOST_SLCHOST_CONF56` writer - "]
8pub type HOST_SLCHOST_CONF56_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9#[doc = "Field `HOST_SLCHOST_CONF57` reader - "]
10pub type HOST_SLCHOST_CONF57_R = crate::FieldReader;
11#[doc = "Field `HOST_SLCHOST_CONF57` writer - "]
12pub type HOST_SLCHOST_CONF57_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13#[doc = "Field `HOST_SLCHOST_CONF58` reader - "]
14pub type HOST_SLCHOST_CONF58_R = crate::FieldReader;
15#[doc = "Field `HOST_SLCHOST_CONF58` writer - "]
16pub type HOST_SLCHOST_CONF58_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
17#[doc = "Field `HOST_SLCHOST_CONF59` reader - "]
18pub type HOST_SLCHOST_CONF59_R = crate::FieldReader;
19#[doc = "Field `HOST_SLCHOST_CONF59` writer - "]
20pub type HOST_SLCHOST_CONF59_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
21impl R {
22    #[doc = "Bits 0:7"]
23    #[inline(always)]
24    pub fn host_slchost_conf56(&self) -> HOST_SLCHOST_CONF56_R {
25        HOST_SLCHOST_CONF56_R::new((self.bits & 0xff) as u8)
26    }
27    #[doc = "Bits 8:15"]
28    #[inline(always)]
29    pub fn host_slchost_conf57(&self) -> HOST_SLCHOST_CONF57_R {
30        HOST_SLCHOST_CONF57_R::new(((self.bits >> 8) & 0xff) as u8)
31    }
32    #[doc = "Bits 16:23"]
33    #[inline(always)]
34    pub fn host_slchost_conf58(&self) -> HOST_SLCHOST_CONF58_R {
35        HOST_SLCHOST_CONF58_R::new(((self.bits >> 16) & 0xff) as u8)
36    }
37    #[doc = "Bits 24:31"]
38    #[inline(always)]
39    pub fn host_slchost_conf59(&self) -> HOST_SLCHOST_CONF59_R {
40        HOST_SLCHOST_CONF59_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_W14")
47            .field("host_slchost_conf56", &self.host_slchost_conf56())
48            .field("host_slchost_conf57", &self.host_slchost_conf57())
49            .field("host_slchost_conf58", &self.host_slchost_conf58())
50            .field("host_slchost_conf59", &self.host_slchost_conf59())
51            .finish()
52    }
53}
54impl W {
55    #[doc = "Bits 0:7"]
56    #[inline(always)]
57    pub fn host_slchost_conf56(&mut self) -> HOST_SLCHOST_CONF56_W<HOST_SLCHOST_CONF_W14_SPEC> {
58        HOST_SLCHOST_CONF56_W::new(self, 0)
59    }
60    #[doc = "Bits 8:15"]
61    #[inline(always)]
62    pub fn host_slchost_conf57(&mut self) -> HOST_SLCHOST_CONF57_W<HOST_SLCHOST_CONF_W14_SPEC> {
63        HOST_SLCHOST_CONF57_W::new(self, 8)
64    }
65    #[doc = "Bits 16:23"]
66    #[inline(always)]
67    pub fn host_slchost_conf58(&mut self) -> HOST_SLCHOST_CONF58_W<HOST_SLCHOST_CONF_W14_SPEC> {
68        HOST_SLCHOST_CONF58_W::new(self, 16)
69    }
70    #[doc = "Bits 24:31"]
71    #[inline(always)]
72    pub fn host_slchost_conf59(&mut self) -> HOST_SLCHOST_CONF59_W<HOST_SLCHOST_CONF_W14_SPEC> {
73        HOST_SLCHOST_CONF59_W::new(self, 24)
74    }
75}
76#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`host_slchost_conf_w14::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_w14::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_W14_SPEC;
78impl crate::RegisterSpec for HOST_SLCHOST_CONF_W14_SPEC {
79    type Ux = u32;
80}
81#[doc = "`read()` method returns [`host_slchost_conf_w14::R`](R) reader structure"]
82impl crate::Readable for HOST_SLCHOST_CONF_W14_SPEC {}
83#[doc = "`write(|w| ..)` method takes [`host_slchost_conf_w14::W`](W) writer structure"]
84impl crate::Writable for HOST_SLCHOST_CONF_W14_SPEC {
85    type Safety = crate::Unsafe;
86    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
87    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
88}
89#[doc = "`reset()` method sets HOST_SLCHOST_CONF_W14 to value 0"]
90impl crate::Resettable for HOST_SLCHOST_CONF_W14_SPEC {
91    const RESET_VALUE: u32 = 0;
92}