atsamd51n/evsys/
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;
15#[doc = "Field `CHINT6` reader - Channel 6 Pending Interrupt"]
16pub type Chint6R = crate::BitReader;
17#[doc = "Field `CHINT7` reader - Channel 7 Pending Interrupt"]
18pub type Chint7R = crate::BitReader;
19#[doc = "Field `CHINT8` reader - Channel 8 Pending Interrupt"]
20pub type Chint8R = crate::BitReader;
21#[doc = "Field `CHINT9` reader - Channel 9 Pending Interrupt"]
22pub type Chint9R = crate::BitReader;
23#[doc = "Field `CHINT10` reader - Channel 10 Pending Interrupt"]
24pub type Chint10R = crate::BitReader;
25#[doc = "Field `CHINT11` reader - Channel 11 Pending Interrupt"]
26pub type Chint11R = crate::BitReader;
27impl R {
28    #[doc = "Bit 0 - Channel 0 Pending Interrupt"]
29    #[inline(always)]
30    pub fn chint0(&self) -> Chint0R {
31        Chint0R::new((self.bits & 1) != 0)
32    }
33    #[doc = "Bit 1 - Channel 1 Pending Interrupt"]
34    #[inline(always)]
35    pub fn chint1(&self) -> Chint1R {
36        Chint1R::new(((self.bits >> 1) & 1) != 0)
37    }
38    #[doc = "Bit 2 - Channel 2 Pending Interrupt"]
39    #[inline(always)]
40    pub fn chint2(&self) -> Chint2R {
41        Chint2R::new(((self.bits >> 2) & 1) != 0)
42    }
43    #[doc = "Bit 3 - Channel 3 Pending Interrupt"]
44    #[inline(always)]
45    pub fn chint3(&self) -> Chint3R {
46        Chint3R::new(((self.bits >> 3) & 1) != 0)
47    }
48    #[doc = "Bit 4 - Channel 4 Pending Interrupt"]
49    #[inline(always)]
50    pub fn chint4(&self) -> Chint4R {
51        Chint4R::new(((self.bits >> 4) & 1) != 0)
52    }
53    #[doc = "Bit 5 - Channel 5 Pending Interrupt"]
54    #[inline(always)]
55    pub fn chint5(&self) -> Chint5R {
56        Chint5R::new(((self.bits >> 5) & 1) != 0)
57    }
58    #[doc = "Bit 6 - Channel 6 Pending Interrupt"]
59    #[inline(always)]
60    pub fn chint6(&self) -> Chint6R {
61        Chint6R::new(((self.bits >> 6) & 1) != 0)
62    }
63    #[doc = "Bit 7 - Channel 7 Pending Interrupt"]
64    #[inline(always)]
65    pub fn chint7(&self) -> Chint7R {
66        Chint7R::new(((self.bits >> 7) & 1) != 0)
67    }
68    #[doc = "Bit 8 - Channel 8 Pending Interrupt"]
69    #[inline(always)]
70    pub fn chint8(&self) -> Chint8R {
71        Chint8R::new(((self.bits >> 8) & 1) != 0)
72    }
73    #[doc = "Bit 9 - Channel 9 Pending Interrupt"]
74    #[inline(always)]
75    pub fn chint9(&self) -> Chint9R {
76        Chint9R::new(((self.bits >> 9) & 1) != 0)
77    }
78    #[doc = "Bit 10 - Channel 10 Pending Interrupt"]
79    #[inline(always)]
80    pub fn chint10(&self) -> Chint10R {
81        Chint10R::new(((self.bits >> 10) & 1) != 0)
82    }
83    #[doc = "Bit 11 - Channel 11 Pending Interrupt"]
84    #[inline(always)]
85    pub fn chint11(&self) -> Chint11R {
86        Chint11R::new(((self.bits >> 11) & 1) != 0)
87    }
88}
89#[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)."]
90pub struct IntstatusSpec;
91impl crate::RegisterSpec for IntstatusSpec {
92    type Ux = u32;
93}
94#[doc = "`read()` method returns [`intstatus::R`](R) reader structure"]
95impl crate::Readable for IntstatusSpec {}
96#[doc = "`reset()` method sets INTSTATUS to value 0"]
97impl crate::Resettable for IntstatusSpec {
98    const RESET_VALUE: u32 = 0;
99}