xmc4700/eth0/
interrupt_mask.rs1#[doc = "Register `INTERRUPT_MASK` reader"]
2pub type R = crate::R<INTERRUPT_MASK_SPEC>;
3#[doc = "Register `INTERRUPT_MASK` writer"]
4pub type W = crate::W<INTERRUPT_MASK_SPEC>;
5#[doc = "Field `PMTIM` reader - PMT Interrupt Mask"]
6pub type PMTIM_R = crate::BitReader;
7#[doc = "Field `PMTIM` writer - PMT Interrupt Mask"]
8pub type PMTIM_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TSIM` reader - Timestamp Interrupt Mask"]
10pub type TSIM_R = crate::BitReader;
11#[doc = "Field `TSIM` writer - Timestamp Interrupt Mask"]
12pub type TSIM_W<'a, REG> = crate::BitWriter<'a, REG>;
13impl R {
14 #[doc = "Bit 3 - PMT Interrupt Mask"]
15 #[inline(always)]
16 pub fn pmtim(&self) -> PMTIM_R {
17 PMTIM_R::new(((self.bits >> 3) & 1) != 0)
18 }
19 #[doc = "Bit 9 - Timestamp Interrupt Mask"]
20 #[inline(always)]
21 pub fn tsim(&self) -> TSIM_R {
22 TSIM_R::new(((self.bits >> 9) & 1) != 0)
23 }
24}
25impl W {
26 #[doc = "Bit 3 - PMT Interrupt Mask"]
27 #[inline(always)]
28 pub fn pmtim(&mut self) -> PMTIM_W<INTERRUPT_MASK_SPEC> {
29 PMTIM_W::new(self, 3)
30 }
31 #[doc = "Bit 9 - Timestamp Interrupt Mask"]
32 #[inline(always)]
33 pub fn tsim(&mut self) -> TSIM_W<INTERRUPT_MASK_SPEC> {
34 TSIM_W::new(self, 9)
35 }
36}
37#[doc = "Interrupt Mask Register\n\nYou can [`read`](crate::Reg::read) this register and get [`interrupt_mask::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`interrupt_mask::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
38pub struct INTERRUPT_MASK_SPEC;
39impl crate::RegisterSpec for INTERRUPT_MASK_SPEC {
40 type Ux = u32;
41}
42#[doc = "`read()` method returns [`interrupt_mask::R`](R) reader structure"]
43impl crate::Readable for INTERRUPT_MASK_SPEC {}
44#[doc = "`write(|w| ..)` method takes [`interrupt_mask::W`](W) writer structure"]
45impl crate::Writable for INTERRUPT_MASK_SPEC {
46 type Safety = crate::Unsafe;
47 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
48 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
49}
50#[doc = "`reset()` method sets INTERRUPT_MASK to value 0"]
51impl crate::Resettable for INTERRUPT_MASK_SPEC {
52 const RESET_VALUE: u32 = 0;
53}