cyt4dn_b/m0/eth0/
rx_tcp_ck_errors.rs

1#[doc = "Register `RX_TCP_CK_ERRORS` reader"]
2pub struct R(crate::R<RX_TCP_CK_ERRORS_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<RX_TCP_CK_ERRORS_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<RX_TCP_CK_ERRORS_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<RX_TCP_CK_ERRORS_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `COUNT_TCPCK_ERR` reader - TCP checksum errors - an 8-bit register counting the number of frames discarded due to an incorrect TCP checksum, but are between 64 and 1518 bytes (1536 bytes if bit 8 is set in the network configuration register or 10240 bytes if bit 3 is in the network configuration register) and do not have a CRC error, an alignment error, nor a symbol error."]
17pub type COUNT_TCPCK_ERR_R = crate::FieldReader<u8, u8>;
18impl R {
19    #[doc = "Bits 0:7 - TCP checksum errors - an 8-bit register counting the number of frames discarded due to an incorrect TCP checksum, but are between 64 and 1518 bytes (1536 bytes if bit 8 is set in the network configuration register or 10240 bytes if bit 3 is in the network configuration register) and do not have a CRC error, an alignment error, nor a symbol error."]
20    #[inline(always)]
21    pub fn count_tcpck_err(&self) -> COUNT_TCPCK_ERR_R {
22        COUNT_TCPCK_ERR_R::new((self.bits & 0xff) as u8)
23    }
24}
25#[doc = "TCP Checksum Errors\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 [rx_tcp_ck_errors](index.html) module"]
26pub struct RX_TCP_CK_ERRORS_SPEC;
27impl crate::RegisterSpec for RX_TCP_CK_ERRORS_SPEC {
28    type Ux = u32;
29}
30#[doc = "`read()` method returns [rx_tcp_ck_errors::R](R) reader structure"]
31impl crate::Readable for RX_TCP_CK_ERRORS_SPEC {
32    type Reader = R;
33}
34#[doc = "`reset()` method sets RX_TCP_CK_ERRORS to value 0"]
35impl crate::Resettable for RX_TCP_CK_ERRORS_SPEC {
36    const RESET_VALUE: Self::Ux = 0;
37}