1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#[doc = "Register `STATE_W1` reader"]
pub type R = crate::R<STATE_W1_SPEC>;
#[doc = "Field `SLCHOST_STATE4` reader - *******Description***********"]
pub type SLCHOST_STATE4_R = crate::FieldReader;
#[doc = "Field `SLCHOST_STATE5` reader - *******Description***********"]
pub type SLCHOST_STATE5_R = crate::FieldReader;
#[doc = "Field `SLCHOST_STATE6` reader - *******Description***********"]
pub type SLCHOST_STATE6_R = crate::FieldReader;
#[doc = "Field `SLCHOST_STATE7` reader - *******Description***********"]
pub type SLCHOST_STATE7_R = crate::FieldReader;
impl R {
    #[doc = "Bits 0:7 - *******Description***********"]
    #[inline(always)]
    pub fn slchost_state4(&self) -> SLCHOST_STATE4_R {
        SLCHOST_STATE4_R::new((self.bits & 0xff) as u8)
    }
    #[doc = "Bits 8:15 - *******Description***********"]
    #[inline(always)]
    pub fn slchost_state5(&self) -> SLCHOST_STATE5_R {
        SLCHOST_STATE5_R::new(((self.bits >> 8) & 0xff) as u8)
    }
    #[doc = "Bits 16:23 - *******Description***********"]
    #[inline(always)]
    pub fn slchost_state6(&self) -> SLCHOST_STATE6_R {
        SLCHOST_STATE6_R::new(((self.bits >> 16) & 0xff) as u8)
    }
    #[doc = "Bits 24:31 - *******Description***********"]
    #[inline(always)]
    pub fn slchost_state7(&self) -> SLCHOST_STATE7_R {
        SLCHOST_STATE7_R::new(((self.bits >> 24) & 0xff) as u8)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("STATE_W1")
            .field("slchost_state4", &self.slchost_state4())
            .field("slchost_state5", &self.slchost_state5())
            .field("slchost_state6", &self.slchost_state6())
            .field("slchost_state7", &self.slchost_state7())
            .finish()
    }
}
#[doc = "*******Description***********\n\nYou can [`read`](crate::Reg::read) this register and get [`state_w1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STATE_W1_SPEC;
impl crate::RegisterSpec for STATE_W1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`state_w1::R`](R) reader structure"]
impl crate::Readable for STATE_W1_SPEC {}
#[doc = "`reset()` method sets STATE_W1 to value 0"]
impl crate::Resettable for STATE_W1_SPEC {
    const RESET_VALUE: u32 = 0;
}