atsamd11c/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;
15impl R {
16    #[doc = "Bit 0 - Pending Channel 0"]
17    #[inline(always)]
18    pub fn pendch0(&self) -> Pendch0R {
19        Pendch0R::new((self.bits & 1) != 0)
20    }
21    #[doc = "Bit 1 - Pending Channel 1"]
22    #[inline(always)]
23    pub fn pendch1(&self) -> Pendch1R {
24        Pendch1R::new(((self.bits >> 1) & 1) != 0)
25    }
26    #[doc = "Bit 2 - Pending Channel 2"]
27    #[inline(always)]
28    pub fn pendch2(&self) -> Pendch2R {
29        Pendch2R::new(((self.bits >> 2) & 1) != 0)
30    }
31    #[doc = "Bit 3 - Pending Channel 3"]
32    #[inline(always)]
33    pub fn pendch3(&self) -> Pendch3R {
34        Pendch3R::new(((self.bits >> 3) & 1) != 0)
35    }
36    #[doc = "Bit 4 - Pending Channel 4"]
37    #[inline(always)]
38    pub fn pendch4(&self) -> Pendch4R {
39        Pendch4R::new(((self.bits >> 4) & 1) != 0)
40    }
41    #[doc = "Bit 5 - Pending Channel 5"]
42    #[inline(always)]
43    pub fn pendch5(&self) -> Pendch5R {
44        Pendch5R::new(((self.bits >> 5) & 1) != 0)
45    }
46}
47#[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)."]
48pub struct PendchSpec;
49impl crate::RegisterSpec for PendchSpec {
50    type Ux = u32;
51}
52#[doc = "`read()` method returns [`pendch::R`](R) reader structure"]
53impl crate::Readable for PendchSpec {}
54#[doc = "`reset()` method sets PENDCH to value 0"]
55impl crate::Resettable for PendchSpec {
56    const RESET_VALUE: u32 = 0;
57}