#[doc = "Register `TCE` reader"]
pub struct R(crate::R<TCE_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<TCE_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<TCE_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<TCE_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `TCKER` reader - TCP Checksum Errors"]
pub type TCKER_R = crate::FieldReader<u8, u8>;
impl R {
#[doc = "Bits 0:7 - TCP Checksum Errors"]
#[inline(always)]
pub fn tcker(&self) -> TCKER_R {
TCKER_R::new((self.bits & 0xff) as u8)
}
}
#[doc = "TCP Checksum Errors Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tce](index.html) module"]
pub struct TCE_SPEC;
impl crate::RegisterSpec for TCE_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [tce::R](R) reader structure"]
impl crate::Readable for TCE_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets TCE to value 0"]
impl crate::Resettable for TCE_SPEC {
const RESET_VALUE: Self::Ux = 0;
}