xmc4300/eth0/
interrupt_status.rs1#[doc = "Register `INTERRUPT_STATUS` reader"]
2pub type R = crate::R<INTERRUPT_STATUS_SPEC>;
3#[doc = "Field `PMTIS` reader - PMT Interrupt Status"]
4pub type PMTIS_R = crate::BitReader;
5#[doc = "Field `MMCIS` reader - MMC Interrupt Status"]
6pub type MMCIS_R = crate::BitReader;
7#[doc = "Field `MMCRXIS` reader - MMC Receive Interrupt Status"]
8pub type MMCRXIS_R = crate::BitReader;
9#[doc = "Field `MMCTXIS` reader - MMC Transmit Interrupt Status"]
10pub type MMCTXIS_R = crate::BitReader;
11#[doc = "Field `MMCRXIPIS` reader - MMC Receive Checksum Offload Interrupt Status"]
12pub type MMCRXIPIS_R = crate::BitReader;
13#[doc = "Field `TSIS` reader - Timestamp Interrupt Status"]
14pub type TSIS_R = crate::BitReader;
15impl R {
16 #[doc = "Bit 3 - PMT Interrupt Status"]
17 #[inline(always)]
18 pub fn pmtis(&self) -> PMTIS_R {
19 PMTIS_R::new(((self.bits >> 3) & 1) != 0)
20 }
21 #[doc = "Bit 4 - MMC Interrupt Status"]
22 #[inline(always)]
23 pub fn mmcis(&self) -> MMCIS_R {
24 MMCIS_R::new(((self.bits >> 4) & 1) != 0)
25 }
26 #[doc = "Bit 5 - MMC Receive Interrupt Status"]
27 #[inline(always)]
28 pub fn mmcrxis(&self) -> MMCRXIS_R {
29 MMCRXIS_R::new(((self.bits >> 5) & 1) != 0)
30 }
31 #[doc = "Bit 6 - MMC Transmit Interrupt Status"]
32 #[inline(always)]
33 pub fn mmctxis(&self) -> MMCTXIS_R {
34 MMCTXIS_R::new(((self.bits >> 6) & 1) != 0)
35 }
36 #[doc = "Bit 7 - MMC Receive Checksum Offload Interrupt Status"]
37 #[inline(always)]
38 pub fn mmcrxipis(&self) -> MMCRXIPIS_R {
39 MMCRXIPIS_R::new(((self.bits >> 7) & 1) != 0)
40 }
41 #[doc = "Bit 9 - Timestamp Interrupt Status"]
42 #[inline(always)]
43 pub fn tsis(&self) -> TSIS_R {
44 TSIS_R::new(((self.bits >> 9) & 1) != 0)
45 }
46}
47#[doc = "Interrupt Register\n\nYou can [`read`](crate::Reg::read) this register and get [`interrupt_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
48pub struct INTERRUPT_STATUS_SPEC;
49impl crate::RegisterSpec for INTERRUPT_STATUS_SPEC {
50 type Ux = u32;
51}
52#[doc = "`read()` method returns [`interrupt_status::R`](R) reader structure"]
53impl crate::Readable for INTERRUPT_STATUS_SPEC {}
54#[doc = "`reset()` method sets INTERRUPT_STATUS to value 0"]
55impl crate::Resettable for INTERRUPT_STATUS_SPEC {
56 const RESET_VALUE: u32 = 0;
57}