atsamd21j18a/dmac/
pendch.rs1#[doc = "Reader of register PENDCH"]
2pub type R = crate::R<u32, super::PENDCH>;
3#[doc = "Reader of field `PENDCH0`"]
4pub type PENDCH0_R = crate::R<bool, bool>;
5#[doc = "Reader of field `PENDCH1`"]
6pub type PENDCH1_R = crate::R<bool, bool>;
7#[doc = "Reader of field `PENDCH2`"]
8pub type PENDCH2_R = crate::R<bool, bool>;
9#[doc = "Reader of field `PENDCH3`"]
10pub type PENDCH3_R = crate::R<bool, bool>;
11#[doc = "Reader of field `PENDCH4`"]
12pub type PENDCH4_R = crate::R<bool, bool>;
13#[doc = "Reader of field `PENDCH5`"]
14pub type PENDCH5_R = crate::R<bool, bool>;
15#[doc = "Reader of field `PENDCH6`"]
16pub type PENDCH6_R = crate::R<bool, bool>;
17#[doc = "Reader of field `PENDCH7`"]
18pub type PENDCH7_R = crate::R<bool, bool>;
19#[doc = "Reader of field `PENDCH8`"]
20pub type PENDCH8_R = crate::R<bool, bool>;
21#[doc = "Reader of field `PENDCH9`"]
22pub type PENDCH9_R = crate::R<bool, bool>;
23#[doc = "Reader of field `PENDCH10`"]
24pub type PENDCH10_R = crate::R<bool, bool>;
25#[doc = "Reader of field `PENDCH11`"]
26pub type PENDCH11_R = crate::R<bool, bool>;
27impl R {
28    #[doc = "Bit 0 - Pending Channel 0"]
29    #[inline(always)]
30    pub fn pendch0(&self) -> PENDCH0_R {
31        PENDCH0_R::new((self.bits & 0x01) != 0)
32    }
33    #[doc = "Bit 1 - Pending Channel 1"]
34    #[inline(always)]
35    pub fn pendch1(&self) -> PENDCH1_R {
36        PENDCH1_R::new(((self.bits >> 1) & 0x01) != 0)
37    }
38    #[doc = "Bit 2 - Pending Channel 2"]
39    #[inline(always)]
40    pub fn pendch2(&self) -> PENDCH2_R {
41        PENDCH2_R::new(((self.bits >> 2) & 0x01) != 0)
42    }
43    #[doc = "Bit 3 - Pending Channel 3"]
44    #[inline(always)]
45    pub fn pendch3(&self) -> PENDCH3_R {
46        PENDCH3_R::new(((self.bits >> 3) & 0x01) != 0)
47    }
48    #[doc = "Bit 4 - Pending Channel 4"]
49    #[inline(always)]
50    pub fn pendch4(&self) -> PENDCH4_R {
51        PENDCH4_R::new(((self.bits >> 4) & 0x01) != 0)
52    }
53    #[doc = "Bit 5 - Pending Channel 5"]
54    #[inline(always)]
55    pub fn pendch5(&self) -> PENDCH5_R {
56        PENDCH5_R::new(((self.bits >> 5) & 0x01) != 0)
57    }
58    #[doc = "Bit 6 - Pending Channel 6"]
59    #[inline(always)]
60    pub fn pendch6(&self) -> PENDCH6_R {
61        PENDCH6_R::new(((self.bits >> 6) & 0x01) != 0)
62    }
63    #[doc = "Bit 7 - Pending Channel 7"]
64    #[inline(always)]
65    pub fn pendch7(&self) -> PENDCH7_R {
66        PENDCH7_R::new(((self.bits >> 7) & 0x01) != 0)
67    }
68    #[doc = "Bit 8 - Pending Channel 8"]
69    #[inline(always)]
70    pub fn pendch8(&self) -> PENDCH8_R {
71        PENDCH8_R::new(((self.bits >> 8) & 0x01) != 0)
72    }
73    #[doc = "Bit 9 - Pending Channel 9"]
74    #[inline(always)]
75    pub fn pendch9(&self) -> PENDCH9_R {
76        PENDCH9_R::new(((self.bits >> 9) & 0x01) != 0)
77    }
78    #[doc = "Bit 10 - Pending Channel 10"]
79    #[inline(always)]
80    pub fn pendch10(&self) -> PENDCH10_R {
81        PENDCH10_R::new(((self.bits >> 10) & 0x01) != 0)
82    }
83    #[doc = "Bit 11 - Pending Channel 11"]
84    #[inline(always)]
85    pub fn pendch11(&self) -> PENDCH11_R {
86        PENDCH11_R::new(((self.bits >> 11) & 0x01) != 0)
87    }
88}