esp32/slchost/
host_slchost_pkt_len2.rs

1#[doc = "Register `HOST_SLCHOST_PKT_LEN2` reader"]
2pub type R = crate::R<HOST_SLCHOST_PKT_LEN2_SPEC>;
3#[doc = "Field `HOST_HOSTSLC0_LEN2` reader - "]
4pub type HOST_HOSTSLC0_LEN2_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:19"]
7    #[inline(always)]
8    pub fn host_hostslc0_len2(&self) -> HOST_HOSTSLC0_LEN2_R {
9        HOST_HOSTSLC0_LEN2_R::new(self.bits & 0x000f_ffff)
10    }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("HOST_SLCHOST_PKT_LEN2")
16            .field("host_hostslc0_len2", &self.host_hostslc0_len2())
17            .finish()
18    }
19}
20#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`host_slchost_pkt_len2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct HOST_SLCHOST_PKT_LEN2_SPEC;
22impl crate::RegisterSpec for HOST_SLCHOST_PKT_LEN2_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`host_slchost_pkt_len2::R`](R) reader structure"]
26impl crate::Readable for HOST_SLCHOST_PKT_LEN2_SPEC {}
27#[doc = "`reset()` method sets HOST_SLCHOST_PKT_LEN2 to value 0"]
28impl crate::Resettable for HOST_SLCHOST_PKT_LEN2_SPEC {
29    const RESET_VALUE: u32 = 0;
30}