esp32/slchost/
host_slchost_state_w1.rs1#[doc = "Register `HOST_SLCHOST_STATE_W1` reader"]
2pub type R = crate::R<HOST_SLCHOST_STATE_W1_SPEC>;
3#[doc = "Field `HOST_SLCHOST_STATE4` reader - "]
4pub type HOST_SLCHOST_STATE4_R = crate::FieldReader;
5#[doc = "Field `HOST_SLCHOST_STATE5` reader - "]
6pub type HOST_SLCHOST_STATE5_R = crate::FieldReader;
7#[doc = "Field `HOST_SLCHOST_STATE6` reader - "]
8pub type HOST_SLCHOST_STATE6_R = crate::FieldReader;
9#[doc = "Field `HOST_SLCHOST_STATE7` reader - "]
10pub type HOST_SLCHOST_STATE7_R = crate::FieldReader;
11impl R {
12 #[doc = "Bits 0:7"]
13 #[inline(always)]
14 pub fn host_slchost_state4(&self) -> HOST_SLCHOST_STATE4_R {
15 HOST_SLCHOST_STATE4_R::new((self.bits & 0xff) as u8)
16 }
17 #[doc = "Bits 8:15"]
18 #[inline(always)]
19 pub fn host_slchost_state5(&self) -> HOST_SLCHOST_STATE5_R {
20 HOST_SLCHOST_STATE5_R::new(((self.bits >> 8) & 0xff) as u8)
21 }
22 #[doc = "Bits 16:23"]
23 #[inline(always)]
24 pub fn host_slchost_state6(&self) -> HOST_SLCHOST_STATE6_R {
25 HOST_SLCHOST_STATE6_R::new(((self.bits >> 16) & 0xff) as u8)
26 }
27 #[doc = "Bits 24:31"]
28 #[inline(always)]
29 pub fn host_slchost_state7(&self) -> HOST_SLCHOST_STATE7_R {
30 HOST_SLCHOST_STATE7_R::new(((self.bits >> 24) & 0xff) as u8)
31 }
32}
33#[cfg(feature = "impl-register-debug")]
34impl core::fmt::Debug for R {
35 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
36 f.debug_struct("HOST_SLCHOST_STATE_W1")
37 .field("host_slchost_state4", &self.host_slchost_state4())
38 .field("host_slchost_state5", &self.host_slchost_state5())
39 .field("host_slchost_state6", &self.host_slchost_state6())
40 .field("host_slchost_state7", &self.host_slchost_state7())
41 .finish()
42 }
43}
44#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`host_slchost_state_w1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
45pub struct HOST_SLCHOST_STATE_W1_SPEC;
46impl crate::RegisterSpec for HOST_SLCHOST_STATE_W1_SPEC {
47 type Ux = u32;
48}
49#[doc = "`read()` method returns [`host_slchost_state_w1::R`](R) reader structure"]
50impl crate::Readable for HOST_SLCHOST_STATE_W1_SPEC {}
51#[doc = "`reset()` method sets HOST_SLCHOST_STATE_W1 to value 0"]
52impl crate::Resettable for HOST_SLCHOST_STATE_W1_SPEC {
53 const RESET_VALUE: u32 = 0;
54}