#[doc = "Register `PKT_LEN` reader"]
pub type R = crate::R<PKT_LEN_SPEC>;
#[doc = "Field `HOSTSLCHOST_SLC0_LEN` reader - *******Description***********"]
pub type HOSTSLCHOST_SLC0_LEN_R = crate::FieldReader<u32>;
#[doc = "Field `HOSTSLCHOST_SLC0_LEN_CHECK` reader - *******Description***********"]
pub type HOSTSLCHOST_SLC0_LEN_CHECK_R = crate::FieldReader<u16>;
impl R {
#[doc = "Bits 0:19 - *******Description***********"]
#[inline(always)]
pub fn hostslchost_slc0_len(&self) -> HOSTSLCHOST_SLC0_LEN_R {
HOSTSLCHOST_SLC0_LEN_R::new(self.bits & 0x000f_ffff)
}
#[doc = "Bits 20:31 - *******Description***********"]
#[inline(always)]
pub fn hostslchost_slc0_len_check(&self) -> HOSTSLCHOST_SLC0_LEN_CHECK_R {
HOSTSLCHOST_SLC0_LEN_CHECK_R::new(((self.bits >> 20) & 0x0fff) as u16)
}
}
#[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("PKT_LEN")
.field("hostslchost_slc0_len", &self.hostslchost_slc0_len())
.field(
"hostslchost_slc0_len_check",
&self.hostslchost_slc0_len_check(),
)
.finish()
}
}
#[doc = "*******Description***********\n\nYou can [`read`](crate::Reg::read) this register and get [`pkt_len::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PKT_LEN_SPEC;
impl crate::RegisterSpec for PKT_LEN_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`pkt_len::R`](R) reader structure"]
impl crate::Readable for PKT_LEN_SPEC {}
#[doc = "`reset()` method sets PKT_LEN to value 0"]
impl crate::Resettable for PKT_LEN_SPEC {
const RESET_VALUE: u32 = 0;
}