atsamd11d/usb/device/
epintsmry.rs
1#[doc = "Register `EPINTSMRY` reader"]
2pub type R = crate::R<EpintsmrySpec>;
3#[doc = "Field `EPINT0` reader - End Point 0 Interrupt"]
4pub type Epint0R = crate::BitReader;
5#[doc = "Field `EPINT1` reader - End Point 1 Interrupt"]
6pub type Epint1R = crate::BitReader;
7#[doc = "Field `EPINT2` reader - End Point 2 Interrupt"]
8pub type Epint2R = crate::BitReader;
9#[doc = "Field `EPINT3` reader - End Point 3 Interrupt"]
10pub type Epint3R = crate::BitReader;
11#[doc = "Field `EPINT4` reader - End Point 4 Interrupt"]
12pub type Epint4R = crate::BitReader;
13#[doc = "Field `EPINT5` reader - End Point 5 Interrupt"]
14pub type Epint5R = crate::BitReader;
15#[doc = "Field `EPINT6` reader - End Point 6 Interrupt"]
16pub type Epint6R = crate::BitReader;
17#[doc = "Field `EPINT7` reader - End Point 7 Interrupt"]
18pub type Epint7R = crate::BitReader;
19impl R {
20 #[doc = "Bit 0 - End Point 0 Interrupt"]
21 #[inline(always)]
22 pub fn epint0(&self) -> Epint0R {
23 Epint0R::new((self.bits & 1) != 0)
24 }
25 #[doc = "Bit 1 - End Point 1 Interrupt"]
26 #[inline(always)]
27 pub fn epint1(&self) -> Epint1R {
28 Epint1R::new(((self.bits >> 1) & 1) != 0)
29 }
30 #[doc = "Bit 2 - End Point 2 Interrupt"]
31 #[inline(always)]
32 pub fn epint2(&self) -> Epint2R {
33 Epint2R::new(((self.bits >> 2) & 1) != 0)
34 }
35 #[doc = "Bit 3 - End Point 3 Interrupt"]
36 #[inline(always)]
37 pub fn epint3(&self) -> Epint3R {
38 Epint3R::new(((self.bits >> 3) & 1) != 0)
39 }
40 #[doc = "Bit 4 - End Point 4 Interrupt"]
41 #[inline(always)]
42 pub fn epint4(&self) -> Epint4R {
43 Epint4R::new(((self.bits >> 4) & 1) != 0)
44 }
45 #[doc = "Bit 5 - End Point 5 Interrupt"]
46 #[inline(always)]
47 pub fn epint5(&self) -> Epint5R {
48 Epint5R::new(((self.bits >> 5) & 1) != 0)
49 }
50 #[doc = "Bit 6 - End Point 6 Interrupt"]
51 #[inline(always)]
52 pub fn epint6(&self) -> Epint6R {
53 Epint6R::new(((self.bits >> 6) & 1) != 0)
54 }
55 #[doc = "Bit 7 - End Point 7 Interrupt"]
56 #[inline(always)]
57 pub fn epint7(&self) -> Epint7R {
58 Epint7R::new(((self.bits >> 7) & 1) != 0)
59 }
60}
61#[doc = "DEVICE End Point Interrupt Summary\n\nYou can [`read`](crate::Reg::read) this register and get [`epintsmry::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
62pub struct EpintsmrySpec;
63impl crate::RegisterSpec for EpintsmrySpec {
64 type Ux = u16;
65}
66#[doc = "`read()` method returns [`epintsmry::R`](R) reader structure"]
67impl crate::Readable for EpintsmrySpec {}
68#[doc = "`reset()` method sets EPINTSMRY to value 0"]
69impl crate::Resettable for EpintsmrySpec {
70 const RESET_VALUE: u16 = 0;
71}