xmc4500/eth0/
rxudp_good_octets.rs

1#[doc = "Register `RXUDP_GOOD_OCTETS` reader"]
2pub type R = crate::R<RXUDP_GOOD_OCTETS_SPEC>;
3#[doc = "Field `RXUDPGDOCT` reader - This field indicates the number of bytes received in a good UDP segment. This counter does not count IP header bytes. The Ethernet header, FCS, pad, or IP pad bytes are not included in this counter."]
4pub type RXUDPGDOCT_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - This field indicates the number of bytes received in a good UDP segment. This counter does not count IP header bytes. The Ethernet header, FCS, pad, or IP pad bytes are not included in this counter."]
7    #[inline(always)]
8    pub fn rxudpgdoct(&self) -> RXUDPGDOCT_R {
9        RXUDPGDOCT_R::new(self.bits)
10    }
11}
12#[doc = "Receive UDP Good Octets Register\n\nYou can [`read`](crate::Reg::read) this register and get [`rxudp_good_octets::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct RXUDP_GOOD_OCTETS_SPEC;
14impl crate::RegisterSpec for RXUDP_GOOD_OCTETS_SPEC {
15    type Ux = u32;
16}
17#[doc = "`read()` method returns [`rxudp_good_octets::R`](R) reader structure"]
18impl crate::Readable for RXUDP_GOOD_OCTETS_SPEC {}
19#[doc = "`reset()` method sets RXUDP_GOOD_OCTETS to value 0"]
20impl crate::Resettable for RXUDP_GOOD_OCTETS_SPEC {
21    const RESET_VALUE: u32 = 0;
22}