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 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
#[doc = "Reader of register CTL1"] pub type R = crate::R<u32, super::CTL1>; #[doc = "Writer for register CTL1"] pub type W = crate::W<u32, super::CTL1>; #[doc = "Register CTL1 `reset()`'s with value 0x4444_4444"] impl crate::ResetValue for super::CTL1 { type Type = u32; #[inline(always)] fn reset_value() -> Self::Type { 0x4444_4444 } } #[doc = "Reader of field `CTL15`"] pub type CTL15_R = crate::R<u8, u8>; #[doc = "Write proxy for field `CTL15`"] pub struct CTL15_W<'a> { w: &'a mut W, } impl<'a> CTL15_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 30)) | (((value as u32) & 0x03) << 30); self.w } } #[doc = "Reader of field `MD15`"] pub type MD15_R = crate::R<u8, u8>; #[doc = "Write proxy for field `MD15`"] pub struct MD15_W<'a> { w: &'a mut W, } impl<'a> MD15_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 28)) | (((value as u32) & 0x03) << 28); self.w } } #[doc = "Reader of field `CTL14`"] pub type CTL14_R = crate::R<u8, u8>; #[doc = "Write proxy for field `CTL14`"] pub struct CTL14_W<'a> { w: &'a mut W, } impl<'a> CTL14_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 26)) | (((value as u32) & 0x03) << 26); self.w } } #[doc = "Reader of field `MD14`"] pub type MD14_R = crate::R<u8, u8>; #[doc = "Write proxy for field `MD14`"] pub struct MD14_W<'a> { w: &'a mut W, } impl<'a> MD14_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 24)) | (((value as u32) & 0x03) << 24); self.w } } #[doc = "Reader of field `CTL13`"] pub type CTL13_R = crate::R<u8, u8>; #[doc = "Write proxy for field `CTL13`"] pub struct CTL13_W<'a> { w: &'a mut W, } impl<'a> CTL13_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 22)) | (((value as u32) & 0x03) << 22); self.w } } #[doc = "Reader of field `MD13`"] pub type MD13_R = crate::R<u8, u8>; #[doc = "Write proxy for field `MD13`"] pub struct MD13_W<'a> { w: &'a mut W, } impl<'a> MD13_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 20)) | (((value as u32) & 0x03) << 20); self.w } } #[doc = "Reader of field `CTL12`"] pub type CTL12_R = crate::R<u8, u8>; #[doc = "Write proxy for field `CTL12`"] pub struct CTL12_W<'a> { w: &'a mut W, } impl<'a> CTL12_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 18)) | (((value as u32) & 0x03) << 18); self.w } } #[doc = "Reader of field `MD12`"] pub type MD12_R = crate::R<u8, u8>; #[doc = "Write proxy for field `MD12`"] pub struct MD12_W<'a> { w: &'a mut W, } impl<'a> MD12_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 16)) | (((value as u32) & 0x03) << 16); self.w } } #[doc = "Reader of field `CTL11`"] pub type CTL11_R = crate::R<u8, u8>; #[doc = "Write proxy for field `CTL11`"] pub struct CTL11_W<'a> { w: &'a mut W, } impl<'a> CTL11_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 14)) | (((value as u32) & 0x03) << 14); self.w } } #[doc = "Reader of field `MD11`"] pub type MD11_R = crate::R<u8, u8>; #[doc = "Write proxy for field `MD11`"] pub struct MD11_W<'a> { w: &'a mut W, } impl<'a> MD11_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 12)) | (((value as u32) & 0x03) << 12); self.w } } #[doc = "Reader of field `CTL10`"] pub type CTL10_R = crate::R<u8, u8>; #[doc = "Write proxy for field `CTL10`"] pub struct CTL10_W<'a> { w: &'a mut W, } impl<'a> CTL10_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 10)) | (((value as u32) & 0x03) << 10); self.w } } #[doc = "Reader of field `MD10`"] pub type MD10_R = crate::R<u8, u8>; #[doc = "Write proxy for field `MD10`"] pub struct MD10_W<'a> { w: &'a mut W, } impl<'a> MD10_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 8)) | (((value as u32) & 0x03) << 8); self.w } } #[doc = "Reader of field `CTL9`"] pub type CTL9_R = crate::R<u8, u8>; #[doc = "Write proxy for field `CTL9`"] pub struct CTL9_W<'a> { w: &'a mut W, } impl<'a> CTL9_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 6)) | (((value as u32) & 0x03) << 6); self.w } } #[doc = "Reader of field `MD9`"] pub type MD9_R = crate::R<u8, u8>; #[doc = "Write proxy for field `MD9`"] pub struct MD9_W<'a> { w: &'a mut W, } impl<'a> MD9_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 4)) | (((value as u32) & 0x03) << 4); self.w } } #[doc = "Reader of field `CTL8`"] pub type CTL8_R = crate::R<u8, u8>; #[doc = "Write proxy for field `CTL8`"] pub struct CTL8_W<'a> { w: &'a mut W, } impl<'a> CTL8_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 2)) | (((value as u32) & 0x03) << 2); self.w } } #[doc = "Reader of field `MD8`"] pub type MD8_R = crate::R<u8, u8>; #[doc = "Write proxy for field `MD8`"] pub struct MD8_W<'a> { w: &'a mut W, } impl<'a> MD8_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !0x03) | ((value as u32) & 0x03); self.w } } impl R { #[doc = "Bits 30:31 - Port x configuration bits (x = 15)"] #[inline(always)] pub fn ctl15(&self) -> CTL15_R { CTL15_R::new(((self.bits >> 30) & 0x03) as u8) } #[doc = "Bits 28:29 - Port x mode bits (x = 15)"] #[inline(always)] pub fn md15(&self) -> MD15_R { MD15_R::new(((self.bits >> 28) & 0x03) as u8) } #[doc = "Bits 26:27 - Port x configuration bits (x = 14)"] #[inline(always)] pub fn ctl14(&self) -> CTL14_R { CTL14_R::new(((self.bits >> 26) & 0x03) as u8) } #[doc = "Bits 24:25 - Port x mode bits (x = 14)"] #[inline(always)] pub fn md14(&self) -> MD14_R { MD14_R::new(((self.bits >> 24) & 0x03) as u8) } #[doc = "Bits 22:23 - Port x configuration bits (x = 13)"] #[inline(always)] pub fn ctl13(&self) -> CTL13_R { CTL13_R::new(((self.bits >> 22) & 0x03) as u8) } #[doc = "Bits 20:21 - Port x mode bits (x = 13)"] #[inline(always)] pub fn md13(&self) -> MD13_R { MD13_R::new(((self.bits >> 20) & 0x03) as u8) } #[doc = "Bits 18:19 - Port x configuration bits (x = 12)"] #[inline(always)] pub fn ctl12(&self) -> CTL12_R { CTL12_R::new(((self.bits >> 18) & 0x03) as u8) } #[doc = "Bits 16:17 - Port x mode bits (x = 12)"] #[inline(always)] pub fn md12(&self) -> MD12_R { MD12_R::new(((self.bits >> 16) & 0x03) as u8) } #[doc = "Bits 14:15 - Port x configuration bits (x = 11)"] #[inline(always)] pub fn ctl11(&self) -> CTL11_R { CTL11_R::new(((self.bits >> 14) & 0x03) as u8) } #[doc = "Bits 12:13 - Port x mode bits (x = 11 )"] #[inline(always)] pub fn md11(&self) -> MD11_R { MD11_R::new(((self.bits >> 12) & 0x03) as u8) } #[doc = "Bits 10:11 - Port x configuration bits (x = 10)"] #[inline(always)] pub fn ctl10(&self) -> CTL10_R { CTL10_R::new(((self.bits >> 10) & 0x03) as u8) } #[doc = "Bits 8:9 - Port x mode bits (x = 10 )"] #[inline(always)] pub fn md10(&self) -> MD10_R { MD10_R::new(((self.bits >> 8) & 0x03) as u8) } #[doc = "Bits 6:7 - Port x configuration bits (x = 9)"] #[inline(always)] pub fn ctl9(&self) -> CTL9_R { CTL9_R::new(((self.bits >> 6) & 0x03) as u8) } #[doc = "Bits 4:5 - Port x mode bits (x = 9)"] #[inline(always)] pub fn md9(&self) -> MD9_R { MD9_R::new(((self.bits >> 4) & 0x03) as u8) } #[doc = "Bits 2:3 - Port x configuration bits (x = 8)"] #[inline(always)] pub fn ctl8(&self) -> CTL8_R { CTL8_R::new(((self.bits >> 2) & 0x03) as u8) } #[doc = "Bits 0:1 - Port x mode bits (x = 8)"] #[inline(always)] pub fn md8(&self) -> MD8_R { MD8_R::new((self.bits & 0x03) as u8) } } impl W { #[doc = "Bits 30:31 - Port x configuration bits (x = 15)"] #[inline(always)] pub fn ctl15(&mut self) -> CTL15_W { CTL15_W { w: self } } #[doc = "Bits 28:29 - Port x mode bits (x = 15)"] #[inline(always)] pub fn md15(&mut self) -> MD15_W { MD15_W { w: self } } #[doc = "Bits 26:27 - Port x configuration bits (x = 14)"] #[inline(always)] pub fn ctl14(&mut self) -> CTL14_W { CTL14_W { w: self } } #[doc = "Bits 24:25 - Port x mode bits (x = 14)"] #[inline(always)] pub fn md14(&mut self) -> MD14_W { MD14_W { w: self } } #[doc = "Bits 22:23 - Port x configuration bits (x = 13)"] #[inline(always)] pub fn ctl13(&mut self) -> CTL13_W { CTL13_W { w: self } } #[doc = "Bits 20:21 - Port x mode bits (x = 13)"] #[inline(always)] pub fn md13(&mut self) -> MD13_W { MD13_W { w: self } } #[doc = "Bits 18:19 - Port x configuration bits (x = 12)"] #[inline(always)] pub fn ctl12(&mut self) -> CTL12_W { CTL12_W { w: self } } #[doc = "Bits 16:17 - Port x mode bits (x = 12)"] #[inline(always)] pub fn md12(&mut self) -> MD12_W { MD12_W { w: self } } #[doc = "Bits 14:15 - Port x configuration bits (x = 11)"] #[inline(always)] pub fn ctl11(&mut self) -> CTL11_W { CTL11_W { w: self } } #[doc = "Bits 12:13 - Port x mode bits (x = 11 )"] #[inline(always)] pub fn md11(&mut self) -> MD11_W { MD11_W { w: self } } #[doc = "Bits 10:11 - Port x configuration bits (x = 10)"] #[inline(always)] pub fn ctl10(&mut self) -> CTL10_W { CTL10_W { w: self } } #[doc = "Bits 8:9 - Port x mode bits (x = 10 )"] #[inline(always)] pub fn md10(&mut self) -> MD10_W { MD10_W { w: self } } #[doc = "Bits 6:7 - Port x configuration bits (x = 9)"] #[inline(always)] pub fn ctl9(&mut self) -> CTL9_W { CTL9_W { w: self } } #[doc = "Bits 4:5 - Port x mode bits (x = 9)"] #[inline(always)] pub fn md9(&mut self) -> MD9_W { MD9_W { w: self } } #[doc = "Bits 2:3 - Port x configuration bits (x = 8)"] #[inline(always)] pub fn ctl8(&mut self) -> CTL8_W { CTL8_W { w: self } } #[doc = "Bits 0:1 - Port x mode bits (x = 8)"] #[inline(always)] pub fn md8(&mut self) -> MD8_W { MD8_W { w: self } } }