1#[doc = "Register `FSM_WAIT` reader"]
2pub type R = crate::R<FSM_WAIT_SPEC>;
3#[doc = "Register `FSM_WAIT` writer"]
4pub type W = crate::W<FSM_WAIT_SPEC>;
5#[doc = "Field `XPD_WAIT` reader - need_des"]
6pub type XPD_WAIT_R = crate::FieldReader;
7#[doc = "Field `XPD_WAIT` writer - need_des"]
8pub type XPD_WAIT_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9#[doc = "Field `RSTB_WAIT` reader - need_des"]
10pub type RSTB_WAIT_R = crate::FieldReader;
11#[doc = "Field `RSTB_WAIT` writer - need_des"]
12pub type RSTB_WAIT_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13#[doc = "Field `STANDBY_WAIT` reader - need_des"]
14pub type STANDBY_WAIT_R = crate::FieldReader;
15#[doc = "Field `STANDBY_WAIT` writer - need_des"]
16pub type STANDBY_WAIT_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
17impl R {
18 #[doc = "Bits 0:7 - need_des"]
19 #[inline(always)]
20 pub fn xpd_wait(&self) -> XPD_WAIT_R {
21 XPD_WAIT_R::new((self.bits & 0xff) as u8)
22 }
23 #[doc = "Bits 8:15 - need_des"]
24 #[inline(always)]
25 pub fn rstb_wait(&self) -> RSTB_WAIT_R {
26 RSTB_WAIT_R::new(((self.bits >> 8) & 0xff) as u8)
27 }
28 #[doc = "Bits 16:23 - need_des"]
29 #[inline(always)]
30 pub fn standby_wait(&self) -> STANDBY_WAIT_R {
31 STANDBY_WAIT_R::new(((self.bits >> 16) & 0xff) as u8)
32 }
33}
34#[cfg(feature = "impl-register-debug")]
35impl core::fmt::Debug for R {
36 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
37 f.debug_struct("FSM_WAIT")
38 .field("xpd_wait", &format_args!("{}", self.xpd_wait().bits()))
39 .field("rstb_wait", &format_args!("{}", self.rstb_wait().bits()))
40 .field(
41 "standby_wait",
42 &format_args!("{}", self.standby_wait().bits()),
43 )
44 .finish()
45 }
46}
47#[cfg(feature = "impl-register-debug")]
48impl core::fmt::Debug for crate::generic::Reg<FSM_WAIT_SPEC> {
49 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
50 core::fmt::Debug::fmt(&self.read(), f)
51 }
52}
53impl W {
54 #[doc = "Bits 0:7 - need_des"]
55 #[inline(always)]
56 #[must_use]
57 pub fn xpd_wait(&mut self) -> XPD_WAIT_W<FSM_WAIT_SPEC> {
58 XPD_WAIT_W::new(self, 0)
59 }
60 #[doc = "Bits 8:15 - need_des"]
61 #[inline(always)]
62 #[must_use]
63 pub fn rstb_wait(&mut self) -> RSTB_WAIT_W<FSM_WAIT_SPEC> {
64 RSTB_WAIT_W::new(self, 8)
65 }
66 #[doc = "Bits 16:23 - need_des"]
67 #[inline(always)]
68 #[must_use]
69 pub fn standby_wait(&mut self) -> STANDBY_WAIT_W<FSM_WAIT_SPEC> {
70 STANDBY_WAIT_W::new(self, 16)
71 }
72}
73#[doc = "Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fsm_wait::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`fsm_wait::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
74pub struct FSM_WAIT_SPEC;
75impl crate::RegisterSpec for FSM_WAIT_SPEC {
76 type Ux = u32;
77}
78#[doc = "`read()` method returns [`fsm_wait::R`](R) reader structure"]
79impl crate::Readable for FSM_WAIT_SPEC {}
80#[doc = "`write(|w| ..)` method takes [`fsm_wait::W`](W) writer structure"]
81impl crate::Writable for FSM_WAIT_SPEC {
82 type Safety = crate::Unsafe;
83 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
84 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
85}
86#[doc = "`reset()` method sets FSM_WAIT to value 0x00ff_0808"]
87impl crate::Resettable for FSM_WAIT_SPEC {
88 const RESET_VALUE: u32 = 0x00ff_0808;
89}