xmc4300/ecat0/
fwd_rx_err_count1.rs

1#[doc = "Register `FWD_RX_ERR_COUNT1` reader"]
2pub type R = crate::R<FWD_RX_ERR_COUNT1_SPEC>;
3#[doc = "Field `FORW_ERROR` reader - Forwarded error counter of Port y"]
4pub type FORW_ERROR_R = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:7 - Forwarded error counter of Port y"]
7    #[inline(always)]
8    pub fn forw_error(&self) -> FORW_ERROR_R {
9        FORW_ERROR_R::new(self.bits)
10    }
11}
12#[doc = "Forwarded RX Error Counter Port 1\n\nYou can [`read`](crate::Reg::read) this register and get [`fwd_rx_err_count1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct FWD_RX_ERR_COUNT1_SPEC;
14impl crate::RegisterSpec for FWD_RX_ERR_COUNT1_SPEC {
15    type Ux = u8;
16}
17#[doc = "`read()` method returns [`fwd_rx_err_count1::R`](R) reader structure"]
18impl crate::Readable for FWD_RX_ERR_COUNT1_SPEC {}
19#[doc = "`reset()` method sets FWD_RX_ERR_COUNT1 to value 0"]
20impl crate::Resettable for FWD_RX_ERR_COUNT1_SPEC {
21    const RESET_VALUE: u8 = 0;
22}