atsamd21g/dmac/
pendch.rs
1#[doc = "Register `PENDCH` reader"]
2pub type R = crate::R<PendchSpec>;
3#[doc = "Field `PENDCH0` reader - Pending Channel 0"]
4pub type Pendch0R = crate::BitReader;
5#[doc = "Field `PENDCH1` reader - Pending Channel 1"]
6pub type Pendch1R = crate::BitReader;
7#[doc = "Field `PENDCH2` reader - Pending Channel 2"]
8pub type Pendch2R = crate::BitReader;
9#[doc = "Field `PENDCH3` reader - Pending Channel 3"]
10pub type Pendch3R = crate::BitReader;
11#[doc = "Field `PENDCH4` reader - Pending Channel 4"]
12pub type Pendch4R = crate::BitReader;
13#[doc = "Field `PENDCH5` reader - Pending Channel 5"]
14pub type Pendch5R = crate::BitReader;
15#[doc = "Field `PENDCH6` reader - Pending Channel 6"]
16pub type Pendch6R = crate::BitReader;
17#[doc = "Field `PENDCH7` reader - Pending Channel 7"]
18pub type Pendch7R = crate::BitReader;
19#[doc = "Field `PENDCH8` reader - Pending Channel 8"]
20pub type Pendch8R = crate::BitReader;
21#[doc = "Field `PENDCH9` reader - Pending Channel 9"]
22pub type Pendch9R = crate::BitReader;
23#[doc = "Field `PENDCH10` reader - Pending Channel 10"]
24pub type Pendch10R = crate::BitReader;
25#[doc = "Field `PENDCH11` reader - Pending Channel 11"]
26pub type Pendch11R = crate::BitReader;
27impl R {
28 #[doc = "Bit 0 - Pending Channel 0"]
29 #[inline(always)]
30 pub fn pendch0(&self) -> Pendch0R {
31 Pendch0R::new((self.bits & 1) != 0)
32 }
33 #[doc = "Bit 1 - Pending Channel 1"]
34 #[inline(always)]
35 pub fn pendch1(&self) -> Pendch1R {
36 Pendch1R::new(((self.bits >> 1) & 1) != 0)
37 }
38 #[doc = "Bit 2 - Pending Channel 2"]
39 #[inline(always)]
40 pub fn pendch2(&self) -> Pendch2R {
41 Pendch2R::new(((self.bits >> 2) & 1) != 0)
42 }
43 #[doc = "Bit 3 - Pending Channel 3"]
44 #[inline(always)]
45 pub fn pendch3(&self) -> Pendch3R {
46 Pendch3R::new(((self.bits >> 3) & 1) != 0)
47 }
48 #[doc = "Bit 4 - Pending Channel 4"]
49 #[inline(always)]
50 pub fn pendch4(&self) -> Pendch4R {
51 Pendch4R::new(((self.bits >> 4) & 1) != 0)
52 }
53 #[doc = "Bit 5 - Pending Channel 5"]
54 #[inline(always)]
55 pub fn pendch5(&self) -> Pendch5R {
56 Pendch5R::new(((self.bits >> 5) & 1) != 0)
57 }
58 #[doc = "Bit 6 - Pending Channel 6"]
59 #[inline(always)]
60 pub fn pendch6(&self) -> Pendch6R {
61 Pendch6R::new(((self.bits >> 6) & 1) != 0)
62 }
63 #[doc = "Bit 7 - Pending Channel 7"]
64 #[inline(always)]
65 pub fn pendch7(&self) -> Pendch7R {
66 Pendch7R::new(((self.bits >> 7) & 1) != 0)
67 }
68 #[doc = "Bit 8 - Pending Channel 8"]
69 #[inline(always)]
70 pub fn pendch8(&self) -> Pendch8R {
71 Pendch8R::new(((self.bits >> 8) & 1) != 0)
72 }
73 #[doc = "Bit 9 - Pending Channel 9"]
74 #[inline(always)]
75 pub fn pendch9(&self) -> Pendch9R {
76 Pendch9R::new(((self.bits >> 9) & 1) != 0)
77 }
78 #[doc = "Bit 10 - Pending Channel 10"]
79 #[inline(always)]
80 pub fn pendch10(&self) -> Pendch10R {
81 Pendch10R::new(((self.bits >> 10) & 1) != 0)
82 }
83 #[doc = "Bit 11 - Pending Channel 11"]
84 #[inline(always)]
85 pub fn pendch11(&self) -> Pendch11R {
86 Pendch11R::new(((self.bits >> 11) & 1) != 0)
87 }
88}
89#[doc = "Pending Channels\n\nYou can [`read`](crate::Reg::read) this register and get [`pendch::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
90pub struct PendchSpec;
91impl crate::RegisterSpec for PendchSpec {
92 type Ux = u32;
93}
94#[doc = "`read()` method returns [`pendch::R`](R) reader structure"]
95impl crate::Readable for PendchSpec {}
96#[doc = "`reset()` method sets PENDCH to value 0"]
97impl crate::Resettable for PendchSpec {
98 const RESET_VALUE: u32 = 0;
99}