esp32c6/slchost/
state_w1.rs

1#[doc = "Register `STATE_W1` reader"]
2pub type R = crate::R<STATE_W1_SPEC>;
3#[doc = "Field `SLCHOST_STATE4` reader - *******Description***********"]
4pub type SLCHOST_STATE4_R = crate::FieldReader;
5#[doc = "Field `SLCHOST_STATE5` reader - *******Description***********"]
6pub type SLCHOST_STATE5_R = crate::FieldReader;
7#[doc = "Field `SLCHOST_STATE6` reader - *******Description***********"]
8pub type SLCHOST_STATE6_R = crate::FieldReader;
9#[doc = "Field `SLCHOST_STATE7` reader - *******Description***********"]
10pub type SLCHOST_STATE7_R = crate::FieldReader;
11impl R {
12    #[doc = "Bits 0:7 - *******Description***********"]
13    #[inline(always)]
14    pub fn slchost_state4(&self) -> SLCHOST_STATE4_R {
15        SLCHOST_STATE4_R::new((self.bits & 0xff) as u8)
16    }
17    #[doc = "Bits 8:15 - *******Description***********"]
18    #[inline(always)]
19    pub fn slchost_state5(&self) -> SLCHOST_STATE5_R {
20        SLCHOST_STATE5_R::new(((self.bits >> 8) & 0xff) as u8)
21    }
22    #[doc = "Bits 16:23 - *******Description***********"]
23    #[inline(always)]
24    pub fn slchost_state6(&self) -> SLCHOST_STATE6_R {
25        SLCHOST_STATE6_R::new(((self.bits >> 16) & 0xff) as u8)
26    }
27    #[doc = "Bits 24:31 - *******Description***********"]
28    #[inline(always)]
29    pub fn slchost_state7(&self) -> SLCHOST_STATE7_R {
30        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("STATE_W1")
37            .field("slchost_state4", &self.slchost_state4())
38            .field("slchost_state5", &self.slchost_state5())
39            .field("slchost_state6", &self.slchost_state6())
40            .field("slchost_state7", &self.slchost_state7())
41            .finish()
42    }
43}
44#[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)."]
45pub struct STATE_W1_SPEC;
46impl crate::RegisterSpec for STATE_W1_SPEC {
47    type Ux = u32;
48}
49#[doc = "`read()` method returns [`state_w1::R`](R) reader structure"]
50impl crate::Readable for STATE_W1_SPEC {}
51#[doc = "`reset()` method sets STATE_W1 to value 0"]
52impl crate::Resettable for STATE_W1_SPEC {
53    const RESET_VALUE: u32 = 0;
54}