saml10e16a/evsys/
intstatus.rs1#[doc = "Reader of register INTSTATUS"]
2pub type R = crate::R<u32, super::INTSTATUS>;
3#[doc = "Reader of field `CHINT0`"]
4pub type CHINT0_R = crate::R<bool, bool>;
5#[doc = "Reader of field `CHINT1`"]
6pub type CHINT1_R = crate::R<bool, bool>;
7#[doc = "Reader of field `CHINT2`"]
8pub type CHINT2_R = crate::R<bool, bool>;
9#[doc = "Reader of field `CHINT3`"]
10pub type CHINT3_R = crate::R<bool, bool>;
11impl R {
12 #[doc = "Bit 0 - Channel 0 Pending Interrupt"]
13 #[inline(always)]
14 pub fn chint0(&self) -> CHINT0_R {
15 CHINT0_R::new((self.bits & 0x01) != 0)
16 }
17 #[doc = "Bit 1 - Channel 1 Pending Interrupt"]
18 #[inline(always)]
19 pub fn chint1(&self) -> CHINT1_R {
20 CHINT1_R::new(((self.bits >> 1) & 0x01) != 0)
21 }
22 #[doc = "Bit 2 - Channel 2 Pending Interrupt"]
23 #[inline(always)]
24 pub fn chint2(&self) -> CHINT2_R {
25 CHINT2_R::new(((self.bits >> 2) & 0x01) != 0)
26 }
27 #[doc = "Bit 3 - Channel 3 Pending Interrupt"]
28 #[inline(always)]
29 pub fn chint3(&self) -> CHINT3_R {
30 CHINT3_R::new(((self.bits >> 3) & 0x01) != 0)
31 }
32}