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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
#[doc = "Register `ETH_DMASBMR` reader"]
pub struct R(crate::R<ETH_DMASBMR_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<ETH_DMASBMR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<ETH_DMASBMR_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<ETH_DMASBMR_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `ETH_DMASBMR` writer"]
pub struct W(crate::W<ETH_DMASBMR_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<ETH_DMASBMR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<ETH_DMASBMR_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<ETH_DMASBMR_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `FB` reader - Fixed Burst Length"]
pub type FB_R = crate::BitReader<bool>;
#[doc = "Field `FB` writer - Fixed Burst Length"]
pub type FB_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `BLEN4` reader - BLEN4"]
pub type BLEN4_R = crate::BitReader<bool>;
#[doc = "Field `BLEN4` writer - BLEN4"]
pub type BLEN4_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `BLEN8` reader - BLEN8"]
pub type BLEN8_R = crate::BitReader<bool>;
#[doc = "Field `BLEN8` writer - BLEN8"]
pub type BLEN8_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `BLEN16` reader - BLEN16"]
pub type BLEN16_R = crate::BitReader<bool>;
#[doc = "Field `BLEN16` writer - BLEN16"]
pub type BLEN16_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `BLEN32` reader - BLEN32"]
pub type BLEN32_R = crate::BitReader<bool>;
#[doc = "Field `BLEN32` writer - BLEN32"]
pub type BLEN32_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `BLEN64` reader - BLEN64"]
pub type BLEN64_R = crate::BitReader<bool>;
#[doc = "Field `BLEN64` writer - BLEN64"]
pub type BLEN64_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `BLEN128` reader - BLEN128"]
pub type BLEN128_R = crate::BitReader<bool>;
#[doc = "Field `BLEN128` writer - BLEN128"]
pub type BLEN128_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `BLEN256` reader - BLEN256"]
pub type BLEN256_R = crate::BitReader<bool>;
#[doc = "Field `BLEN256` writer - BLEN256"]
pub type BLEN256_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `AAL` reader - Address-Aligned Beats"]
pub type AAL_R = crate::BitReader<bool>;
#[doc = "Field `AAL` writer - Address-Aligned Beats"]
pub type AAL_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `ONEKBBE` reader - ONEKBBE"]
pub type ONEKBBE_R = crate::BitReader<bool>;
#[doc = "Field `ONEKBBE` writer - ONEKBBE"]
pub type ONEKBBE_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `RD_OSR_LMT` reader - RD_OSR_LMT"]
pub type RD_OSR_LMT_R = crate::FieldReader<u8, u8>;
#[doc = "Field `RD_OSR_LMT` writer - RD_OSR_LMT"]
pub type RD_OSR_LMT_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, ETH_DMASBMR_SPEC, u8, u8, 2, O>;
#[doc = "Field `WR_OSR_LMT` reader - WR_OSR_LMT"]
pub type WR_OSR_LMT_R = crate::FieldReader<u8, u8>;
#[doc = "Field `WR_OSR_LMT` writer - WR_OSR_LMT"]
pub type WR_OSR_LMT_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, ETH_DMASBMR_SPEC, u8, u8, 2, O>;
#[doc = "Field `LPI_XIT_PKT` reader - LPI_XIT_PKT"]
pub type LPI_XIT_PKT_R = crate::BitReader<bool>;
#[doc = "Field `LPI_XIT_PKT` writer - LPI_XIT_PKT"]
pub type LPI_XIT_PKT_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
#[doc = "Field `EN_LPI` reader - EN_LPI"]
pub type EN_LPI_R = crate::BitReader<bool>;
#[doc = "Field `EN_LPI` writer - EN_LPI"]
pub type EN_LPI_W<'a, const O: u8> = crate::BitWriter<'a, u32, ETH_DMASBMR_SPEC, bool, O>;
impl R {
    #[doc = "Bit 0 - Fixed Burst Length"]
    #[inline(always)]
    pub fn fb(&self) -> FB_R {
        FB_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - BLEN4"]
    #[inline(always)]
    pub fn blen4(&self) -> BLEN4_R {
        BLEN4_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - BLEN8"]
    #[inline(always)]
    pub fn blen8(&self) -> BLEN8_R {
        BLEN8_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - BLEN16"]
    #[inline(always)]
    pub fn blen16(&self) -> BLEN16_R {
        BLEN16_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - BLEN32"]
    #[inline(always)]
    pub fn blen32(&self) -> BLEN32_R {
        BLEN32_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - BLEN64"]
    #[inline(always)]
    pub fn blen64(&self) -> BLEN64_R {
        BLEN64_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - BLEN128"]
    #[inline(always)]
    pub fn blen128(&self) -> BLEN128_R {
        BLEN128_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - BLEN256"]
    #[inline(always)]
    pub fn blen256(&self) -> BLEN256_R {
        BLEN256_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 12 - Address-Aligned Beats"]
    #[inline(always)]
    pub fn aal(&self) -> AAL_R {
        AAL_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - ONEKBBE"]
    #[inline(always)]
    pub fn onekbbe(&self) -> ONEKBBE_R {
        ONEKBBE_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bits 16:17 - RD_OSR_LMT"]
    #[inline(always)]
    pub fn rd_osr_lmt(&self) -> RD_OSR_LMT_R {
        RD_OSR_LMT_R::new(((self.bits >> 16) & 3) as u8)
    }
    #[doc = "Bits 24:25 - WR_OSR_LMT"]
    #[inline(always)]
    pub fn wr_osr_lmt(&self) -> WR_OSR_LMT_R {
        WR_OSR_LMT_R::new(((self.bits >> 24) & 3) as u8)
    }
    #[doc = "Bit 30 - LPI_XIT_PKT"]
    #[inline(always)]
    pub fn lpi_xit_pkt(&self) -> LPI_XIT_PKT_R {
        LPI_XIT_PKT_R::new(((self.bits >> 30) & 1) != 0)
    }
    #[doc = "Bit 31 - EN_LPI"]
    #[inline(always)]
    pub fn en_lpi(&self) -> EN_LPI_R {
        EN_LPI_R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Fixed Burst Length"]
    #[inline(always)]
    pub fn fb(&mut self) -> FB_W<0> {
        FB_W::new(self)
    }
    #[doc = "Bit 1 - BLEN4"]
    #[inline(always)]
    pub fn blen4(&mut self) -> BLEN4_W<1> {
        BLEN4_W::new(self)
    }
    #[doc = "Bit 2 - BLEN8"]
    #[inline(always)]
    pub fn blen8(&mut self) -> BLEN8_W<2> {
        BLEN8_W::new(self)
    }
    #[doc = "Bit 3 - BLEN16"]
    #[inline(always)]
    pub fn blen16(&mut self) -> BLEN16_W<3> {
        BLEN16_W::new(self)
    }
    #[doc = "Bit 4 - BLEN32"]
    #[inline(always)]
    pub fn blen32(&mut self) -> BLEN32_W<4> {
        BLEN32_W::new(self)
    }
    #[doc = "Bit 5 - BLEN64"]
    #[inline(always)]
    pub fn blen64(&mut self) -> BLEN64_W<5> {
        BLEN64_W::new(self)
    }
    #[doc = "Bit 6 - BLEN128"]
    #[inline(always)]
    pub fn blen128(&mut self) -> BLEN128_W<6> {
        BLEN128_W::new(self)
    }
    #[doc = "Bit 7 - BLEN256"]
    #[inline(always)]
    pub fn blen256(&mut self) -> BLEN256_W<7> {
        BLEN256_W::new(self)
    }
    #[doc = "Bit 12 - Address-Aligned Beats"]
    #[inline(always)]
    pub fn aal(&mut self) -> AAL_W<12> {
        AAL_W::new(self)
    }
    #[doc = "Bit 13 - ONEKBBE"]
    #[inline(always)]
    pub fn onekbbe(&mut self) -> ONEKBBE_W<13> {
        ONEKBBE_W::new(self)
    }
    #[doc = "Bits 16:17 - RD_OSR_LMT"]
    #[inline(always)]
    pub fn rd_osr_lmt(&mut self) -> RD_OSR_LMT_W<16> {
        RD_OSR_LMT_W::new(self)
    }
    #[doc = "Bits 24:25 - WR_OSR_LMT"]
    #[inline(always)]
    pub fn wr_osr_lmt(&mut self) -> WR_OSR_LMT_W<24> {
        WR_OSR_LMT_W::new(self)
    }
    #[doc = "Bit 30 - LPI_XIT_PKT"]
    #[inline(always)]
    pub fn lpi_xit_pkt(&mut self) -> LPI_XIT_PKT_W<30> {
        LPI_XIT_PKT_W::new(self)
    }
    #[doc = "Bit 31 - EN_LPI"]
    #[inline(always)]
    pub fn en_lpi(&mut self) -> EN_LPI_W<31> {
        EN_LPI_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "System bus mode register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [eth_dmasbmr](index.html) module"]
pub struct ETH_DMASBMR_SPEC;
impl crate::RegisterSpec for ETH_DMASBMR_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [eth_dmasbmr::R](R) reader structure"]
impl crate::Readable for ETH_DMASBMR_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [eth_dmasbmr::W](W) writer structure"]
impl crate::Writable for ETH_DMASBMR_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets ETH_DMASBMR to value 0x8000"]
impl crate::Resettable for ETH_DMASBMR_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0x8000
    }
}