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
///Register `MMC_RX_INTERRUPT` reader
pub type R = crate::R<MMC_RX_INTERRUPTrs>;
///Register `MMC_RX_INTERRUPT` writer
pub type W = crate::W<MMC_RX_INTERRUPTrs>;
/**Field `RXCRCERPIS` reader - MMC Receive CRC Error Packet Counter Interrupt Status This bit is set when the Rx CRC error packets register (ETH_RX_CRC_ERROR_PACKETS) counter reaches half of the maximum value or the maximum value.
<div class="warning">The field is <b>cleared</b> (set to zero) following a read operation.</div>*/
pub type RXCRCERPIS_R = crate::BitReader;
///Field `RXCRCERPIS` writer - MMC Receive CRC Error Packet Counter Interrupt Status This bit is set when the Rx CRC error packets register (ETH_RX_CRC_ERROR_PACKETS) counter reaches half of the maximum value or the maximum value.
pub type RXCRCERPIS_W<'a, REG> = crate::BitWriter<'a, REG>;
/**Field `RXALGNERPIS` reader - MMC Receive Alignment Error Packet Counter Interrupt Status This bit is set when the Rx alignment error packets register (ETH_RX_ALIGNMENT_ERROR_PACKETS) counter reaches half of the maximum value or the maximum value.
<div class="warning">The field is <b>cleared</b> (set to zero) following a read operation.</div>*/
pub type RXALGNERPIS_R = crate::BitReader;
///Field `RXALGNERPIS` writer - MMC Receive Alignment Error Packet Counter Interrupt Status This bit is set when the Rx alignment error packets register (ETH_RX_ALIGNMENT_ERROR_PACKETS) counter reaches half of the maximum value or the maximum value.
pub type RXALGNERPIS_W<'a, REG> = crate::BitWriter<'a, REG>;
/**Field `RXUCGPIS` reader - MMC Receive Unicast Good Packet Counter Interrupt Status This bit is set when the Rx unicast packets good register (ETH_RX_UNICAST_PACKETS_GOOD) counter reaches half of the maximum value or the maximum value.
<div class="warning">The field is <b>cleared</b> (set to zero) following a read operation.</div>*/
pub type RXUCGPIS_R = crate::BitReader;
///Field `RXUCGPIS` writer - MMC Receive Unicast Good Packet Counter Interrupt Status This bit is set when the Rx unicast packets good register (ETH_RX_UNICAST_PACKETS_GOOD) counter reaches half of the maximum value or the maximum value.
pub type RXUCGPIS_W<'a, REG> = crate::BitWriter<'a, REG>;
/**Field `RXLPIUSCIS` reader - MMC Receive LPI microsecond counter interrupt status This bit is set when the Rx LPI microsecond counter register (ETH_RX_LPI_USEC_CNTR) counter reaches half of the maximum value or the maximum value.
<div class="warning">The field is <b>cleared</b> (set to zero) following a read operation.</div>*/
pub type RXLPIUSCIS_R = crate::BitReader;
///Field `RXLPIUSCIS` writer - MMC Receive LPI microsecond counter interrupt status This bit is set when the Rx LPI microsecond counter register (ETH_RX_LPI_USEC_CNTR) counter reaches half of the maximum value or the maximum value.
pub type RXLPIUSCIS_W<'a, REG> = crate::BitWriter<'a, REG>;
/**Field `RXLPITRCIS` reader - MMC Receive LPI transition counter interrupt status This bit is set when the Rx LPI transition counter register (ETH_RX_LPI_TRAN_CNTR) counter reaches half of the maximum value or the maximum value.
<div class="warning">The field is <b>cleared</b> (set to zero) following a read operation.</div>*/
pub type RXLPITRCIS_R = crate::BitReader;
///Field `RXLPITRCIS` writer - MMC Receive LPI transition counter interrupt status This bit is set when the Rx LPI transition counter register (ETH_RX_LPI_TRAN_CNTR) counter reaches half of the maximum value or the maximum value.
pub type RXLPITRCIS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
///Bit 5 - MMC Receive CRC Error Packet Counter Interrupt Status This bit is set when the Rx CRC error packets register (ETH_RX_CRC_ERROR_PACKETS) counter reaches half of the maximum value or the maximum value.
#[inline(always)]
pub fn rxcrcerpis(&self) -> RXCRCERPIS_R {
RXCRCERPIS_R::new(((self.bits >> 5) & 1) != 0)
}
///Bit 6 - MMC Receive Alignment Error Packet Counter Interrupt Status This bit is set when the Rx alignment error packets register (ETH_RX_ALIGNMENT_ERROR_PACKETS) counter reaches half of the maximum value or the maximum value.
#[inline(always)]
pub fn rxalgnerpis(&self) -> RXALGNERPIS_R {
RXALGNERPIS_R::new(((self.bits >> 6) & 1) != 0)
}
///Bit 17 - MMC Receive Unicast Good Packet Counter Interrupt Status This bit is set when the Rx unicast packets good register (ETH_RX_UNICAST_PACKETS_GOOD) counter reaches half of the maximum value or the maximum value.
#[inline(always)]
pub fn rxucgpis(&self) -> RXUCGPIS_R {
RXUCGPIS_R::new(((self.bits >> 17) & 1) != 0)
}
///Bit 26 - MMC Receive LPI microsecond counter interrupt status This bit is set when the Rx LPI microsecond counter register (ETH_RX_LPI_USEC_CNTR) counter reaches half of the maximum value or the maximum value.
#[inline(always)]
pub fn rxlpiuscis(&self) -> RXLPIUSCIS_R {
RXLPIUSCIS_R::new(((self.bits >> 26) & 1) != 0)
}
///Bit 27 - MMC Receive LPI transition counter interrupt status This bit is set when the Rx LPI transition counter register (ETH_RX_LPI_TRAN_CNTR) counter reaches half of the maximum value or the maximum value.
#[inline(always)]
pub fn rxlpitrcis(&self) -> RXLPITRCIS_R {
RXLPITRCIS_R::new(((self.bits >> 27) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MMC_RX_INTERRUPT").finish()
}
}
impl W {
///Bit 5 - MMC Receive CRC Error Packet Counter Interrupt Status This bit is set when the Rx CRC error packets register (ETH_RX_CRC_ERROR_PACKETS) counter reaches half of the maximum value or the maximum value.
#[inline(always)]
pub fn rxcrcerpis(&mut self) -> RXCRCERPIS_W<MMC_RX_INTERRUPTrs> {
RXCRCERPIS_W::new(self, 5)
}
///Bit 6 - MMC Receive Alignment Error Packet Counter Interrupt Status This bit is set when the Rx alignment error packets register (ETH_RX_ALIGNMENT_ERROR_PACKETS) counter reaches half of the maximum value or the maximum value.
#[inline(always)]
pub fn rxalgnerpis(&mut self) -> RXALGNERPIS_W<MMC_RX_INTERRUPTrs> {
RXALGNERPIS_W::new(self, 6)
}
///Bit 17 - MMC Receive Unicast Good Packet Counter Interrupt Status This bit is set when the Rx unicast packets good register (ETH_RX_UNICAST_PACKETS_GOOD) counter reaches half of the maximum value or the maximum value.
#[inline(always)]
pub fn rxucgpis(&mut self) -> RXUCGPIS_W<MMC_RX_INTERRUPTrs> {
RXUCGPIS_W::new(self, 17)
}
///Bit 26 - MMC Receive LPI microsecond counter interrupt status This bit is set when the Rx LPI microsecond counter register (ETH_RX_LPI_USEC_CNTR) counter reaches half of the maximum value or the maximum value.
#[inline(always)]
pub fn rxlpiuscis(&mut self) -> RXLPIUSCIS_W<MMC_RX_INTERRUPTrs> {
RXLPIUSCIS_W::new(self, 26)
}
///Bit 27 - MMC Receive LPI transition counter interrupt status This bit is set when the Rx LPI transition counter register (ETH_RX_LPI_TRAN_CNTR) counter reaches half of the maximum value or the maximum value.
#[inline(always)]
pub fn rxlpitrcis(&mut self) -> RXLPITRCIS_W<MMC_RX_INTERRUPTrs> {
RXLPITRCIS_W::new(self, 27)
}
}
/**MMC Rx interrupt register
You can [`read`](crate::Reg::read) this register and get [`mmc_rx_interrupt::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mmc_rx_interrupt::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct MMC_RX_INTERRUPTrs;
impl crate::RegisterSpec for MMC_RX_INTERRUPTrs {
type Ux = u32;
}
///`read()` method returns [`mmc_rx_interrupt::R`](R) reader structure
impl crate::Readable for MMC_RX_INTERRUPTrs {}
///`write(|w| ..)` method takes [`mmc_rx_interrupt::W`](W) writer structure
impl crate::Writable for MMC_RX_INTERRUPTrs {
type Safety = crate::Unsafe;
}
///`reset()` method sets MMC_RX_INTERRUPT to value 0
impl crate::Resettable for MMC_RX_INTERRUPTrs {}