#[doc = "Register `WDTWPROTECT` reader"] pub type R = crate::R; #[doc = "Register `WDTWPROTECT` writer"] pub type W = crate::W; #[doc = "Field `WDT_WKEY` reader - If the register contains a different value than its reset value, write protection is enabled."] pub type WDT_WKEY_R = crate::FieldReader; #[doc = "Field `WDT_WKEY` writer - If the register contains a different value than its reset value, write protection is enabled."] pub type WDT_WKEY_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>; impl R { #[doc = "Bits 0:31 - If the register contains a different value than its reset value, write protection is enabled."] #[inline(always)] pub fn wdt_wkey(&self) -> WDT_WKEY_R { WDT_WKEY_R::new(self.bits) } } #[cfg(feature = "impl-register-debug")] impl core::fmt::Debug for R { fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { f.debug_struct("WDTWPROTECT") .field("wdt_wkey", &self.wdt_wkey()) .finish() } } impl W { #[doc = "Bits 0:31 - If the register contains a different value than its reset value, write protection is enabled."] #[inline(always)] pub fn wdt_wkey(&mut self) -> WDT_WKEY_W { WDT_WKEY_W::new(self, 0) } } #[doc = "Watchdog write protect register\n\nYou can [`read`](crate::Reg::read) this register and get [`wdtwprotect::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtwprotect::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct WDTWPROTECT_SPEC; impl crate::RegisterSpec for WDTWPROTECT_SPEC { type Ux = u32; } #[doc = "`read()` method returns [`wdtwprotect::R`](R) reader structure"] impl crate::Readable for WDTWPROTECT_SPEC {} #[doc = "`write(|w| ..)` method takes [`wdtwprotect::W`](W) writer structure"] impl crate::Writable for WDTWPROTECT_SPEC { type Safety = crate::Unsafe; const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0; const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0; } #[doc = "`reset()` method sets WDTWPROTECT to value 0x50d8_3aa1"] impl crate::Resettable for WDTWPROTECT_SPEC { const RESET_VALUE: u32 = 0x50d8_3aa1; }