1#[doc = "Register `PWC` reader"]
2pub type R = crate::R<PWC_SPEC>;
3#[doc = "Register `PWC` writer"]
4pub type W = crate::W<PWC_SPEC>;
5#[doc = "Field `PAD_FORCE_HOLD` reader - rtc pad force hold"]
6pub type PAD_FORCE_HOLD_R = crate::BitReader;
7#[doc = "Field `PAD_FORCE_HOLD` writer - rtc pad force hold"]
8pub type PAD_FORCE_HOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10 #[doc = "Bit 21 - rtc pad force hold"]
11 #[inline(always)]
12 pub fn pad_force_hold(&self) -> PAD_FORCE_HOLD_R {
13 PAD_FORCE_HOLD_R::new(((self.bits >> 21) & 1) != 0)
14 }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("PWC")
20 .field("pad_force_hold", &self.pad_force_hold())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bit 21 - rtc pad force hold"]
26 #[inline(always)]
27 pub fn pad_force_hold(&mut self) -> PAD_FORCE_HOLD_W<PWC_SPEC> {
28 PAD_FORCE_HOLD_W::new(self, 21)
29 }
30}
31#[doc = "register description\n\nYou can [`read`](crate::Reg::read) this register and get [`pwc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pwc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct PWC_SPEC;
33impl crate::RegisterSpec for PWC_SPEC {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`pwc::R`](R) reader structure"]
37impl crate::Readable for PWC_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`pwc::W`](W) writer structure"]
39impl crate::Writable for PWC_SPEC {
40 type Safety = crate::Unsafe;
41 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
42 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
43}
44#[doc = "`reset()` method sets PWC to value 0"]
45impl crate::Resettable for PWC_SPEC {
46 const RESET_VALUE: u32 = 0;
47}