1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#[doc = "Register `RX_ERR_COUNT1` reader"]
pub type R = crate::R<RX_ERR_COUNT1_SPEC>;
#[doc = "Field `INVALID_FRAME` reader - Invalid frame counter of Port y"]
pub type INVALID_FRAME_R = crate::FieldReader;
#[doc = "Field `RX_ERROR` reader - RX Error counter of Port y"]
pub type RX_ERROR_R = crate::FieldReader;
impl R {
    #[doc = "Bits 0:7 - Invalid frame counter of Port y"]
    #[inline(always)]
    pub fn invalid_frame(&self) -> INVALID_FRAME_R {
        INVALID_FRAME_R::new((self.bits & 0xff) as u8)
    }
    #[doc = "Bits 8:15 - RX Error counter of Port y"]
    #[inline(always)]
    pub fn rx_error(&self) -> RX_ERROR_R {
        RX_ERROR_R::new(((self.bits >> 8) & 0xff) as u8)
    }
}
#[doc = "RX Error Counter Port 1\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rx_err_count1::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RX_ERR_COUNT1_SPEC;
impl crate::RegisterSpec for RX_ERR_COUNT1_SPEC {
    type Ux = u16;
}
#[doc = "`read()` method returns [`rx_err_count1::R`](R) reader structure"]
impl crate::Readable for RX_ERR_COUNT1_SPEC {}
#[doc = "`reset()` method sets RX_ERR_COUNT1 to value 0"]
impl crate::Resettable for RX_ERR_COUNT1_SPEC {
    const RESET_VALUE: u16 = 0;
}