efm32gg11b/usb/
daint.rs

1#[doc = "Reader of register DAINT"]
2pub type R = crate::R<u32, super::DAINT>;
3#[doc = "Reader of field `INEPINT0`"]
4pub type INEPINT0_R = crate::R<bool, bool>;
5#[doc = "Reader of field `INEPINT1`"]
6pub type INEPINT1_R = crate::R<bool, bool>;
7#[doc = "Reader of field `INEPINT2`"]
8pub type INEPINT2_R = crate::R<bool, bool>;
9#[doc = "Reader of field `INEPINT3`"]
10pub type INEPINT3_R = crate::R<bool, bool>;
11#[doc = "Reader of field `INEPINT4`"]
12pub type INEPINT4_R = crate::R<bool, bool>;
13#[doc = "Reader of field `INEPINT5`"]
14pub type INEPINT5_R = crate::R<bool, bool>;
15#[doc = "Reader of field `INEPINT6`"]
16pub type INEPINT6_R = crate::R<bool, bool>;
17#[doc = "Reader of field `OUTEPINT0`"]
18pub type OUTEPINT0_R = crate::R<bool, bool>;
19#[doc = "Reader of field `OUTEPINT1`"]
20pub type OUTEPINT1_R = crate::R<bool, bool>;
21#[doc = "Reader of field `OUTEPINT2`"]
22pub type OUTEPINT2_R = crate::R<bool, bool>;
23#[doc = "Reader of field `OUTEPINT3`"]
24pub type OUTEPINT3_R = crate::R<bool, bool>;
25#[doc = "Reader of field `OUTEPINT4`"]
26pub type OUTEPINT4_R = crate::R<bool, bool>;
27#[doc = "Reader of field `OUTEPINT5`"]
28pub type OUTEPINT5_R = crate::R<bool, bool>;
29#[doc = "Reader of field `OUTEPINT6`"]
30pub type OUTEPINT6_R = crate::R<bool, bool>;
31impl R {
32    #[doc = "Bit 0 - IN Endpoint 0 Interrupt Bit"]
33    #[inline(always)]
34    pub fn inepint0(&self) -> INEPINT0_R { INEPINT0_R::new((self.bits & 0x01) != 0) }
35    #[doc = "Bit 1 - IN Endpoint 1 Interrupt Bit"]
36    #[inline(always)]
37    pub fn inepint1(&self) -> INEPINT1_R { INEPINT1_R::new(((self.bits >> 1) & 0x01) != 0) }
38    #[doc = "Bit 2 - IN Endpoint 2 Interrupt Bit"]
39    #[inline(always)]
40    pub fn inepint2(&self) -> INEPINT2_R { INEPINT2_R::new(((self.bits >> 2) & 0x01) != 0) }
41    #[doc = "Bit 3 - IN Endpoint 3 Interrupt Bit"]
42    #[inline(always)]
43    pub fn inepint3(&self) -> INEPINT3_R { INEPINT3_R::new(((self.bits >> 3) & 0x01) != 0) }
44    #[doc = "Bit 4 - IN Endpoint 4 Interrupt Bit"]
45    #[inline(always)]
46    pub fn inepint4(&self) -> INEPINT4_R { INEPINT4_R::new(((self.bits >> 4) & 0x01) != 0) }
47    #[doc = "Bit 5 - IN Endpoint 5 Interrupt Bit"]
48    #[inline(always)]
49    pub fn inepint5(&self) -> INEPINT5_R { INEPINT5_R::new(((self.bits >> 5) & 0x01) != 0) }
50    #[doc = "Bit 6 - IN Endpoint 6 Interrupt Bit"]
51    #[inline(always)]
52    pub fn inepint6(&self) -> INEPINT6_R { INEPINT6_R::new(((self.bits >> 6) & 0x01) != 0) }
53    #[doc = "Bit 16 - OUT Endpoint 0 Interrupt Bit"]
54    #[inline(always)]
55    pub fn outepint0(&self) -> OUTEPINT0_R { OUTEPINT0_R::new(((self.bits >> 16) & 0x01) != 0) }
56    #[doc = "Bit 17 - OUT Endpoint 1 Interrupt Bit"]
57    #[inline(always)]
58    pub fn outepint1(&self) -> OUTEPINT1_R { OUTEPINT1_R::new(((self.bits >> 17) & 0x01) != 0) }
59    #[doc = "Bit 18 - OUT Endpoint 2 Interrupt Bit"]
60    #[inline(always)]
61    pub fn outepint2(&self) -> OUTEPINT2_R { OUTEPINT2_R::new(((self.bits >> 18) & 0x01) != 0) }
62    #[doc = "Bit 19 - OUT Endpoint 3 Interrupt Bit"]
63    #[inline(always)]
64    pub fn outepint3(&self) -> OUTEPINT3_R { OUTEPINT3_R::new(((self.bits >> 19) & 0x01) != 0) }
65    #[doc = "Bit 20 - OUT Endpoint 4 Interrupt Bit"]
66    #[inline(always)]
67    pub fn outepint4(&self) -> OUTEPINT4_R { OUTEPINT4_R::new(((self.bits >> 20) & 0x01) != 0) }
68    #[doc = "Bit 21 - OUT Endpoint 5 Interrupt Bit"]
69    #[inline(always)]
70    pub fn outepint5(&self) -> OUTEPINT5_R { OUTEPINT5_R::new(((self.bits >> 21) & 0x01) != 0) }
71    #[doc = "Bit 22 - OUT Endpoint 6 Interrupt Bit"]
72    #[inline(always)]
73    pub fn outepint6(&self) -> OUTEPINT6_R { OUTEPINT6_R::new(((self.bits >> 22) & 0x01) != 0) }
74}