lpc54606_pac/enet/
mac_intr_stat.rs

1#[doc = "Reader of register MAC_INTR_STAT"]
2pub type R = crate::R<u32, super::MAC_INTR_STAT>;
3#[doc = "Reader of field `PHYIS`"]
4pub type PHYIS_R = crate::R<bool, bool>;
5#[doc = "Reader of field `PMTIS`"]
6pub type PMTIS_R = crate::R<bool, bool>;
7#[doc = "Reader of field `LPIIS`"]
8pub type LPIIS_R = crate::R<bool, bool>;
9#[doc = "Reader of field `TSIS`"]
10pub type TSIS_R = crate::R<bool, bool>;
11#[doc = "Reader of field `TXSTSIS`"]
12pub type TXSTSIS_R = crate::R<bool, bool>;
13#[doc = "Reader of field `RXSTSIS`"]
14pub type RXSTSIS_R = crate::R<bool, bool>;
15impl R {
16    #[doc = "Bit 3 - PHY Interrupt."]
17    #[inline(always)]
18    pub fn phyis(&self) -> PHYIS_R {
19        PHYIS_R::new(((self.bits >> 3) & 0x01) != 0)
20    }
21    #[doc = "Bit 4 - PMT Interrupt Status."]
22    #[inline(always)]
23    pub fn pmtis(&self) -> PMTIS_R {
24        PMTIS_R::new(((self.bits >> 4) & 0x01) != 0)
25    }
26    #[doc = "Bit 5 - LPI Interrupt Status."]
27    #[inline(always)]
28    pub fn lpiis(&self) -> LPIIS_R {
29        LPIIS_R::new(((self.bits >> 5) & 0x01) != 0)
30    }
31    #[doc = "Bit 12 - Timestamp interrupt status."]
32    #[inline(always)]
33    pub fn tsis(&self) -> TSIS_R {
34        TSIS_R::new(((self.bits >> 12) & 0x01) != 0)
35    }
36    #[doc = "Bit 13 - Transmit Status Interrupt."]
37    #[inline(always)]
38    pub fn txstsis(&self) -> TXSTSIS_R {
39        TXSTSIS_R::new(((self.bits >> 13) & 0x01) != 0)
40    }
41    #[doc = "Bit 14 - Receive Status Interrupt."]
42    #[inline(always)]
43    pub fn rxstsis(&self) -> RXSTSIS_R {
44        RXSTSIS_R::new(((self.bits >> 14) & 0x01) != 0)
45    }
46}