atsamd11d/dmac/
intstatus.rs

1#[doc = "Register `INTSTATUS` reader"]
2pub type R = crate::R<IntstatusSpec>;
3#[doc = "Field `CHINT0` reader - Channel 0 Pending Interrupt"]
4pub type Chint0R = crate::BitReader;
5#[doc = "Field `CHINT1` reader - Channel 1 Pending Interrupt"]
6pub type Chint1R = crate::BitReader;
7#[doc = "Field `CHINT2` reader - Channel 2 Pending Interrupt"]
8pub type Chint2R = crate::BitReader;
9#[doc = "Field `CHINT3` reader - Channel 3 Pending Interrupt"]
10pub type Chint3R = crate::BitReader;
11#[doc = "Field `CHINT4` reader - Channel 4 Pending Interrupt"]
12pub type Chint4R = crate::BitReader;
13#[doc = "Field `CHINT5` reader - Channel 5 Pending Interrupt"]
14pub type Chint5R = crate::BitReader;
15impl R {
16    #[doc = "Bit 0 - Channel 0 Pending Interrupt"]
17    #[inline(always)]
18    pub fn chint0(&self) -> Chint0R {
19        Chint0R::new((self.bits & 1) != 0)
20    }
21    #[doc = "Bit 1 - Channel 1 Pending Interrupt"]
22    #[inline(always)]
23    pub fn chint1(&self) -> Chint1R {
24        Chint1R::new(((self.bits >> 1) & 1) != 0)
25    }
26    #[doc = "Bit 2 - Channel 2 Pending Interrupt"]
27    #[inline(always)]
28    pub fn chint2(&self) -> Chint2R {
29        Chint2R::new(((self.bits >> 2) & 1) != 0)
30    }
31    #[doc = "Bit 3 - Channel 3 Pending Interrupt"]
32    #[inline(always)]
33    pub fn chint3(&self) -> Chint3R {
34        Chint3R::new(((self.bits >> 3) & 1) != 0)
35    }
36    #[doc = "Bit 4 - Channel 4 Pending Interrupt"]
37    #[inline(always)]
38    pub fn chint4(&self) -> Chint4R {
39        Chint4R::new(((self.bits >> 4) & 1) != 0)
40    }
41    #[doc = "Bit 5 - Channel 5 Pending Interrupt"]
42    #[inline(always)]
43    pub fn chint5(&self) -> Chint5R {
44        Chint5R::new(((self.bits >> 5) & 1) != 0)
45    }
46}
47#[doc = "Interrupt Status\n\nYou can [`read`](crate::Reg::read) this register and get [`intstatus::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
48pub struct IntstatusSpec;
49impl crate::RegisterSpec for IntstatusSpec {
50    type Ux = u32;
51}
52#[doc = "`read()` method returns [`intstatus::R`](R) reader structure"]
53impl crate::Readable for IntstatusSpec {}
54#[doc = "`reset()` method sets INTSTATUS to value 0"]
55impl crate::Resettable for IntstatusSpec {
56    const RESET_VALUE: u32 = 0;
57}