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_W0` reader"]
pub type R = crate::R<STATE_W0_SPEC>;
#[doc = "Field `SLCHOST_STATE0` reader - *******Description***********"]
pub type SLCHOST_STATE0_R = crate::FieldReader;
#[doc = "Field `SLCHOST_STATE1` reader - *******Description***********"]
pub type SLCHOST_STATE1_R = crate::FieldReader;
#[doc = "Field `SLCHOST_STATE2` reader - *******Description***********"]
pub type SLCHOST_STATE2_R = crate::FieldReader;
#[doc = "Field `SLCHOST_STATE3` reader - *******Description***********"]
pub type SLCHOST_STATE3_R = crate::FieldReader;
impl R {
    #[doc = "Bits 0:7 - *******Description***********"]
    #[inline(always)]
    pub fn slchost_state0(&self) -> SLCHOST_STATE0_R {
        SLCHOST_STATE0_R::new((self.bits & 0xff) as u8)
    }
    #[doc = "Bits 8:15 - *******Description***********"]
    #[inline(always)]
    pub fn slchost_state1(&self) -> SLCHOST_STATE1_R {
        SLCHOST_STATE1_R::new(((self.bits >> 8) & 0xff) as u8)
    }
    #[doc = "Bits 16:23 - *******Description***********"]
    #[inline(always)]
    pub fn slchost_state2(&self) -> SLCHOST_STATE2_R {
        SLCHOST_STATE2_R::new(((self.bits >> 16) & 0xff) as u8)
    }
    #[doc = "Bits 24:31 - *******Description***********"]
    #[inline(always)]
    pub fn slchost_state3(&self) -> SLCHOST_STATE3_R {
        SLCHOST_STATE3_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_W0")
            .field("slchost_state0", &self.slchost_state0())
            .field("slchost_state1", &self.slchost_state1())
            .field("slchost_state2", &self.slchost_state2())
            .field("slchost_state3", &self.slchost_state3())
            .finish()
    }
}
#[doc = "*******Description***********\n\nYou can [`read`](crate::Reg::read) this register and get [`state_w0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STATE_W0_SPEC;
impl crate::RegisterSpec for STATE_W0_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`state_w0::R`](R) reader structure"]
impl crate::Readable for STATE_W0_SPEC {}
#[doc = "`reset()` method sets STATE_W0 to value 0"]
impl crate::Resettable for STATE_W0_SPEC {
    const RESET_VALUE: u32 = 0;
}