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 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457
#[doc = "Reader of register OUTPUT_MUX[%s]"] pub type R = crate::R<u32, super::OUTPUT_MUX>; #[doc = "Writer for register OUTPUT_MUX[%s]"] pub type W = crate::W<u32, super::OUTPUT_MUX>; #[doc = "Register OUTPUT_MUX[%s] `reset()`'s with value 0"] impl crate::ResetValue for super::OUTPUT_MUX { type Type = u32; #[inline(always)] fn reset_value() -> Self::Type { 0 } } #[doc = "Selects the source to be connected to PLU Output 0.\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] #[repr(u8)] pub enum OUTPUTN_A { #[doc = "0: The PLU output 0."] PLU_OUTPUT0 = 0, #[doc = "1: The PLU output 1."] PLU_OUTPUT1 = 1, #[doc = "2: The PLU output 2."] PLU_OUTPUT2 = 2, #[doc = "3: The PLU output 3."] PLU_OUTPUT3 = 3, #[doc = "4: The PLU output 4."] PLU_OUTPUT4 = 4, #[doc = "5: The PLU output 5."] PLU_OUTPUT5 = 5, #[doc = "6: The PLU output 6."] PLU_OUTPUT6 = 6, #[doc = "7: The PLU output 7."] PLU_OUTPUT7 = 7, #[doc = "8: The PLU output 8."] PLU_OUTPUT8 = 8, #[doc = "9: The PLU output 9."] PLU_OUTPUT9 = 9, #[doc = "10: The PLU output 10."] PLU_OUTPUT10 = 10, #[doc = "11: The PLU output 11."] PLU_OUTPUT11 = 11, #[doc = "12: The PLU output 12."] PLU_OUTPUT12 = 12, #[doc = "13: The PLU output 13."] PLU_OUTPUT13 = 13, #[doc = "14: The PLU output 14."] PLU_OUTPUT14 = 14, #[doc = "15: The PLU output 15."] PLU_OUTPUT15 = 15, #[doc = "16: The PLU output 16."] PLU_OUTPUT16 = 16, #[doc = "17: The PLU output 17."] PLU_OUTPUT17 = 17, #[doc = "18: The PLU output 18."] PLU_OUTPUT18 = 18, #[doc = "19: The PLU output 19."] PLU_OUTPUT19 = 19, #[doc = "20: The PLU output 20."] PLU_OUTPUT20 = 20, #[doc = "21: The PLU output 21."] PLU_OUTPUT21 = 21, #[doc = "22: The PLU output 22."] PLU_OUTPUT22 = 22, #[doc = "23: The PLU output 23."] PLU_OUTPUT23 = 23, #[doc = "24: The PLU output 24."] PLU_OUTPUT24 = 24, #[doc = "25: The PLU output 25."] PLU_OUTPUT25 = 25, #[doc = "26: state(0)."] STATE0 = 26, #[doc = "27: state(1)."] STATE1 = 27, #[doc = "28: state(2)."] STATE2 = 28, #[doc = "29: state(3)."] STATE3 = 29, } impl From<OUTPUTN_A> for u8 { #[inline(always)] fn from(variant: OUTPUTN_A) -> Self { variant as _ } } #[doc = "Reader of field `OUTPUTn`"] pub type OUTPUTN_R = crate::R<u8, OUTPUTN_A>; impl OUTPUTN_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> crate::Variant<u8, OUTPUTN_A> { use crate::Variant::*; match self.bits { 0 => Val(OUTPUTN_A::PLU_OUTPUT0), 1 => Val(OUTPUTN_A::PLU_OUTPUT1), 2 => Val(OUTPUTN_A::PLU_OUTPUT2), 3 => Val(OUTPUTN_A::PLU_OUTPUT3), 4 => Val(OUTPUTN_A::PLU_OUTPUT4), 5 => Val(OUTPUTN_A::PLU_OUTPUT5), 6 => Val(OUTPUTN_A::PLU_OUTPUT6), 7 => Val(OUTPUTN_A::PLU_OUTPUT7), 8 => Val(OUTPUTN_A::PLU_OUTPUT8), 9 => Val(OUTPUTN_A::PLU_OUTPUT9), 10 => Val(OUTPUTN_A::PLU_OUTPUT10), 11 => Val(OUTPUTN_A::PLU_OUTPUT11), 12 => Val(OUTPUTN_A::PLU_OUTPUT12), 13 => Val(OUTPUTN_A::PLU_OUTPUT13), 14 => Val(OUTPUTN_A::PLU_OUTPUT14), 15 => Val(OUTPUTN_A::PLU_OUTPUT15), 16 => Val(OUTPUTN_A::PLU_OUTPUT16), 17 => Val(OUTPUTN_A::PLU_OUTPUT17), 18 => Val(OUTPUTN_A::PLU_OUTPUT18), 19 => Val(OUTPUTN_A::PLU_OUTPUT19), 20 => Val(OUTPUTN_A::PLU_OUTPUT20), 21 => Val(OUTPUTN_A::PLU_OUTPUT21), 22 => Val(OUTPUTN_A::PLU_OUTPUT22), 23 => Val(OUTPUTN_A::PLU_OUTPUT23), 24 => Val(OUTPUTN_A::PLU_OUTPUT24), 25 => Val(OUTPUTN_A::PLU_OUTPUT25), 26 => Val(OUTPUTN_A::STATE0), 27 => Val(OUTPUTN_A::STATE1), 28 => Val(OUTPUTN_A::STATE2), 29 => Val(OUTPUTN_A::STATE3), i => Res(i), } } #[doc = "Checks if the value of the field is `PLU_OUTPUT0`"] #[inline(always)] pub fn is_plu_output0(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT0 } #[doc = "Checks if the value of the field is `PLU_OUTPUT1`"] #[inline(always)] pub fn is_plu_output1(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT1 } #[doc = "Checks if the value of the field is `PLU_OUTPUT2`"] #[inline(always)] pub fn is_plu_output2(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT2 } #[doc = "Checks if the value of the field is `PLU_OUTPUT3`"] #[inline(always)] pub fn is_plu_output3(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT3 } #[doc = "Checks if the value of the field is `PLU_OUTPUT4`"] #[inline(always)] pub fn is_plu_output4(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT4 } #[doc = "Checks if the value of the field is `PLU_OUTPUT5`"] #[inline(always)] pub fn is_plu_output5(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT5 } #[doc = "Checks if the value of the field is `PLU_OUTPUT6`"] #[inline(always)] pub fn is_plu_output6(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT6 } #[doc = "Checks if the value of the field is `PLU_OUTPUT7`"] #[inline(always)] pub fn is_plu_output7(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT7 } #[doc = "Checks if the value of the field is `PLU_OUTPUT8`"] #[inline(always)] pub fn is_plu_output8(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT8 } #[doc = "Checks if the value of the field is `PLU_OUTPUT9`"] #[inline(always)] pub fn is_plu_output9(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT9 } #[doc = "Checks if the value of the field is `PLU_OUTPUT10`"] #[inline(always)] pub fn is_plu_output10(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT10 } #[doc = "Checks if the value of the field is `PLU_OUTPUT11`"] #[inline(always)] pub fn is_plu_output11(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT11 } #[doc = "Checks if the value of the field is `PLU_OUTPUT12`"] #[inline(always)] pub fn is_plu_output12(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT12 } #[doc = "Checks if the value of the field is `PLU_OUTPUT13`"] #[inline(always)] pub fn is_plu_output13(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT13 } #[doc = "Checks if the value of the field is `PLU_OUTPUT14`"] #[inline(always)] pub fn is_plu_output14(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT14 } #[doc = "Checks if the value of the field is `PLU_OUTPUT15`"] #[inline(always)] pub fn is_plu_output15(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT15 } #[doc = "Checks if the value of the field is `PLU_OUTPUT16`"] #[inline(always)] pub fn is_plu_output16(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT16 } #[doc = "Checks if the value of the field is `PLU_OUTPUT17`"] #[inline(always)] pub fn is_plu_output17(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT17 } #[doc = "Checks if the value of the field is `PLU_OUTPUT18`"] #[inline(always)] pub fn is_plu_output18(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT18 } #[doc = "Checks if the value of the field is `PLU_OUTPUT19`"] #[inline(always)] pub fn is_plu_output19(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT19 } #[doc = "Checks if the value of the field is `PLU_OUTPUT20`"] #[inline(always)] pub fn is_plu_output20(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT20 } #[doc = "Checks if the value of the field is `PLU_OUTPUT21`"] #[inline(always)] pub fn is_plu_output21(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT21 } #[doc = "Checks if the value of the field is `PLU_OUTPUT22`"] #[inline(always)] pub fn is_plu_output22(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT22 } #[doc = "Checks if the value of the field is `PLU_OUTPUT23`"] #[inline(always)] pub fn is_plu_output23(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT23 } #[doc = "Checks if the value of the field is `PLU_OUTPUT24`"] #[inline(always)] pub fn is_plu_output24(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT24 } #[doc = "Checks if the value of the field is `PLU_OUTPUT25`"] #[inline(always)] pub fn is_plu_output25(&self) -> bool { *self == OUTPUTN_A::PLU_OUTPUT25 } #[doc = "Checks if the value of the field is `STATE0`"] #[inline(always)] pub fn is_state0(&self) -> bool { *self == OUTPUTN_A::STATE0 } #[doc = "Checks if the value of the field is `STATE1`"] #[inline(always)] pub fn is_state1(&self) -> bool { *self == OUTPUTN_A::STATE1 } #[doc = "Checks if the value of the field is `STATE2`"] #[inline(always)] pub fn is_state2(&self) -> bool { *self == OUTPUTN_A::STATE2 } #[doc = "Checks if the value of the field is `STATE3`"] #[inline(always)] pub fn is_state3(&self) -> bool { *self == OUTPUTN_A::STATE3 } } #[doc = "Write proxy for field `OUTPUTn`"] pub struct OUTPUTN_W<'a> { w: &'a mut W, } impl<'a> OUTPUTN_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: OUTPUTN_A) -> &'a mut W { unsafe { self.bits(variant.into()) } } #[doc = "The PLU output 0."] #[inline(always)] pub fn plu_output0(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT0) } #[doc = "The PLU output 1."] #[inline(always)] pub fn plu_output1(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT1) } #[doc = "The PLU output 2."] #[inline(always)] pub fn plu_output2(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT2) } #[doc = "The PLU output 3."] #[inline(always)] pub fn plu_output3(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT3) } #[doc = "The PLU output 4."] #[inline(always)] pub fn plu_output4(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT4) } #[doc = "The PLU output 5."] #[inline(always)] pub fn plu_output5(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT5) } #[doc = "The PLU output 6."] #[inline(always)] pub fn plu_output6(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT6) } #[doc = "The PLU output 7."] #[inline(always)] pub fn plu_output7(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT7) } #[doc = "The PLU output 8."] #[inline(always)] pub fn plu_output8(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT8) } #[doc = "The PLU output 9."] #[inline(always)] pub fn plu_output9(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT9) } #[doc = "The PLU output 10."] #[inline(always)] pub fn plu_output10(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT10) } #[doc = "The PLU output 11."] #[inline(always)] pub fn plu_output11(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT11) } #[doc = "The PLU output 12."] #[inline(always)] pub fn plu_output12(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT12) } #[doc = "The PLU output 13."] #[inline(always)] pub fn plu_output13(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT13) } #[doc = "The PLU output 14."] #[inline(always)] pub fn plu_output14(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT14) } #[doc = "The PLU output 15."] #[inline(always)] pub fn plu_output15(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT15) } #[doc = "The PLU output 16."] #[inline(always)] pub fn plu_output16(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT16) } #[doc = "The PLU output 17."] #[inline(always)] pub fn plu_output17(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT17) } #[doc = "The PLU output 18."] #[inline(always)] pub fn plu_output18(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT18) } #[doc = "The PLU output 19."] #[inline(always)] pub fn plu_output19(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT19) } #[doc = "The PLU output 20."] #[inline(always)] pub fn plu_output20(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT20) } #[doc = "The PLU output 21."] #[inline(always)] pub fn plu_output21(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT21) } #[doc = "The PLU output 22."] #[inline(always)] pub fn plu_output22(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT22) } #[doc = "The PLU output 23."] #[inline(always)] pub fn plu_output23(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT23) } #[doc = "The PLU output 24."] #[inline(always)] pub fn plu_output24(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT24) } #[doc = "The PLU output 25."] #[inline(always)] pub fn plu_output25(self) -> &'a mut W { self.variant(OUTPUTN_A::PLU_OUTPUT25) } #[doc = "state(0)."] #[inline(always)] pub fn state0(self) -> &'a mut W { self.variant(OUTPUTN_A::STATE0) } #[doc = "state(1)."] #[inline(always)] pub fn state1(self) -> &'a mut W { self.variant(OUTPUTN_A::STATE1) } #[doc = "state(2)."] #[inline(always)] pub fn state2(self) -> &'a mut W { self.variant(OUTPUTN_A::STATE2) } #[doc = "state(3)."] #[inline(always)] pub fn state3(self) -> &'a mut W { self.variant(OUTPUTN_A::STATE3) } #[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 & !0x1f) | ((value as u32) & 0x1f); self.w } } impl R { #[doc = "Bits 0:4 - Selects the source to be connected to PLU Output 0."] #[inline(always)] pub fn outputn(&self) -> OUTPUTN_R { OUTPUTN_R::new((self.bits & 0x1f) as u8) } } impl W { #[doc = "Bits 0:4 - Selects the source to be connected to PLU Output 0."] #[inline(always)] pub fn outputn(&mut self) -> OUTPUTN_W { OUTPUTN_W { w: self } } }