va416xx/eth/
mac_intr_stat.rs

1#[doc = "Register `MAC_INTR_STAT` reader"]
2pub type R = crate::R<MacIntrStatSpec>;
3#[doc = "Field `MMCIS` reader - MMC Interrupt Status"]
4pub type MmcisR = crate::BitReader;
5#[doc = "Field `MMCRXIS` reader - MMC Receive Interrupt Status"]
6pub type MmcrxisR = crate::BitReader;
7#[doc = "Field `MMCTXIS` reader - MMC Transmit Interrupt Status"]
8pub type MmctxisR = crate::BitReader;
9#[doc = "Field `MMCRXIPIS` reader - MMC Receive Checksum Offload Interrupt Status"]
10pub type MmcrxipisR = crate::BitReader;
11#[doc = "Field `TSIS` reader - Timestamp Interrupt Status"]
12pub type TsisR = crate::BitReader;
13impl R {
14    #[doc = "Bit 4 - MMC Interrupt Status"]
15    #[inline(always)]
16    pub fn mmcis(&self) -> MmcisR {
17        MmcisR::new(((self.bits >> 4) & 1) != 0)
18    }
19    #[doc = "Bit 5 - MMC Receive Interrupt Status"]
20    #[inline(always)]
21    pub fn mmcrxis(&self) -> MmcrxisR {
22        MmcrxisR::new(((self.bits >> 5) & 1) != 0)
23    }
24    #[doc = "Bit 6 - MMC Transmit Interrupt Status"]
25    #[inline(always)]
26    pub fn mmctxis(&self) -> MmctxisR {
27        MmctxisR::new(((self.bits >> 6) & 1) != 0)
28    }
29    #[doc = "Bit 7 - MMC Receive Checksum Offload Interrupt Status"]
30    #[inline(always)]
31    pub fn mmcrxipis(&self) -> MmcrxipisR {
32        MmcrxipisR::new(((self.bits >> 7) & 1) != 0)
33    }
34    #[doc = "Bit 9 - Timestamp Interrupt Status"]
35    #[inline(always)]
36    pub fn tsis(&self) -> TsisR {
37        TsisR::new(((self.bits >> 9) & 1) != 0)
38    }
39}
40#[doc = "Contains the interrupt status\n\nYou can [`read`](crate::Reg::read) this register and get [`mac_intr_stat::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
41pub struct MacIntrStatSpec;
42impl crate::RegisterSpec for MacIntrStatSpec {
43    type Ux = u32;
44}
45#[doc = "`read()` method returns [`mac_intr_stat::R`](R) reader structure"]
46impl crate::Readable for MacIntrStatSpec {}
47#[doc = "`reset()` method sets MAC_INTR_STAT to value 0"]
48impl crate::Resettable for MacIntrStatSpec {}