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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#[doc = "Register `EPINTSMRY` reader"]
pub type R = crate::R<EPINTSMRY_SPEC>;
#[doc = "Field `EPINT0` reader - End Point 0 Interrupt"]
pub type EPINT0_R = crate::BitReader;
#[doc = "Field `EPINT1` reader - End Point 1 Interrupt"]
pub type EPINT1_R = crate::BitReader;
#[doc = "Field `EPINT2` reader - End Point 2 Interrupt"]
pub type EPINT2_R = crate::BitReader;
#[doc = "Field `EPINT3` reader - End Point 3 Interrupt"]
pub type EPINT3_R = crate::BitReader;
#[doc = "Field `EPINT4` reader - End Point 4 Interrupt"]
pub type EPINT4_R = crate::BitReader;
#[doc = "Field `EPINT5` reader - End Point 5 Interrupt"]
pub type EPINT5_R = crate::BitReader;
#[doc = "Field `EPINT6` reader - End Point 6 Interrupt"]
pub type EPINT6_R = crate::BitReader;
#[doc = "Field `EPINT7` reader - End Point 7 Interrupt"]
pub type EPINT7_R = crate::BitReader;
impl R {
    #[doc = "Bit 0 - End Point 0 Interrupt"]
    #[inline(always)]
    pub fn epint0(&self) -> EPINT0_R {
        EPINT0_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - End Point 1 Interrupt"]
    #[inline(always)]
    pub fn epint1(&self) -> EPINT1_R {
        EPINT1_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - End Point 2 Interrupt"]
    #[inline(always)]
    pub fn epint2(&self) -> EPINT2_R {
        EPINT2_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - End Point 3 Interrupt"]
    #[inline(always)]
    pub fn epint3(&self) -> EPINT3_R {
        EPINT3_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - End Point 4 Interrupt"]
    #[inline(always)]
    pub fn epint4(&self) -> EPINT4_R {
        EPINT4_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - End Point 5 Interrupt"]
    #[inline(always)]
    pub fn epint5(&self) -> EPINT5_R {
        EPINT5_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - End Point 6 Interrupt"]
    #[inline(always)]
    pub fn epint6(&self) -> EPINT6_R {
        EPINT6_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - End Point 7 Interrupt"]
    #[inline(always)]
    pub fn epint7(&self) -> EPINT7_R {
        EPINT7_R::new(((self.bits >> 7) & 1) != 0)
    }
}
#[doc = "DEVICE End Point Interrupt Summary\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`epintsmry::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EPINTSMRY_SPEC;
impl crate::RegisterSpec for EPINTSMRY_SPEC {
    type Ux = u16;
}
#[doc = "`read()` method returns [`epintsmry::R`](R) reader structure"]
impl crate::Readable for EPINTSMRY_SPEC {}
#[doc = "`reset()` method sets EPINTSMRY to value 0"]
impl crate::Resettable for EPINTSMRY_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}