1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#[doc = "Register `iommu_l%spg_int` reader"]
pub struct R(crate::R<IOMMU_LPG_INT_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<IOMMU_LPG_INT_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<IOMMU_LPG_INT_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<IOMMU_LPG_INT_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `master_int[0-6]` reader - Master\\[j\\] address switch causes L\\[i\\] page table to occur interrupt"]
pub type MASTER_INT_R = crate::BitReader<bool>;
#[doc = "Field `dbg_mode_int` reader - Debug mode address switch causes L\\[i\\] page table to occur interrupt"]
pub type DBG_MODE_INT_R = crate::BitReader<bool>;
impl R {
    #[doc = "Master\\[j\\] address switch causes L\\[i\\] page table to occur interrupt"]
    #[inline(always)]
    pub unsafe fn master_int(&self, n: u8) -> MASTER_INT_R {
        MASTER_INT_R::new(((self.bits >> n) & 1) != 0)
    }
    #[doc = "Bit 0 - Master\\[j\\] address switch causes L\\[i\\] page table to occur interrupt"]
    #[inline(always)]
    pub fn master0_int(&self) -> MASTER_INT_R {
        MASTER_INT_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Master\\[j\\] address switch causes L\\[i\\] page table to occur interrupt"]
    #[inline(always)]
    pub fn master1_int(&self) -> MASTER_INT_R {
        MASTER_INT_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Master\\[j\\] address switch causes L\\[i\\] page table to occur interrupt"]
    #[inline(always)]
    pub fn master2_int(&self) -> MASTER_INT_R {
        MASTER_INT_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Master\\[j\\] address switch causes L\\[i\\] page table to occur interrupt"]
    #[inline(always)]
    pub fn master3_int(&self) -> MASTER_INT_R {
        MASTER_INT_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Master\\[j\\] address switch causes L\\[i\\] page table to occur interrupt"]
    #[inline(always)]
    pub fn master4_int(&self) -> MASTER_INT_R {
        MASTER_INT_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Master\\[j\\] address switch causes L\\[i\\] page table to occur interrupt"]
    #[inline(always)]
    pub fn master5_int(&self) -> MASTER_INT_R {
        MASTER_INT_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Master\\[j\\] address switch causes L\\[i\\] page table to occur interrupt"]
    #[inline(always)]
    pub fn master6_int(&self) -> MASTER_INT_R {
        MASTER_INT_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 31 - Debug mode address switch causes L\\[i\\] page table to occur interrupt"]
    #[inline(always)]
    pub fn dbg_mode_int(&self) -> DBG_MODE_INT_R {
        DBG_MODE_INT_R::new(((self.bits >> 31) & 1) != 0)
    }
}
#[doc = "IOMMU L\\[i\\] Page Table Interrupt Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [iommu_lpg_int](index.html) module"]
pub struct IOMMU_LPG_INT_SPEC;
impl crate::RegisterSpec for IOMMU_LPG_INT_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [iommu_lpg_int::R](R) reader structure"]
impl crate::Readable for IOMMU_LPG_INT_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets iommu_l%spg_int to value 0"]
impl crate::Resettable for IOMMU_LPG_INT_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}