mcxa_pac/spc0/
lpwkup_delay.rs1#[doc = "Register `LPWKUP_DELAY` reader"]
2pub type R = crate::R<LpwkupDelaySpec>;
3#[doc = "Register `LPWKUP_DELAY` writer"]
4pub type W = crate::W<LpwkupDelaySpec>;
5#[doc = "Field `LPWKUP_DELAY` reader - Low-Power Wake-Up Delay"]
6pub type LpwkupDelayR = crate::FieldReader<u16>;
7#[doc = "Field `LPWKUP_DELAY` writer - Low-Power Wake-Up Delay"]
8pub type LpwkupDelayW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
9impl R {
10 #[doc = "Bits 0:15 - Low-Power Wake-Up Delay"]
11 #[inline(always)]
12 pub fn lpwkup_delay(&self) -> LpwkupDelayR {
13 LpwkupDelayR::new((self.bits & 0xffff) as u16)
14 }
15}
16#[cfg(feature = "debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("LPWKUP_DELAY")
20 .field("lpwkup_delay", &self.lpwkup_delay())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bits 0:15 - Low-Power Wake-Up Delay"]
26 #[inline(always)]
27 pub fn lpwkup_delay(&mut self) -> LpwkupDelayW<'_, LpwkupDelaySpec> {
28 LpwkupDelayW::new(self, 0)
29 }
30}
31#[doc = "Low Power Wake-Up Delay\n\nYou can [`read`](crate::Reg::read) this register and get [`lpwkup_delay::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lpwkup_delay::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct LpwkupDelaySpec;
33impl crate::RegisterSpec for LpwkupDelaySpec {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`lpwkup_delay::R`](R) reader structure"]
37impl crate::Readable for LpwkupDelaySpec {}
38#[doc = "`write(|w| ..)` method takes [`lpwkup_delay::W`](W) writer structure"]
39impl crate::Writable for LpwkupDelaySpec {
40 type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets LPWKUP_DELAY to value 0"]
43impl crate::Resettable for LpwkupDelaySpec {}