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 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641
#[doc = "Reader of register WDTCONFIG0"] pub type R = crate::R<u32, super::WDTCONFIG0>; #[doc = "Writer for register WDTCONFIG0"] pub type W = crate::W<u32, super::WDTCONFIG0>; #[doc = "Register WDTCONFIG0 `reset()`'s with value 0"] impl crate::ResetValue for super::WDTCONFIG0 { #[inline(always)] fn reset_value() -> Self::Ux { 0 } } #[doc = "Reader of field `WDT_EN`"] pub type WDT_EN_R = crate::R<bool, bool>; #[doc = "Write proxy for field `WDT_EN`"] pub struct WDT_EN_W<'a> { w: &'a mut W, } impl<'a> WDT_EN_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 31)) | (((value as u32) & 0x01) << 31); self.w } } #[doc = "\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] #[repr(u8)] pub enum WDT_STG0_A { #[doc = "0: Disabled"] DISABLE = 0, #[doc = "1: Trigger an interrupt"] INTERRUPT = 1, #[doc = "2: Reset CPU core"] RESETCPU = 2, #[doc = "3: Reset System"] RESETSYSTEM = 3, } impl From<WDT_STG0_A> for u8 { #[inline(always)] fn from(variant: WDT_STG0_A) -> Self { variant as _ } } #[doc = "Reader of field `WDT_STG0`"] pub type WDT_STG0_R = crate::R<u8, WDT_STG0_A>; impl WDT_STG0_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> WDT_STG0_A { match self.bits { 0 => WDT_STG0_A::DISABLE, 1 => WDT_STG0_A::INTERRUPT, 2 => WDT_STG0_A::RESETCPU, 3 => WDT_STG0_A::RESETSYSTEM, _ => unreachable!(), } } #[doc = "Checks if the value of the field is `DISABLE`"] #[inline(always)] pub fn is_disable(&self) -> bool { *self == WDT_STG0_A::DISABLE } #[doc = "Checks if the value of the field is `INTERRUPT`"] #[inline(always)] pub fn is_interrupt(&self) -> bool { *self == WDT_STG0_A::INTERRUPT } #[doc = "Checks if the value of the field is `RESETCPU`"] #[inline(always)] pub fn is_reset_cpu(&self) -> bool { *self == WDT_STG0_A::RESETCPU } #[doc = "Checks if the value of the field is `RESETSYSTEM`"] #[inline(always)] pub fn is_reset_system(&self) -> bool { *self == WDT_STG0_A::RESETSYSTEM } } #[doc = "Write proxy for field `WDT_STG0`"] pub struct WDT_STG0_W<'a> { w: &'a mut W, } impl<'a> WDT_STG0_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: WDT_STG0_A) -> &'a mut W { { self.bits(variant.into()) } } #[doc = "Disabled"] #[inline(always)] pub fn disable(self) -> &'a mut W { self.variant(WDT_STG0_A::DISABLE) } #[doc = "Trigger an interrupt"] #[inline(always)] pub fn interrupt(self) -> &'a mut W { self.variant(WDT_STG0_A::INTERRUPT) } #[doc = "Reset CPU core"] #[inline(always)] pub fn reset_cpu(self) -> &'a mut W { self.variant(WDT_STG0_A::RESETCPU) } #[doc = "Reset System"] #[inline(always)] pub fn reset_system(self) -> &'a mut W { self.variant(WDT_STG0_A::RESETSYSTEM) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 29)) | (((value as u32) & 0x03) << 29); self.w } } #[doc = ""] pub type WDT_STG1_A = WDT_STG0_A; #[doc = "Reader of field `WDT_STG1`"] pub type WDT_STG1_R = crate::R<u8, WDT_STG1_A>; #[doc = "Write proxy for field `WDT_STG1`"] pub struct WDT_STG1_W<'a> { w: &'a mut W, } impl<'a> WDT_STG1_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: WDT_STG1_A) -> &'a mut W { { self.bits(variant.into()) } } #[doc = "Disabled"] #[inline(always)] pub fn disable(self) -> &'a mut W { self.variant(WDT_STG1_A::DISABLE) } #[doc = "Trigger an interrupt"] #[inline(always)] pub fn interrupt(self) -> &'a mut W { self.variant(WDT_STG1_A::INTERRUPT) } #[doc = "Reset CPU core"] #[inline(always)] pub fn reset_cpu(self) -> &'a mut W { self.variant(WDT_STG1_A::RESETCPU) } #[doc = "Reset System"] #[inline(always)] pub fn reset_system(self) -> &'a mut W { self.variant(WDT_STG1_A::RESETSYSTEM) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 27)) | (((value as u32) & 0x03) << 27); self.w } } #[doc = ""] pub type WDT_STG2_A = WDT_STG0_A; #[doc = "Reader of field `WDT_STG2`"] pub type WDT_STG2_R = crate::R<u8, WDT_STG2_A>; #[doc = "Write proxy for field `WDT_STG2`"] pub struct WDT_STG2_W<'a> { w: &'a mut W, } impl<'a> WDT_STG2_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: WDT_STG2_A) -> &'a mut W { { self.bits(variant.into()) } } #[doc = "Disabled"] #[inline(always)] pub fn disable(self) -> &'a mut W { self.variant(WDT_STG2_A::DISABLE) } #[doc = "Trigger an interrupt"] #[inline(always)] pub fn interrupt(self) -> &'a mut W { self.variant(WDT_STG2_A::INTERRUPT) } #[doc = "Reset CPU core"] #[inline(always)] pub fn reset_cpu(self) -> &'a mut W { self.variant(WDT_STG2_A::RESETCPU) } #[doc = "Reset System"] #[inline(always)] pub fn reset_system(self) -> &'a mut W { self.variant(WDT_STG2_A::RESETSYSTEM) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 25)) | (((value as u32) & 0x03) << 25); self.w } } #[doc = ""] pub type WDT_STG3_A = WDT_STG0_A; #[doc = "Reader of field `WDT_STG3`"] pub type WDT_STG3_R = crate::R<u8, WDT_STG3_A>; #[doc = "Write proxy for field `WDT_STG3`"] pub struct WDT_STG3_W<'a> { w: &'a mut W, } impl<'a> WDT_STG3_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: WDT_STG3_A) -> &'a mut W { { self.bits(variant.into()) } } #[doc = "Disabled"] #[inline(always)] pub fn disable(self) -> &'a mut W { self.variant(WDT_STG3_A::DISABLE) } #[doc = "Trigger an interrupt"] #[inline(always)] pub fn interrupt(self) -> &'a mut W { self.variant(WDT_STG3_A::INTERRUPT) } #[doc = "Reset CPU core"] #[inline(always)] pub fn reset_cpu(self) -> &'a mut W { self.variant(WDT_STG3_A::RESETCPU) } #[doc = "Reset System"] #[inline(always)] pub fn reset_system(self) -> &'a mut W { self.variant(WDT_STG3_A::RESETSYSTEM) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 23)) | (((value as u32) & 0x03) << 23); self.w } } #[doc = "Reader of field `WDT_EDGE_INT_EN`"] pub type WDT_EDGE_INT_EN_R = crate::R<bool, bool>; #[doc = "Write proxy for field `WDT_EDGE_INT_EN`"] pub struct WDT_EDGE_INT_EN_W<'a> { w: &'a mut W, } impl<'a> WDT_EDGE_INT_EN_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 22)) | (((value as u32) & 0x01) << 22); self.w } } #[doc = "Reader of field `WDT_LEVEL_INT_EN`"] pub type WDT_LEVEL_INT_EN_R = crate::R<bool, bool>; #[doc = "Write proxy for field `WDT_LEVEL_INT_EN`"] pub struct WDT_LEVEL_INT_EN_W<'a> { w: &'a mut W, } impl<'a> WDT_LEVEL_INT_EN_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 21)) | (((value as u32) & 0x01) << 21); self.w } } #[doc = "\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] #[repr(u8)] pub enum WDT_CPU_RESET_LENGTH_A { #[doc = "0: 100ns"] T100NS = 0, #[doc = "1: 200ns"] T200NS = 1, #[doc = "2: 300ns"] T300NS = 2, #[doc = "3: 400ns"] T400NS = 3, #[doc = "4: 500ns"] T500NS = 4, #[doc = "5: 800ns"] T800NS = 5, #[doc = "6: 1600ns"] T1600NS = 6, #[doc = "7: 3200ns"] T3200NS = 7, } impl From<WDT_CPU_RESET_LENGTH_A> for u8 { #[inline(always)] fn from(variant: WDT_CPU_RESET_LENGTH_A) -> Self { variant as _ } } #[doc = "Reader of field `WDT_CPU_RESET_LENGTH`"] pub type WDT_CPU_RESET_LENGTH_R = crate::R<u8, WDT_CPU_RESET_LENGTH_A>; impl WDT_CPU_RESET_LENGTH_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> WDT_CPU_RESET_LENGTH_A { match self.bits { 0 => WDT_CPU_RESET_LENGTH_A::T100NS, 1 => WDT_CPU_RESET_LENGTH_A::T200NS, 2 => WDT_CPU_RESET_LENGTH_A::T300NS, 3 => WDT_CPU_RESET_LENGTH_A::T400NS, 4 => WDT_CPU_RESET_LENGTH_A::T500NS, 5 => WDT_CPU_RESET_LENGTH_A::T800NS, 6 => WDT_CPU_RESET_LENGTH_A::T1600NS, 7 => WDT_CPU_RESET_LENGTH_A::T3200NS, _ => unreachable!(), } } #[doc = "Checks if the value of the field is `T100NS`"] #[inline(always)] pub fn is_t100ns(&self) -> bool { *self == WDT_CPU_RESET_LENGTH_A::T100NS } #[doc = "Checks if the value of the field is `T200NS`"] #[inline(always)] pub fn is_t200ns(&self) -> bool { *self == WDT_CPU_RESET_LENGTH_A::T200NS } #[doc = "Checks if the value of the field is `T300NS`"] #[inline(always)] pub fn is_t300ns(&self) -> bool { *self == WDT_CPU_RESET_LENGTH_A::T300NS } #[doc = "Checks if the value of the field is `T400NS`"] #[inline(always)] pub fn is_t400ns(&self) -> bool { *self == WDT_CPU_RESET_LENGTH_A::T400NS } #[doc = "Checks if the value of the field is `T500NS`"] #[inline(always)] pub fn is_t500ns(&self) -> bool { *self == WDT_CPU_RESET_LENGTH_A::T500NS } #[doc = "Checks if the value of the field is `T800NS`"] #[inline(always)] pub fn is_t800ns(&self) -> bool { *self == WDT_CPU_RESET_LENGTH_A::T800NS } #[doc = "Checks if the value of the field is `T1600NS`"] #[inline(always)] pub fn is_t1600ns(&self) -> bool { *self == WDT_CPU_RESET_LENGTH_A::T1600NS } #[doc = "Checks if the value of the field is `T3200NS`"] #[inline(always)] pub fn is_t3200ns(&self) -> bool { *self == WDT_CPU_RESET_LENGTH_A::T3200NS } } #[doc = "Write proxy for field `WDT_CPU_RESET_LENGTH`"] pub struct WDT_CPU_RESET_LENGTH_W<'a> { w: &'a mut W, } impl<'a> WDT_CPU_RESET_LENGTH_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: WDT_CPU_RESET_LENGTH_A) -> &'a mut W { { self.bits(variant.into()) } } #[doc = "100ns"] #[inline(always)] pub fn t100ns(self) -> &'a mut W { self.variant(WDT_CPU_RESET_LENGTH_A::T100NS) } #[doc = "200ns"] #[inline(always)] pub fn t200ns(self) -> &'a mut W { self.variant(WDT_CPU_RESET_LENGTH_A::T200NS) } #[doc = "300ns"] #[inline(always)] pub fn t300ns(self) -> &'a mut W { self.variant(WDT_CPU_RESET_LENGTH_A::T300NS) } #[doc = "400ns"] #[inline(always)] pub fn t400ns(self) -> &'a mut W { self.variant(WDT_CPU_RESET_LENGTH_A::T400NS) } #[doc = "500ns"] #[inline(always)] pub fn t500ns(self) -> &'a mut W { self.variant(WDT_CPU_RESET_LENGTH_A::T500NS) } #[doc = "800ns"] #[inline(always)] pub fn t800ns(self) -> &'a mut W { self.variant(WDT_CPU_RESET_LENGTH_A::T800NS) } #[doc = "1600ns"] #[inline(always)] pub fn t1600ns(self) -> &'a mut W { self.variant(WDT_CPU_RESET_LENGTH_A::T1600NS) } #[doc = "3200ns"] #[inline(always)] pub fn t3200ns(self) -> &'a mut W { self.variant(WDT_CPU_RESET_LENGTH_A::T3200NS) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x07 << 18)) | (((value as u32) & 0x07) << 18); self.w } } #[doc = ""] pub type WDT_SYS_RESET_LENGTH_A = WDT_CPU_RESET_LENGTH_A; #[doc = "Reader of field `WDT_SYS_RESET_LENGTH`"] pub type WDT_SYS_RESET_LENGTH_R = crate::R<u8, WDT_SYS_RESET_LENGTH_A>; #[doc = "Write proxy for field `WDT_SYS_RESET_LENGTH`"] pub struct WDT_SYS_RESET_LENGTH_W<'a> { w: &'a mut W, } impl<'a> WDT_SYS_RESET_LENGTH_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: WDT_SYS_RESET_LENGTH_A) -> &'a mut W { { self.bits(variant.into()) } } #[doc = "100ns"] #[inline(always)] pub fn t100ns(self) -> &'a mut W { self.variant(WDT_SYS_RESET_LENGTH_A::T100NS) } #[doc = "200ns"] #[inline(always)] pub fn t200ns(self) -> &'a mut W { self.variant(WDT_SYS_RESET_LENGTH_A::T200NS) } #[doc = "300ns"] #[inline(always)] pub fn t300ns(self) -> &'a mut W { self.variant(WDT_SYS_RESET_LENGTH_A::T300NS) } #[doc = "400ns"] #[inline(always)] pub fn t400ns(self) -> &'a mut W { self.variant(WDT_SYS_RESET_LENGTH_A::T400NS) } #[doc = "500ns"] #[inline(always)] pub fn t500ns(self) -> &'a mut W { self.variant(WDT_SYS_RESET_LENGTH_A::T500NS) } #[doc = "800ns"] #[inline(always)] pub fn t800ns(self) -> &'a mut W { self.variant(WDT_SYS_RESET_LENGTH_A::T800NS) } #[doc = "1600ns"] #[inline(always)] pub fn t1600ns(self) -> &'a mut W { self.variant(WDT_SYS_RESET_LENGTH_A::T1600NS) } #[doc = "3200ns"] #[inline(always)] pub fn t3200ns(self) -> &'a mut W { self.variant(WDT_SYS_RESET_LENGTH_A::T3200NS) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x07 << 15)) | (((value as u32) & 0x07) << 15); self.w } } #[doc = "Reader of field `WDT_FLASHBOOT_MOD_EN`"] pub type WDT_FLASHBOOT_MOD_EN_R = crate::R<bool, bool>; #[doc = "Write proxy for field `WDT_FLASHBOOT_MOD_EN`"] pub struct WDT_FLASHBOOT_MOD_EN_W<'a> { w: &'a mut W, } impl<'a> WDT_FLASHBOOT_MOD_EN_W<'a> { #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 14)) | (((value as u32) & 0x01) << 14); self.w } } impl R { #[doc = "Bit 31"] #[inline(always)] pub fn wdt_en(&self) -> WDT_EN_R { WDT_EN_R::new(((self.bits >> 31) & 0x01) != 0) } #[doc = "Bits 29:30"] #[inline(always)] pub fn wdt_stg0(&self) -> WDT_STG0_R { WDT_STG0_R::new(((self.bits >> 29) & 0x03) as u8) } #[doc = "Bits 27:28"] #[inline(always)] pub fn wdt_stg1(&self) -> WDT_STG1_R { WDT_STG1_R::new(((self.bits >> 27) & 0x03) as u8) } #[doc = "Bits 25:26"] #[inline(always)] pub fn wdt_stg2(&self) -> WDT_STG2_R { WDT_STG2_R::new(((self.bits >> 25) & 0x03) as u8) } #[doc = "Bits 23:24"] #[inline(always)] pub fn wdt_stg3(&self) -> WDT_STG3_R { WDT_STG3_R::new(((self.bits >> 23) & 0x03) as u8) } #[doc = "Bit 22"] #[inline(always)] pub fn wdt_edge_int_en(&self) -> WDT_EDGE_INT_EN_R { WDT_EDGE_INT_EN_R::new(((self.bits >> 22) & 0x01) != 0) } #[doc = "Bit 21"] #[inline(always)] pub fn wdt_level_int_en(&self) -> WDT_LEVEL_INT_EN_R { WDT_LEVEL_INT_EN_R::new(((self.bits >> 21) & 0x01) != 0) } #[doc = "Bits 18:20"] #[inline(always)] pub fn wdt_cpu_reset_length(&self) -> WDT_CPU_RESET_LENGTH_R { WDT_CPU_RESET_LENGTH_R::new(((self.bits >> 18) & 0x07) as u8) } #[doc = "Bits 15:17"] #[inline(always)] pub fn wdt_sys_reset_length(&self) -> WDT_SYS_RESET_LENGTH_R { WDT_SYS_RESET_LENGTH_R::new(((self.bits >> 15) & 0x07) as u8) } #[doc = "Bit 14"] #[inline(always)] pub fn wdt_flashboot_mod_en(&self) -> WDT_FLASHBOOT_MOD_EN_R { WDT_FLASHBOOT_MOD_EN_R::new(((self.bits >> 14) & 0x01) != 0) } } impl W { #[doc = "Bit 31"] #[inline(always)] pub fn wdt_en(&mut self) -> WDT_EN_W { WDT_EN_W { w: self } } #[doc = "Bits 29:30"] #[inline(always)] pub fn wdt_stg0(&mut self) -> WDT_STG0_W { WDT_STG0_W { w: self } } #[doc = "Bits 27:28"] #[inline(always)] pub fn wdt_stg1(&mut self) -> WDT_STG1_W { WDT_STG1_W { w: self } } #[doc = "Bits 25:26"] #[inline(always)] pub fn wdt_stg2(&mut self) -> WDT_STG2_W { WDT_STG2_W { w: self } } #[doc = "Bits 23:24"] #[inline(always)] pub fn wdt_stg3(&mut self) -> WDT_STG3_W { WDT_STG3_W { w: self } } #[doc = "Bit 22"] #[inline(always)] pub fn wdt_edge_int_en(&mut self) -> WDT_EDGE_INT_EN_W { WDT_EDGE_INT_EN_W { w: self } } #[doc = "Bit 21"] #[inline(always)] pub fn wdt_level_int_en(&mut self) -> WDT_LEVEL_INT_EN_W { WDT_LEVEL_INT_EN_W { w: self } } #[doc = "Bits 18:20"] #[inline(always)] pub fn wdt_cpu_reset_length(&mut self) -> WDT_CPU_RESET_LENGTH_W { WDT_CPU_RESET_LENGTH_W { w: self } } #[doc = "Bits 15:17"] #[inline(always)] pub fn wdt_sys_reset_length(&mut self) -> WDT_SYS_RESET_LENGTH_W { WDT_SYS_RESET_LENGTH_W { w: self } } #[doc = "Bit 14"] #[inline(always)] pub fn wdt_flashboot_mod_en(&mut self) -> WDT_FLASHBOOT_MOD_EN_W { WDT_FLASHBOOT_MOD_EN_W { w: self } } }