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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
///Register `MACIER` reader
pub type R = crate::R<MACIERrs>;
///Register `MACIER` writer
pub type W = crate::W<MACIERrs>;
///Field `PHYIE` reader - PHY Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of PHYIS bit in Interrupt status register (ETH_MACISR).
pub type PHYIE_R = crate::BitReader;
///Field `PHYIE` writer - PHY Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of PHYIS bit in Interrupt status register (ETH_MACISR).
pub type PHYIE_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `PMTIE` reader - PMT Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of PMTIS bit in Interrupt status register (ETH_MACISR).
pub type PMTIE_R = crate::BitReader;
///Field `PMTIE` writer - PMT Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of PMTIS bit in Interrupt status register (ETH_MACISR).
pub type PMTIE_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `LPIIE` reader - LPI Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of LPIIS bit in Interrupt status register (ETH_MACISR).
pub type LPIIE_R = crate::BitReader;
///Field `LPIIE` writer - LPI Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of LPIIS bit in Interrupt status register (ETH_MACISR).
pub type LPIIE_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TSIE` reader - Timestamp Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of TSIS bit in Interrupt status register (ETH_MACISR).
pub type TSIE_R = crate::BitReader;
///Field `TSIE` writer - Timestamp Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of TSIS bit in Interrupt status register (ETH_MACISR).
pub type TSIE_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TXSTSIE` reader - Transmit Status Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of TXSTSIS bit in the Interrupt status register (ETH_MACISR).
pub type TXSTSIE_R = crate::BitReader;
///Field `TXSTSIE` writer - Transmit Status Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of TXSTSIS bit in the Interrupt status register (ETH_MACISR).
pub type TXSTSIE_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `RXSTSIE` reader - Receive Status Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of RXSTSIS bit in the Interrupt status register (ETH_MACISR).
pub type RXSTSIE_R = crate::BitReader;
///Field `RXSTSIE` writer - Receive Status Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of RXSTSIS bit in the Interrupt status register (ETH_MACISR).
pub type RXSTSIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
///Bit 3 - PHY Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of PHYIS bit in Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn phyie(&self) -> PHYIE_R {
PHYIE_R::new(((self.bits >> 3) & 1) != 0)
}
///Bit 4 - PMT Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of PMTIS bit in Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn pmtie(&self) -> PMTIE_R {
PMTIE_R::new(((self.bits >> 4) & 1) != 0)
}
///Bit 5 - LPI Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of LPIIS bit in Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn lpiie(&self) -> LPIIE_R {
LPIIE_R::new(((self.bits >> 5) & 1) != 0)
}
///Bit 12 - Timestamp Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of TSIS bit in Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn tsie(&self) -> TSIE_R {
TSIE_R::new(((self.bits >> 12) & 1) != 0)
}
///Bit 13 - Transmit Status Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of TXSTSIS bit in the Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn txstsie(&self) -> TXSTSIE_R {
TXSTSIE_R::new(((self.bits >> 13) & 1) != 0)
}
///Bit 14 - Receive Status Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of RXSTSIS bit in the Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn rxstsie(&self) -> RXSTSIE_R {
RXSTSIE_R::new(((self.bits >> 14) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACIER")
.field("phyie", &self.phyie())
.field("pmtie", &self.pmtie())
.field("lpiie", &self.lpiie())
.field("tsie", &self.tsie())
.field("txstsie", &self.txstsie())
.field("rxstsie", &self.rxstsie())
.finish()
}
}
impl W {
///Bit 3 - PHY Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of PHYIS bit in Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn phyie(&mut self) -> PHYIE_W<MACIERrs> {
PHYIE_W::new(self, 3)
}
///Bit 4 - PMT Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of PMTIS bit in Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn pmtie(&mut self) -> PMTIE_W<MACIERrs> {
PMTIE_W::new(self, 4)
}
///Bit 5 - LPI Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of LPIIS bit in Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn lpiie(&mut self) -> LPIIE_W<MACIERrs> {
LPIIE_W::new(self, 5)
}
///Bit 12 - Timestamp Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of TSIS bit in Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn tsie(&mut self) -> TSIE_W<MACIERrs> {
TSIE_W::new(self, 12)
}
///Bit 13 - Transmit Status Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of TXSTSIS bit in the Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn txstsie(&mut self) -> TXSTSIE_W<MACIERrs> {
TXSTSIE_W::new(self, 13)
}
///Bit 14 - Receive Status Interrupt Enable When this bit is set, it enables the assertion of the interrupt signal because of the setting of RXSTSIS bit in the Interrupt status register (ETH_MACISR).
#[inline(always)]
pub fn rxstsie(&mut self) -> RXSTSIE_W<MACIERrs> {
RXSTSIE_W::new(self, 14)
}
}
/**Interrupt enable register
You can [`read`](crate::Reg::read) this register and get [`macier::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macier::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct MACIERrs;
impl crate::RegisterSpec for MACIERrs {
type Ux = u32;
}
///`read()` method returns [`macier::R`](R) reader structure
impl crate::Readable for MACIERrs {}
///`write(|w| ..)` method takes [`macier::W`](W) writer structure
impl crate::Writable for MACIERrs {
type Safety = crate::Unsafe;
}
///`reset()` method sets MACIER to value 0
impl crate::Resettable for MACIERrs {}